Update of /cvsroot/python/python/dist/src/Tools/bgen/bgen In directory usw-pr-cvs1:/tmp/cvs-serv17711/Tools/bgen/bgen Modified Files: bgenObjectDefinition.py 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: bgenObjectDefinition.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Tools/bgen/bgen/bgenObjectDefinition.py,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** bgenObjectDefinition.py 19 Apr 2002 14:29:47 -0000 1.16 --- bgenObjectDefinition.py 17 Jul 2002 16:30:38 -0000 1.17 *************** *** 41,45 **** OutHeader2("Object type " + self.name) ! sf = self.static and "staticforward " Output("%sPyTypeObject %s;", sf, self.typename) Output() --- 41,45 ---- OutHeader2("Object type " + self.name) ! sf = self.static and "static " Output("%sPyTypeObject %s;", sf, self.typename) Output() *************** *** 165,169 **** def outputTypeObject(self): ! sf = self.static and "staticforward " Output() Output("%sPyTypeObject %s = {", sf, self.typename) --- 165,169 ---- def outputTypeObject(self): ! sf = self.static and "static " Output() Output("%sPyTypeObject %s = {", sf, self.typename)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4