[Python-checkins] python/dist/src/Mac/Modules/carbonevt _CarbonEvtmodule.c,1.12,1.13

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Thu, 19 Dec 2002 13:25:01 -0800


Update of /cvsroot/python/python/dist/src/Mac/Modules/carbonevt
In directory sc8-pr-cvs1:/tmp/cvs-serv31050/carbonevt

Modified Files:
	_CarbonEvtmodule.c 
Log Message:
Regenerated with inheritance-aware xxxx_Check() macros.


Index: _CarbonEvtmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/carbonevt/_CarbonEvtmodule.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** _CarbonEvtmodule.c	3 Dec 2002 23:40:19 -0000	1.12
--- _CarbonEvtmodule.c	19 Dec 2002 21:24:29 -0000	1.13
***************
*** 143,147 ****
  PyTypeObject EventRef_Type;
  
! #define EventRef_Check(x) ((x)->ob_type == &EventRef_Type)
  
  typedef struct EventRefObject {
--- 143,147 ----
  PyTypeObject EventRef_Type;
  
! #define EventRef_Check(x) ((x)->ob_type == &EventRef_Type || PyObject_TypeCheck((x), &EventRef_Type))
  
  typedef struct EventRefObject {
***************
*** 487,491 ****
  PyTypeObject EventQueueRef_Type;
  
! #define EventQueueRef_Check(x) ((x)->ob_type == &EventQueueRef_Type)
  
  typedef struct EventQueueRefObject {
--- 487,491 ----
  PyTypeObject EventQueueRef_Type;
  
! #define EventQueueRef_Check(x) ((x)->ob_type == &EventQueueRef_Type || PyObject_TypeCheck((x), &EventQueueRef_Type))
  
  typedef struct EventQueueRefObject {
***************
*** 707,711 ****
  PyTypeObject EventLoopRef_Type;
  
! #define EventLoopRef_Check(x) ((x)->ob_type == &EventLoopRef_Type)
  
  typedef struct EventLoopRefObject {
--- 707,711 ----
  PyTypeObject EventLoopRef_Type;
  
! #define EventLoopRef_Check(x) ((x)->ob_type == &EventLoopRef_Type || PyObject_TypeCheck((x), &EventLoopRef_Type))
  
  typedef struct EventLoopRefObject {
***************
*** 836,840 ****
  PyTypeObject EventLoopTimerRef_Type;
  
! #define EventLoopTimerRef_Check(x) ((x)->ob_type == &EventLoopTimerRef_Type)
  
  typedef struct EventLoopTimerRefObject {
--- 836,840 ----
  PyTypeObject EventLoopTimerRef_Type;
  
! #define EventLoopTimerRef_Check(x) ((x)->ob_type == &EventLoopTimerRef_Type || PyObject_TypeCheck((x), &EventLoopTimerRef_Type))
  
  typedef struct EventLoopTimerRefObject {
***************
*** 983,987 ****
  PyTypeObject EventHandlerRef_Type;
  
! #define EventHandlerRef_Check(x) ((x)->ob_type == &EventHandlerRef_Type)
  
  typedef struct EventHandlerRefObject {
--- 983,987 ----
  PyTypeObject EventHandlerRef_Type;
  
! #define EventHandlerRef_Check(x) ((x)->ob_type == &EventHandlerRef_Type || PyObject_TypeCheck((x), &EventHandlerRef_Type))
  
  typedef struct EventHandlerRefObject {
***************
*** 1175,1179 ****
  PyTypeObject EventHandlerCallRef_Type;
  
! #define EventHandlerCallRef_Check(x) ((x)->ob_type == &EventHandlerCallRef_Type)
  
  typedef struct EventHandlerCallRefObject {
--- 1175,1179 ----
  PyTypeObject EventHandlerCallRef_Type;
  
! #define EventHandlerCallRef_Check(x) ((x)->ob_type == &EventHandlerCallRef_Type || PyObject_TypeCheck((x), &EventHandlerCallRef_Type))
  
  typedef struct EventHandlerCallRefObject {
***************
*** 1307,1311 ****
  PyTypeObject EventTargetRef_Type;
  
! #define EventTargetRef_Check(x) ((x)->ob_type == &EventTargetRef_Type)
  
  typedef struct EventTargetRefObject {
--- 1307,1311 ----
  PyTypeObject EventTargetRef_Type;
  
! #define EventTargetRef_Check(x) ((x)->ob_type == &EventTargetRef_Type || PyObject_TypeCheck((x), &EventTargetRef_Type))
  
  typedef struct EventTargetRefObject {
***************
*** 1461,1465 ****
  PyTypeObject EventHotKeyRef_Type;
  
! #define EventHotKeyRef_Check(x) ((x)->ob_type == &EventHotKeyRef_Type)
  
  typedef struct EventHotKeyRefObject {
--- 1461,1465 ----
  PyTypeObject EventHotKeyRef_Type;
  
! #define EventHotKeyRef_Check(x) ((x)->ob_type == &EventHotKeyRef_Type || PyObject_TypeCheck((x), &EventHotKeyRef_Type))
  
  typedef struct EventHotKeyRefObject {