From: Lisandro Dalcin Date: Fri, 17 Apr 2009 16:11:23 +0000 (-0300) Subject: make '__pyx_modulename' have static storage in generated C code X-Git-Tag: 0.11.2.rc1~59 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f2377459477c32456e866944f76a6540d80d692a;p=cython.git make '__pyx_modulename' have static storage in generated C code --- diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 41df891e..7c74484a 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -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)