summaryrefslogtreecommitdiff
path: root/Cython/Compiler/ModuleNode.py
diff options
context:
space:
mode:
authorRobert Bradshaw <robertwb@gmail.com>2013-01-12 12:59:27 -0800
committerRobert Bradshaw <robertwb@gmail.com>2013-01-12 12:59:27 -0800
commitf2844895d89809d17f56f6706581f16ff073dca4 (patch)
tree5ba6396c885d2ea1a25ac1c491dbf1bc231d523b /Cython/Compiler/ModuleNode.py
parenta391c3a3f351b36bbdee882dd0604bc89bf3da02 (diff)
downloadcython-f2844895d89809d17f56f6706581f16ff073dca4.tar.gz
Make __pyx_import_star_type_names static to remove link errors when freezing.
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r--Cython/Compiler/ModuleNode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py
index 2a472771a..3b0743bed 100644
--- a/Cython/Compiler/ModuleNode.py
+++ b/Cython/Compiler/ModuleNode.py
@@ -1767,7 +1767,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
def generate_import_star(self, env, code):
env.use_utility_code(streq_utility_code)
code.putln()
- code.putln("char* %s_type_names[] = {" % Naming.import_star)
+ code.putln("static char* %s_type_names[] = {" % Naming.import_star)
for name, entry in env.entries.items():
if entry.is_type:
code.putln('"%s",' % name)