From dc16eb57febc6590ab2e834d8af906713ac5f837 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Sat, 23 Aug 2008 10:17:47 +0000 Subject: [PATCH] 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] --- lexer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1