[Python-checkins] python/dist/src/Mac/Modules/list _Listmodule.c,1.14,1.15

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


Update of /cvsroot/python/python/dist/src/Mac/Modules/list
In directory sc8-pr-cvs1:/tmp/cvs-serv31050/list
Modified Files:
	_Listmodule.c 
Log Message:
Regenerated with inheritance-aware xxxx_Check() macros.
Index: _Listmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/list/_Listmodule.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** _Listmodule.c	12 Dec 2002 10:31:51 -0000	1.14
--- _Listmodule.c	19 Dec 2002 21:24:33 -0000	1.15
***************
*** 72,76 ****
 PyTypeObject List_Type;
 
! #define ListObj_Check(x) ((x)->ob_type == &List_Type)
 
 typedef struct ListObject {
--- 72,76 ----
 PyTypeObject List_Type;
 
! #define ListObj_Check(x) ((x)->ob_type == &List_Type || PyObject_TypeCheck((x), &List_Type))
 
 typedef struct ListObject {

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