projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7a0c34
)
make '__pyx_modulename' have static storage in generated C code
author
Lisandro Dalcin
<dalcinl@gmail.com>
Fri, 17 Apr 2009 16:11:23 +0000
(13:11 -0300)
committer
Lisandro Dalcin
<dalcinl@gmail.com>
Fri, 17 Apr 2009 16:11:23 +0000
(13:11 -0300)
Cython/Compiler/ModuleNode.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ModuleNode.py
b/Cython/Compiler/ModuleNode.py
index 41df891e6940d133aad0828fbfa68a817ee949fa..7c74484a9d8c8be0c2f631e1bb91e021c6e2adad 100644
(file)
--- 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)