From: Christoph Mallon Date: Sat, 23 Aug 2008 10:17:47 +0000 (+0000) Subject: First print the error message about an unknown char, then proceed to the next char... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=dc16eb57febc6590ab2e834d8af906713ac5f837;p=cparser First print the error message about an unknown char, then proceed to the next char, so the unknown char is printed, not the next char. [r21380] --- diff --git a/lexer.c b/lexer.c index 7a906d4..42b1710 100644 --- a/lexer.c +++ b/lexer.c @@ -1573,8 +1573,8 @@ void lexer_next_preprocessing_token(void) return; default: + errorf(&lexer_token.source_position, "unknown character '%c' found", c); next_char(); - errorf(&lexer_token.source_position, "unknown character '%c' found\n", c); lexer_token.type = T_ERROR; return; }