summaryrefslogtreecommitdiffstats
path: root/Tools/bgen
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-02-19 15:59:49 (GMT)
committerGuido van Rossum <guido@python.org>1995-02-19 15:59:49 (GMT)
commit9784295b157ac9db30d52708f67d115c397290ab (patch)
tree066d7b16e5515db0de5e13efdde2709d1463140b /Tools/bgen
parent295d171650758106cd4c24410f5a5c0740b914b2 (diff)
downloadcpython-9784295b157ac9db30d52708f67d115c397290ab.zip
cpython-9784295b157ac9db30d52708f67d115c397290ab.tar.gz
cpython-9784295b157ac9db30d52708f67d115c397290ab.tar.bz2
another round... ported to __SC__
Diffstat (limited to 'Tools/bgen')
-rw-r--r--Tools/bgen/bgen/bgenObjectDefinition.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Tools/bgen/bgen/bgenObjectDefinition.py b/Tools/bgen/bgen/bgenObjectDefinition.py
index 2cc7c6d..dd1ad32 100644
--- a/Tools/bgen/bgen/bgenObjectDefinition.py
+++ b/Tools/bgen/bgen/bgenObjectDefinition.py
@@ -76,7 +76,7 @@ class ObjectDefinition(GeneratorGroup):
Output()
Output("%sPyObject *%s_New(itself)", self.static, self.prefix)
IndentLevel()
- Output("const %s %sitself;", self.itselftype, self.argref)
+ Output("%s %sitself;", self.itselftype, self.argref)
DedentLevel()
OutLbrace()
Output("%s *it;", self.objecttype)
@@ -154,8 +154,9 @@ class ObjectDefinition(GeneratorGroup):
Output("#define %s_setattr NULL", self.prefix)
def outputTypeObject(self):
+ sf = self.static and "staticforward "
Output()
- Output("%sPyTypeObject %s = {", self.static, self.typename)
+ Output("%sPyTypeObject %s = {", sf, self.typename)
IndentLevel()
Output("PyObject_HEAD_INIT(&PyType_Type)")
Output("0, /*ob_size*/")