From 2a2c993e872482c7c864fde73c7c132bc90886f5 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 12 Jun 2008 05:40:12 +0000 Subject: [PATCH] Code cleanup, Fixed compilation --- src/parser.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/parser.c b/src/parser.c index e140115..87cc4c6 100644 --- a/src/parser.c +++ b/src/parser.c @@ -351,8 +351,7 @@ static int _declaration_specifiers(C99 * c99) #ifdef DEBUG fprintf(stderr, "DEBUG: %s()\n", __func__); #endif - for(;;) - { + for(;; looped = 1) if(_parse_in_set(c99, c99set_storage_class_specifier)) ret |= _storage_class_specifier(c99); else if(_parse_in_set(c99, c99set_type_specifier)) @@ -368,8 +367,6 @@ static int _declaration_specifiers(C99 * c99) " specifier"); break; } - looped = 1; - } return ret; } @@ -1816,7 +1813,7 @@ static int _designator(C99 * c99) } else { - ret = _scan(c99); + ret = scan(c99); ret |= _identifier(c99); } return ret;