[Python-checkins] python/dist/src/Mac/Modules/qd _Qdmodule.c,1.9,1.10

jhylton@users.sourceforge.net jhylton@users.sourceforge.net
2002年7月17日 09:31:07 -0700


Update of /cvsroot/python/python/dist/src/Mac/Modules/qd
In directory usw-pr-cvs1:/tmp/cvs-serv17711/Mac/Modules/qd
Modified Files:
	_Qdmodule.c 
Log Message:
staticforward bites the dust.
The staticforward define was needed to support certain broken C
compilers (notably SCO ODT 3.0, perhaps early AIX as well) botched the
static keyword when it was used with a forward declaration of a static
initialized structure. Standard C allows the forward declaration with
static, and we've decided to stop catering to broken C compilers. (In
fact, we expect that the compilers are all fixed eight years later.)
I'm leaving staticforward and statichere defined in object.h as
static. This is only for backwards compatibility with C extensions
that might still use it.
XXX I haven't updated the documentation.
Index: _Qdmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/qd/_Qdmodule.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** _Qdmodule.c	23 Apr 2002 22:44:08 -0000	1.9
--- _Qdmodule.c	17 Jul 2002 16:30:35 -0000	1.10
***************
*** 112,116 ****
 #endif /* !TARGET_API_MAC_CARBON */
 
! staticforward PyObject *BMObj_NewCopied(BitMapPtr);
 
 /*
--- 112,116 ----
 #endif /* !TARGET_API_MAC_CARBON */
 
! static PyObject *BMObj_NewCopied(BitMapPtr);
 
 /*
***************
*** 528,532 ****
 /* ------------------ Object type QDGlobalsAccess ------------------- */
 
! staticforward PyTypeObject QDGlobalsAccess_Type;
 
 #define QDGA_Check(x) ((x)->ob_type == &QDGlobalsAccess_Type)
--- 528,532 ----
 /* ------------------ Object type QDGlobalsAccess ------------------- */
 
! static PyTypeObject QDGlobalsAccess_Type;
 
 #define QDGA_Check(x) ((x)->ob_type == &QDGlobalsAccess_Type)
***************
*** 632,636 ****
 #define QDGA_hash NULL
 
! staticforward PyTypeObject QDGlobalsAccess_Type = {
 	PyObject_HEAD_INIT(NULL)
 	0, /*ob_size*/
--- 632,636 ----
 #define QDGA_hash NULL
 
! static PyTypeObject QDGlobalsAccess_Type = {
 	PyObject_HEAD_INIT(NULL)
 	0, /*ob_size*/

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