From: Christoph Mallon Date: Sun, 18 Nov 2007 12:24:04 +0000 (+0000) Subject: compound type specifiers can have __attribute__, too. Parse it (and ignore it for... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=b20f0c9f924b34a581ef0d4f9a09018ba3afec46;p=cparser compound type specifiers can have __attribute__, too. Parse it (and ignore it for now). [r18484] --- diff --git a/parser.c b/parser.c index 6bf4752..f030107 100644 --- a/parser.c +++ b/parser.c @@ -960,6 +960,11 @@ static declaration_t *parse_compound_type_specifier(bool is_struct) symbol_t *symbol = NULL; declaration_t *declaration = NULL; + if (token.type == T___attribute__) { + /* TODO */ + parse_attributes(); + } + if(token.type == T_IDENTIFIER) { symbol = token.v.symbol; next_token();