c == L'\''|| c == L'#' || \
c == L'0' || c == L'1' || c == L'2' || c == L'3' || c == L'4' || c == L'5' || c == L'6' || \
c == L'7' || c == L'8' || c == L'9' || \
- // FIXME: Accentued characters (aka multibytes characters) support is still buggy
+ //FIXME: Accentued characters (aka multibytes characters) support is still buggy
c == L'à' || c == L'â' || c == L'ç' || c == L'è' || c == L'é' || c == L'î' || c == L'ô' || \
c == L'ù' || c == L'û' || \
c == L'À' || c == L'Â' || c == L'Ç' || c == L'È' || c == L'É' || c == L'Î' || c == L'Ô' || \
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);
}