Commit 6b8bbcb5 authored by Lisandro Dalcin's avatar Lisandro Dalcin

make CTypedefType.declaration_code() honor dll_linkage

parent ab205d63
...@@ -202,7 +202,11 @@ class CTypedefType(BaseType): ...@@ -202,7 +202,11 @@ class CTypedefType(BaseType):
def declaration_code(self, entity_code, def declaration_code(self, entity_code,
for_display = 0, dll_linkage = None, pyrex = 0): for_display = 0, dll_linkage = None, pyrex = 0):
name = self.declaration_name(for_display, pyrex) name = self.declaration_name(for_display, pyrex)
return self.base_declaration_code(name, entity_code) if pyrex or for_display:
base_code = name
else:
base_code = public_decl(name, dll_linkage)
return self.base_declaration_code(base_code, entity_code)
def declaration_name(self, for_display = 0, pyrex = 0): def declaration_name(self, for_display = 0, pyrex = 0):
if pyrex or for_display: if pyrex or for_display:
......
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