X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lexer%2Flexical_analyzer.c;h=25526054ddd436ee3f24865bb5984e336b6a52bb;hb=5c1346dd169a32638aa70812aee0fc0dea3ccb70;hp=36acd5e214098b47d2078cac42a2bb4d4779c15a;hpb=9ed84d89d23a6198fd4157bfe93424b7b7582332;p=TP_AL_C.git diff --git a/lexer/lexical_analyzer.c b/lexer/lexical_analyzer.c index 36acd5e..2552605 100644 --- a/lexer/lexical_analyzer.c +++ b/lexer/lexical_analyzer.c @@ -200,13 +200,16 @@ FIN: error: if (tokenType == MOT || tokenType == MOTCLE) { - wpr_error(L"Scanner error with token type: %s and value: %ls\n", - tokenTypestr[tokenType], - token[tokenFound].value); + fwprintf(stderr, L"%s error with token type: %s and value: %ls\n", + __func__, + tokenTypestr[tokenType], + token[tokenFound].value); } else { - wpr_error(L"Scanner error with token type: %s\n", - tokenTypestr[tokenType]); + fwprintf(stderr, L"%s error with token type: %s\n", + __func__, + tokenTypestr[tokenType]); } + fflush(stderr); tokenType = FIN; exit(EXIT_FAILURE); }