[Python-checkins] python/dist/src/Mac/Modules/file _Filemodule.c,1.6,1.7

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


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

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


Index: _Filemodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/file/_Filemodule.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** _Filemodule.c	18 Dec 2002 23:17:26 -0000	1.6
--- _Filemodule.c	19 Dec 2002 21:24:32 -0000	1.7
***************
*** 102,106 ****
  PyTypeObject Alias_Type;
  
! #define Alias_Check(x) ((x)->ob_type == &Alias_Type)
  
  typedef struct AliasObject {
--- 102,106 ----
  PyTypeObject Alias_Type;
  
! #define Alias_Check(x) ((x)->ob_type == &Alias_Type || PyObject_TypeCheck((x), &Alias_Type))
  
  typedef struct AliasObject {
***************
*** 448,452 ****
  PyTypeObject FSSpec_Type;
  
! #define FSSpec_Check(x) ((x)->ob_type == &FSSpec_Type)
  
  typedef struct FSSpecObject {
--- 448,452 ----
  PyTypeObject FSSpec_Type;
  
! #define FSSpec_Check(x) ((x)->ob_type == &FSSpec_Type || PyObject_TypeCheck((x), &FSSpec_Type))
  
  typedef struct FSSpecObject {
***************
*** 917,921 ****
  PyTypeObject FSRef_Type;
  
! #define FSRef_Check(x) ((x)->ob_type == &FSRef_Type)
  
  typedef struct FSRefObject {
--- 917,921 ----
  PyTypeObject FSRef_Type;
  
! #define FSRef_Check(x) ((x)->ob_type == &FSRef_Type || PyObject_TypeCheck((x), &FSRef_Type))
  
  typedef struct FSRefObject {