Commit f2377459 authored by Lisandro Dalcin's avatar Lisandro Dalcin

make '__pyx_modulename' have static storage in generated C code

parent e7a0c34d
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment