First print the error message about an unknown char, then proceed to the next char...
authorChristoph Mallon <christoph.mallon@gmx.de>
Sat, 23 Aug 2008 10:17:47 +0000 (10:17 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sat, 23 Aug 2008 10:17:47 +0000 (10:17 +0000)
[r21380]

lexer.c

diff --git a/lexer.c b/lexer.c
index 7a906d4..42b1710 100644 (file)
--- 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;
                }