diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-07-01 13:42:43 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-07-01 13:42:43 +0300 |
commit | ed952894affe797b36b2b4d5d30cbbe9c3177a1d (patch) | |
tree | 154ce49cedd26a967fb89ac68df6d532bb9c5131 | |
parent | 23abfa7a31bf5dedd09cd0963da7dc4a291631eb (diff) | |
download | cflow-ed952894affe797b36b2b4d5d30cbbe9c3177a1d.tar.gz cflow-ed952894affe797b36b2b4d5d30cbbe9c3177a1d.tar.bz2 |
Bugfix.
* src/parser.c (parse_variable_declaration): Skip eventual modifiers
before the ident.
-rw-r--r-- | src/parser.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser.c b/src/parser.c index c918b43..16ab289 100644 --- a/src/parser.c +++ b/src/parser.c @@ -516,12 +516,14 @@ parse_variable_declaration(Ident *ident, int parm) if (tok.type == STRUCT) { if (nexttoken() == IDENTIFIER) { ident->type_end = tos; } putback(); skip_struct(); + while (tok.type == MODIFIER) + nexttoken(); if (tok.type == IDENTIFIER) { TOKSTK hold = tok; restore(sp); if (ident->type_end == -1) { /* there was no tag. Insert { ... } */ tos = curs; |