Commit cc09babd authored by Stefan Behnel's avatar Stefan Behnel

fix for name declarations of interned string values in functions

parent 01b2ec1c
...@@ -248,8 +248,9 @@ class BlockNode: ...@@ -248,8 +248,9 @@ class BlockNode:
if entries: if entries:
code.putln("") code.putln("")
for entry in entries: for entry in entries:
code.putln( if not entry.is_interned:
"static PyObject *%s;" % entry.pystring_cname) code.putln(
"static PyObject *%s;" % entry.pystring_cname)
def generate_interned_num_decls(self, env, code): def generate_interned_num_decls(self, env, code):
# Flush accumulated interned nums from the global scope # Flush accumulated interned nums from the global scope
......
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