- fixed function type calling convention
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 7 Apr 2009 12:10:38 +0000 (12:10 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 7 Apr 2009 12:10:38 +0000 (12:10 +0000)
[r25814]

type.c

diff --git a/type.c b/type.c
index f2642f9..74fc7e0 100644 (file)
--- a/type.c
+++ b/type.c
@@ -331,10 +331,10 @@ static void print_function_type_pre(const function_type_t *type)
        intern_print_type_pre(type->return_type);
 
        switch (type->calling_convention) {
-       case CC_CDECL:    fputs("__cdecl ",    out); break;
-       case CC_STDCALL:  fputs("__stdcall ",  out); break;
-       case CC_FASTCALL: fputs("__fastcall ", out); break;
-       case CC_THISCALL: fputs("__thiscall ", out); break;
+       case CC_CDECL:    fputs(" __cdecl",    out); break;
+       case CC_STDCALL:  fputs(" __stdcall",  out); break;
+       case CC_FASTCALL: fputs(" __fastcall", out); break;
+       case CC_THISCALL: fputs(" __thiscall", out); break;
        case CC_DEFAULT:  break;
        }
 }