Commit a39c2fdd authored by Stefan Behnel's avatar Stefan Behnel

greg: Fix ishimoto4 - calling convention omitted from func defn

parent a3d670b0
...@@ -813,7 +813,7 @@ class CFuncDefNode(FuncDefNode): ...@@ -813,7 +813,7 @@ class CFuncDefNode(FuncDefNode):
arg_decls.append("...") arg_decls.append("...")
if not arg_decls: if not arg_decls:
arg_decls = ["void"] arg_decls = ["void"]
entity = "%s(%s)" % (self.entry.func_cname, entity = type.function_header_code(self.entry.func_cname,
string.join(arg_decls, ",")) string.join(arg_decls, ","))
if self.visibility == 'public': if self.visibility == 'public':
dll_linkage = "DL_EXPORT" dll_linkage = "DL_EXPORT"
......
...@@ -649,6 +649,10 @@ class CFuncType(CType): ...@@ -649,6 +649,10 @@ class CFuncType(CType):
"%s%s(%s)%s" % (cc, entity_code, arg_decl_code, exc_clause), "%s%s(%s)%s" % (cc, entity_code, arg_decl_code, exc_clause),
for_display, dll_linkage, pyrex) for_display, dll_linkage, pyrex)
def function_header_code(self, func_name, arg_code):
return "%s%s(%s)" % (self.calling_convention_prefix(),
func_name, arg_code)
def signature_string(self): def signature_string(self):
s = self.declaration_code("") s = self.declaration_code("")
return s return s
......
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