From: Stefan Behnel Date: Sat, 16 Aug 2008 19:58:05 +0000 (+0200) Subject: this patch seems to fix some builtin-related declaration problems for me X-Git-Tag: 0.9.8.1~13^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=692574099a89c792bd6de7761be3df2db71369a7;p=cython.git this patch seems to fix some builtin-related declaration problems for me --- diff --git a/Cython/Compiler/CythonScope.py b/Cython/Compiler/CythonScope.py index f4896221..289d5743 100644 --- a/Cython/Compiler/CythonScope.py +++ b/Cython/Compiler/CythonScope.py @@ -13,7 +13,7 @@ class CythonScope(ModuleScope): self.shape_entry = self.declare_cfunction('shape', shape_func_type, pos=None, - visibility='public', + visibility='extern', cname='') def create_cython_scope(context): diff --git a/Cython/Compiler/Symtab.py b/Cython/Compiler/Symtab.py index 5b547b89..fd691a7c 100644 --- a/Cython/Compiler/Symtab.py +++ b/Cython/Compiler/Symtab.py @@ -686,7 +686,7 @@ class BuiltinScope(Scope): # If python_equiv == "*", the Python equivalent has the same name # as the entry, otherwise it has the name specified by python_equiv. name = EncodedString(name) - entry = self.declare_cfunction(name, type, None, cname) + entry = self.declare_cfunction(name, type, None, cname, visibility='extern') entry.utility_code = utility_code if python_equiv: if python_equiv == "*":