if entry and not entry.type.is_cfunction:
# This is legal Python, but for now will produce invalid C.
error(pos, "'%s' already declared" % name)
- entry = self.declare_var(name, py_object_type, pos)
+ entry = self.declare_var(name, py_object_type, pos, visibility='extern')
entry.signature = pyfunction_signature
self.pyfunc_entries.append(entry)
return entry
if len(value) < 2:
value = int(value)
elif value[0] == 0:
- return int(value, 8)
+ value = int(value, 8)
elif value[1] in 'xX':
- return int(value[2:], 16)
+ value = int(value[2:], 16)
+ else:
+ value = int(value)
return not -2**31 <= value < 2**31