summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2009-07-01 10:42:43 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2009-07-01 10:42:43 (GMT)
commited952894affe797b36b2b4d5d30cbbe9c3177a1d (patch) (side-by-side diff)
tree154ce49cedd26a967fb89ac68df6d532bb9c5131
parent23abfa7a31bf5dedd09cd0963da7dc4a291631eb (diff)
downloadcflow-ed952894affe797b36b2b4d5d30cbbe9c3177a1d.tar.gz
cflow-ed952894affe797b36b2b4d5d30cbbe9c3177a1d.tar.bz2
Bugfix.
* src/parser.c (parse_variable_declaration): Skip eventual modifiers before the ident.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--src/parser.c2
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
@@ -519,6 +519,8 @@ parse_variable_declaration(Ident *ident, int parm)
}
putback();
skip_struct();
+ while (tok.type == MODIFIER)
+ nexttoken();
if (tok.type == IDENTIFIER) {
TOKSTK hold = tok;
restore(sp);

Return to:

Send suggestions and report system problems to the System administrator.