From aa8b7bf2f96c1f47a68e96a5a2a125fc91cb0cc2 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Wed, 27 Aug 2008 17:31:42 +0000 Subject: [PATCH] When printing parentheses around a function declarator, print the closing parenthesis after the parameter list, not before it. [r21521] --- type.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/type.c b/type.c index 37893b9..aaefda1 100644 --- a/type.c +++ b/type.c @@ -311,12 +311,8 @@ 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 braces if we're the toplevel type... */ - if (!top) - fputc(')', out); fputc('(', out); - bool first = true; if (scope == NULL) { function_parameter_t *parameter = type->parameters; @@ -352,6 +348,10 @@ static void print_function_type_post(const function_type_t *type, fputs("void", out); } fputc(')', out); + + /* don't emit braces if we're the toplevel type... */ + if (!top) + fputc(')', out); } /** -- 2.20.1