dll_linkage = dll_linkage)
if entry.visibility == 'private':
storage_class = "static "
+ elif entry.visibility == 'public':
+ storage_class = ""
else:
storage_class = "%s " % Naming.extern_c_macro
code.putln("%s%s; /*proto*/" % (
dll_linkage = None
header = self.return_type.declaration_code(entity,
dll_linkage = dll_linkage)
- if visibility != 'private':
+ if visibility == 'extern':
storage_class = "%s " % Naming.extern_c_macro
+ elif visibility == 'public':
+ storage_class = ""
else:
storage_class = "static "
code.putln("%s%s %s {" % (