[Python-checkins] python/dist/src/Mac/Modules/cf _CFmodule.c,1.17,1.18

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


Update of /cvsroot/python/python/dist/src/Mac/Modules/cf
In directory sc8-pr-cvs1:/tmp/cvs-serv31050/cf
Modified Files:
	_CFmodule.c 
Log Message:
Regenerated with inheritance-aware xxxx_Check() macros.
Index: _CFmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/cf/_CFmodule.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** _CFmodule.c	3 Dec 2002 23:40:19 -0000	1.17
--- _CFmodule.c	19 Dec 2002 21:24:29 -0000	1.18
***************
*** 129,133 ****
 PyTypeObject CFTypeRef_Type;
 
! #define CFTypeRefObj_Check(x) ((x)->ob_type == &CFTypeRef_Type)
 
 typedef struct CFTypeRefObject {
--- 129,133 ----
 PyTypeObject CFTypeRef_Type;
 
! #define CFTypeRefObj_Check(x) ((x)->ob_type == &CFTypeRef_Type || PyObject_TypeCheck((x), &CFTypeRef_Type))
 
 typedef struct CFTypeRefObject {
***************
*** 443,447 ****
 PyTypeObject CFArrayRef_Type;
 
! #define CFArrayRefObj_Check(x) ((x)->ob_type == &CFArrayRef_Type)
 
 typedef struct CFArrayRefObject {
--- 443,447 ----
 PyTypeObject CFArrayRef_Type;
 
! #define CFArrayRefObj_Check(x) ((x)->ob_type == &CFArrayRef_Type || PyObject_TypeCheck((x), &CFArrayRef_Type))
 
 typedef struct CFArrayRefObject {
***************
*** 599,603 ****
 PyTypeObject CFMutableArrayRef_Type;
 
! #define CFMutableArrayRefObj_Check(x) ((x)->ob_type == &CFMutableArrayRef_Type)
 
 typedef struct CFMutableArrayRefObject {
--- 599,603 ----
 PyTypeObject CFMutableArrayRef_Type;
 
! #define CFMutableArrayRefObj_Check(x) ((x)->ob_type == &CFMutableArrayRef_Type || PyObject_TypeCheck((x), &CFMutableArrayRef_Type))
 
 typedef struct CFMutableArrayRefObject {
***************
*** 784,788 ****
 PyTypeObject CFDictionaryRef_Type;
 
! #define CFDictionaryRefObj_Check(x) ((x)->ob_type == &CFDictionaryRef_Type)
 
 typedef struct CFDictionaryRefObject {
--- 784,788 ----
 PyTypeObject CFDictionaryRef_Type;
 
! #define CFDictionaryRefObj_Check(x) ((x)->ob_type == &CFDictionaryRef_Type || PyObject_TypeCheck((x), &CFDictionaryRef_Type))
 
 typedef struct CFDictionaryRefObject {
***************
*** 922,926 ****
 PyTypeObject CFMutableDictionaryRef_Type;
 
! #define CFMutableDictionaryRefObj_Check(x) ((x)->ob_type == &CFMutableDictionaryRef_Type)
 
 typedef struct CFMutableDictionaryRefObject {
--- 922,926 ----
 PyTypeObject CFMutableDictionaryRef_Type;
 
! #define CFMutableDictionaryRefObj_Check(x) ((x)->ob_type == &CFMutableDictionaryRef_Type || PyObject_TypeCheck((x), &CFMutableDictionaryRef_Type))
 
 typedef struct CFMutableDictionaryRefObject {
***************
*** 1044,1048 ****
 PyTypeObject CFDataRef_Type;
 
! #define CFDataRefObj_Check(x) ((x)->ob_type == &CFDataRef_Type)
 
 typedef struct CFDataRefObject {
--- 1044,1048 ----
 PyTypeObject CFDataRef_Type;
 
! #define CFDataRefObj_Check(x) ((x)->ob_type == &CFDataRef_Type || PyObject_TypeCheck((x), &CFDataRef_Type))
 
 typedef struct CFDataRefObject {
***************
*** 1220,1224 ****
 PyTypeObject CFMutableDataRef_Type;
 
! #define CFMutableDataRefObj_Check(x) ((x)->ob_type == &CFMutableDataRef_Type)
 
 typedef struct CFMutableDataRefObject {
--- 1220,1224 ----
 PyTypeObject CFMutableDataRef_Type;
 
! #define CFMutableDataRefObj_Check(x) ((x)->ob_type == &CFMutableDataRef_Type || PyObject_TypeCheck((x), &CFMutableDataRef_Type))
 
 typedef struct CFMutableDataRefObject {
***************
*** 1430,1434 ****
 PyTypeObject CFStringRef_Type;
 
! #define CFStringRefObj_Check(x) ((x)->ob_type == &CFStringRef_Type)
 
 typedef struct CFStringRefObject {
--- 1430,1434 ----
 PyTypeObject CFStringRef_Type;
 
! #define CFStringRefObj_Check(x) ((x)->ob_type == &CFStringRef_Type || PyObject_TypeCheck((x), &CFStringRef_Type))
 
 typedef struct CFStringRefObject {
***************
*** 2115,2119 ****
 PyTypeObject CFMutableStringRef_Type;
 
! #define CFMutableStringRefObj_Check(x) ((x)->ob_type == &CFMutableStringRef_Type)
 
 typedef struct CFMutableStringRefObject {
--- 2115,2119 ----
 PyTypeObject CFMutableStringRef_Type;
 
! #define CFMutableStringRefObj_Check(x) ((x)->ob_type == &CFMutableStringRef_Type || PyObject_TypeCheck((x), &CFMutableStringRef_Type))
 
 typedef struct CFMutableStringRefObject {
***************
*** 2448,2452 ****
 PyTypeObject CFURLRef_Type;
 
! #define CFURLRefObj_Check(x) ((x)->ob_type == &CFURLRef_Type)
 
 typedef struct CFURLRefObject {
--- 2448,2452 ----
 PyTypeObject CFURLRef_Type;
 
! #define CFURLRefObj_Check(x) ((x)->ob_type == &CFURLRef_Type || PyObject_TypeCheck((x), &CFURLRef_Type))
 
 typedef struct CFURLRefObject {

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