From: Christoph Mallon Date: Fri, 14 Nov 2008 15:16:27 +0000 (+0000) Subject: Teach cparser how to parse (f)(void);, i.e. global declarations can start with a (. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=55b16fa3763521f0c279a0fc5ad01338a974aea3;p=cparser Teach cparser how to parse (f)(void);, i.e. global declarations can start with a (. [r23658] --- diff --git a/parser.c b/parser.c index c7f8ae7..13f2cbb 100644 --- a/parser.c +++ b/parser.c @@ -10405,6 +10405,8 @@ static void parse_translation_unit(void) DECLARATION_START case T_IDENTIFIER: case T___extension__: + case '(': /* for function declarations with implicit return type and + * parenthesized declarator, i.e. (f)(void); */ parse_external_declaration(); break;