X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lexer%2Flexical_analyzer.c;h=25526054ddd436ee3f24865bb5984e336b6a52bb;hb=25696723c6a45c3b7a0c33c8cbe9b2a788928694;hp=42ab960eab1287665d4802d77a2532a4dcde2723;hpb=82220449f3f8d1c25474651379118eda02430a3c;p=TP_AL_C.git diff --git a/lexer/lexical_analyzer.c b/lexer/lexical_analyzer.c index 42ab960..2552605 100644 --- a/lexer/lexical_analyzer.c +++ b/lexer/lexical_analyzer.c @@ -201,14 +201,15 @@ FIN: error: if (tokenType == MOT || tokenType == MOTCLE) { fwprintf(stderr, L"%s error with token type: %s and value: %ls\n", - __func__, - tokenTypestr[tokenType], - token[tokenFound].value); + __func__, + tokenTypestr[tokenType], + token[tokenFound].value); } else { fwprintf(stderr, L"%s error with token type: %s\n", - __func__, - tokenTypestr[tokenType]); + __func__, + tokenTypestr[tokenType]); } + fflush(stderr); tokenType = FIN; exit(EXIT_FAILURE); }