From f2377459477c32456e866944f76a6540d80d692a Mon Sep 17 00:00:00 2001 From: Lisandro Dalcin Date: Fri, 17 Apr 2009 13:11:23 -0300 Subject: [PATCH] make '__pyx_modulename' have static storage in generated C code --- Cython/Compiler/ModuleNode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.26.2