[Python-checkins] python/dist/src/Mac/Modules/cm _Cmmodule.c,1.13,1.14

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
2002年12月19日 13:25:02 -0800


Update of /cvsroot/python/python/dist/src/Mac/Modules/cm
In directory sc8-pr-cvs1:/tmp/cvs-serv31050/cm
Modified Files:
	_Cmmodule.c 
Log Message:
Regenerated with inheritance-aware xxxx_Check() macros.
Index: _Cmmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/cm/_Cmmodule.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** _Cmmodule.c	12 Dec 2002 10:31:50 -0000	1.13
--- _Cmmodule.c	19 Dec 2002 21:24:30 -0000	1.14
***************
*** 70,74 ****
 PyTypeObject ComponentInstance_Type;
 
! #define CmpInstObj_Check(x) ((x)->ob_type == &ComponentInstance_Type)
 
 typedef struct ComponentInstanceObject {
--- 70,74 ----
 PyTypeObject ComponentInstance_Type;
 
! #define CmpInstObj_Check(x) ((x)->ob_type == &ComponentInstance_Type || PyObject_TypeCheck((x), &ComponentInstance_Type))
 
 typedef struct ComponentInstanceObject {
***************
*** 336,340 ****
 PyTypeObject Component_Type;
 
! #define CmpObj_Check(x) ((x)->ob_type == &Component_Type)
 
 typedef struct ComponentObject {
--- 336,340 ----
 PyTypeObject Component_Type;
 
! #define CmpObj_Check(x) ((x)->ob_type == &Component_Type || PyObject_TypeCheck((x), &Component_Type))
 
 typedef struct ComponentObject {

AltStyle によって変換されたページ (->オリジナル) /