make '__pyx_modulename' have static storage in generated C code
authorLisandro Dalcin <dalcinl@gmail.com>
Fri, 17 Apr 2009 16:11:23 +0000 (13:11 -0300)
committerLisandro Dalcin <dalcinl@gmail.com>
Fri, 17 Apr 2009 16:11:23 +0000 (13:11 -0300)
Cython/Compiler/ModuleNode.py

index 41df891e6940d133aad0828fbfa68a817ee949fa..7c74484a9d8c8be0c2f631e1bb91e021c6e2adad 100644 (file)
@@ -253,7 +253,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
 
         code.globalstate.use_utility_code(refcount_utility_code)
 
-        code.putln('const char *%s = "%s";' % (Naming.modulename_cname, self.full_module_name))
+        code.putln('static const char *%s = "%s";' % (Naming.modulename_cname, self.full_module_name))
         code.putln("")
         code.putln("/* Implementation of %s */" % env.qualified_name)
         self.generate_const_definitions(env, code)