break;
}
- /* don't emit braces if we're the toplevel type... */
+ /* don't emit parenthesis if we're the toplevel type... */
if (!top)
fputc('(', out);
}
static void print_function_type_post(const function_type_t *type,
const scope_t *scope, bool top)
{
- intern_print_type_post(type->return_type, false);
+ /* don't emit parenthesis if we're the toplevel type... */
+ if (!top)
+ fputc(')', out);
fputc('(', out);
bool first = true;
}
fputc(')', out);
- /* don't emit braces if we're the toplevel type... */
- if (!top)
- fputc(')', out);
+ intern_print_type_post(type->return_type, false);
}
/**