From: Stefan Behnel Date: Fri, 6 Jun 2008 19:38:45 +0000 (+0200) Subject: Pyrex merge: removed leaking declarations X-Git-Tag: 0.9.8rc1~11^2~10^2~6^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b595d5b4c6854a8f03bfb3cbf816d42093bf4986;p=cython.git Pyrex merge: removed leaking declarations --- diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index b5334c1a..587cd2c5 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -702,8 +702,9 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): entry.type.typeptr_cname) code.put_var_declarations(env.var_entries, static = 1, dll_linkage = "DL_EXPORT", definition = definition) - code.put_var_declarations(env.default_entries, static = 1, - definition = definition) + if definition: + code.put_var_declarations(env.default_entries, static = 1, + definition = definition) def generate_cfunction_predeclarations(self, env, code, definition): for entry in env.cfunc_entries: