[Python-checkins] python/dist/src/Mac/Lib/test/mkcwproj mkcwtestmodule.c,1.2,1.3
jhylton@users.sourceforge.net
jhylton@users.sourceforge.net
Wed, 17 Jul 2002 09:31:06 -0700
- Previous message: [Python-checkins] python/dist/src/Include object.h,2.107,2.108
- Next message: [Python-checkins] python/dist/src/Mac/Modules Nav.c,1.17,1.18 calldll.c,1.8,1.9 ctbmodule.c,1.13,1.14 hfsplusmodule.c,1.5,1.6 icgluemodule.c,1.9,1.10 macfsmodule.c,1.55,1.56 macosmodule.c,1.60,1.61 macspeechmodule.c,1.14,1.15
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Mac/Lib/test/mkcwproj
In directory usw-pr-cvs1:/tmp/cvs-serv17711/Mac/Lib/test/mkcwproj
Modified Files:
mkcwtestmodule.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: mkcwtestmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Lib/test/mkcwproj/mkcwtestmodule.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** mkcwtestmodule.c 8 Dec 2001 18:02:51 -0000 1.2
--- mkcwtestmodule.c 17 Jul 2002 16:30:34 -0000 1.3
***************
*** 24,28 ****
} XxoObject;
! staticforward PyTypeObject Xxo_Type;
#define XxoObject_Check(v) ((v)->ob_type == &Xxo_Type)
--- 24,28 ----
} XxoObject;
! static PyTypeObject Xxo_Type;
#define XxoObject_Check(v) ((v)->ob_type == &Xxo_Type)
- Previous message: [Python-checkins] python/dist/src/Include object.h,2.107,2.108
- Next message: [Python-checkins] python/dist/src/Mac/Modules Nav.c,1.17,1.18 calldll.c,1.8,1.9 ctbmodule.c,1.13,1.14 hfsplusmodule.c,1.5,1.6 icgluemodule.c,1.9,1.10 macfsmodule.c,1.55,1.56 macosmodule.c,1.60,1.61 macspeechmodule.c,1.14,1.15
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]