Commit 84079e51 authored by Lisandro Dalcin's avatar Lisandro Dalcin

static storage for typeobjects of private cdef classes

parent aae8bf62
...@@ -860,7 +860,6 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): ...@@ -860,7 +860,6 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
Naming.extern_c_macro, Naming.extern_c_macro,
name)) name))
elif entry.visibility == 'public': elif entry.visibility == 'public':
#code.putln("DL_EXPORT(PyTypeObject) %s;" % name)
code.putln("%s DL_EXPORT(PyTypeObject) %s;" % ( code.putln("%s DL_EXPORT(PyTypeObject) %s;" % (
Naming.extern_c_macro, Naming.extern_c_macro,
name)) name))
...@@ -1593,8 +1592,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): ...@@ -1593,8 +1592,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
if entry.visibility == 'public': if entry.visibility == 'public':
header = "DL_EXPORT(PyTypeObject) %s = {" header = "DL_EXPORT(PyTypeObject) %s = {"
else: else:
#header = "statichere PyTypeObject %s = {" header = "static PyTypeObject %s = {"
header = "PyTypeObject %s = {"
#code.putln(header % scope.parent_type.typeobj_cname) #code.putln(header % scope.parent_type.typeobj_cname)
code.putln(header % type.typeobj_cname) code.putln(header % type.typeobj_cname)
code.putln( code.putln(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment