mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
another round... ported to __SC__
This commit is contained in:
parent
295d171650
commit
9784295b15
14 changed files with 158 additions and 209 deletions
|
@ -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*/")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue