[Python-checkins] python/dist/src/Mac/Modules/snd _Sndmodule.c,1.13,1.14
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
2002年12月19日 13:24:37 -0800
Update of /cvsroot/python/python/dist/src/Mac/Modules/snd
In directory sc8-pr-cvs1:/tmp/cvs-serv31050/snd
Modified Files:
_Sndmodule.c
Log Message:
Regenerated with inheritance-aware xxxx_Check() macros.
Index: _Sndmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/snd/_Sndmodule.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** _Sndmodule.c 12 Dec 2002 10:31:53 -0000 1.13
--- _Sndmodule.c 19 Dec 2002 21:24:35 -0000 1.14
***************
*** 53,57 ****
static PyTypeObject SndChannel_Type;
! #define SndCh_Check(x) ((x)->ob_type == &SndChannel_Type)
typedef struct SndChannelObject {
--- 53,57 ----
static PyTypeObject SndChannel_Type;
! #define SndCh_Check(x) ((x)->ob_type == &SndChannel_Type || PyObject_TypeCheck((x), &SndChannel_Type))
typedef struct SndChannelObject {
***************
*** 268,272 ****
static PyTypeObject SPB_Type;
! #define SPBObj_Check(x) ((x)->ob_type == &SPB_Type)
typedef struct SPBObject {
--- 268,272 ----
static PyTypeObject SPB_Type;
! #define SPBObj_Check(x) ((x)->ob_type == &SPB_Type || PyObject_TypeCheck((x), &SPB_Type))
typedef struct SPBObject {