static storage for typeobjects of private cdef classes
authorLisandro Dalcin <dalcinl@gmail.com>
Fri, 17 Dec 2010 01:40:25 +0000 (22:40 -0300)
committerLisandro Dalcin <dalcinl@gmail.com>
Fri, 17 Dec 2010 01:40:25 +0000 (22:40 -0300)
Cython/Compiler/ModuleNode.py

index 45feb266fce2b7dec78b9db971449c2fa29232b0..e7e652ef0e1d987909908676e2e7fba89b237ebd 100644 (file)
@@ -860,7 +860,6 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
                     Naming.extern_c_macro,
                     name))
             elif entry.visibility == 'public':
-                #code.putln("DL_EXPORT(PyTypeObject) %s;" % name)
                 code.putln("%s DL_EXPORT(PyTypeObject) %s;" % (
                     Naming.extern_c_macro,
                     name))
@@ -1593,8 +1592,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
         if entry.visibility == 'public':
             header = "DL_EXPORT(PyTypeObject) %s = {"
         else:
-            #header = "statichere PyTypeObject %s = {"
-            header = "PyTypeObject %s = {"
+            header = "static PyTypeObject %s = {"
         #code.putln(header % scope.parent_type.typeobj_cname)
         code.putln(header % type.typeobj_cname)
         code.putln(