projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01b2ec1
)
fix for name declarations of interned string values in functions
author
Stefan Behnel
<scoder@users.berlios.de>
Fri, 16 May 2008 15:02:20 +0000
(17:02 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Fri, 16 May 2008 15:02:20 +0000
(17:02 +0200)
Cython/Compiler/Nodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Nodes.py
b/Cython/Compiler/Nodes.py
index ececf2c3937840a532d0dbc856da16fd5b683498..ec4dfe2a1c3f1f3683cb9f6d664e1cbce7359976 100644
(file)
--- a/
Cython/Compiler/Nodes.py
+++ b/
Cython/Compiler/Nodes.py
@@
-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