X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lexer%2Fmain.c;h=3837e9bcf3daa7d4eacf8b6350386aacd0445a80;hb=7f9d92f6d5a67e5afd2351893abc51d73f1d47d8;hp=0cdc70b9da3f066fa591869584e4a0fae7af8cd6;hpb=3db137c9fd807dbc42d1fa619e2ef17cc479c805;p=TP_AL_C.git diff --git a/lexer/main.c b/lexer/main.c index 0cdc70b..3837e9b 100644 --- a/lexer/main.c +++ b/lexer/main.c @@ -11,7 +11,7 @@ struct token_s { wint_t value[50]; }; -struct token_s token[TOKEN_MAX] = {NULL, 0}; +struct token_s token[TOKEN_MAX] = {{NULL, {0}}}; FILE *source = NULL, *target = NULL; wint_t c; @@ -40,6 +40,7 @@ bool istAlpha() { 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 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'Ô' || \