fix for name declarations of interned string values in functions
authorStefan Behnel <scoder@users.berlios.de>
Fri, 16 May 2008 15:02:20 +0000 (17:02 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 16 May 2008 15:02:20 +0000 (17:02 +0200)
Cython/Compiler/Nodes.py

index ececf2c3937840a532d0dbc856da16fd5b683498..ec4dfe2a1c3f1f3683cb9f6d664e1cbce7359976 100644 (file)
@@ -248,8 +248,9 @@ class BlockNode:
         if entries:
             code.putln("")
             for entry in entries:
-                code.putln(
-                    "static PyObject *%s;" % entry.pystring_cname)
+                if not entry.is_interned:
+                    code.putln(
+                        "static PyObject *%s;" % entry.pystring_cname)
 
     def generate_interned_num_decls(self, env, code):
         #  Flush accumulated interned nums from the global scope