From 425ad3ad039e5fa22160050591089dfdf0d67093 Mon Sep 17 00:00:00 2001 From: ketmar Date: Sun, 15 Sep 2013 22:56:36 +0300 Subject: [PATCH] scan.c: cosmetix --- src/scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scan.c b/src/scan.c index 81bd613..0251752 100644 --- a/src/scan.c +++ b/src/scan.c @@ -178,13 +178,13 @@ static int digit (int c, int base) { int yylex (void) { static char buf[BIGGEST_TOKEN]; int c; - char *b = buf; if (!incp) goto eof; /* get first character (whitespace or of token) */ c = yychar(); if (scan_mode == SCAN_STRING) { /* if scanning for a string (action's {}'s), look for the closing brace */ /* we handle matching braces, if they match! */ + char *b = buf; int nest = 1; while (c != EOF && b < buf+sizeof(buf)) { if (c == '{') ++nest; -- 2.11.4.GIT