Commit 69257409 authored by Stefan Behnel's avatar Stefan Behnel

this patch seems to fix some builtin-related declaration problems for me

parent 21fb92fb
...@@ -13,7 +13,7 @@ class CythonScope(ModuleScope): ...@@ -13,7 +13,7 @@ class CythonScope(ModuleScope):
self.shape_entry = self.declare_cfunction('shape', self.shape_entry = self.declare_cfunction('shape',
shape_func_type, shape_func_type,
pos=None, pos=None,
visibility='public', visibility='extern',
cname='<error>') cname='<error>')
def create_cython_scope(context): def create_cython_scope(context):
......
...@@ -686,7 +686,7 @@ class BuiltinScope(Scope): ...@@ -686,7 +686,7 @@ class BuiltinScope(Scope):
# If python_equiv == "*", the Python equivalent has the same name # If python_equiv == "*", the Python equivalent has the same name
# as the entry, otherwise it has the name specified by python_equiv. # as the entry, otherwise it has the name specified by python_equiv.
name = EncodedString(name) 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 entry.utility_code = utility_code
if python_equiv: if python_equiv:
if python_equiv == "*": if python_equiv == "*":
......
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