From: Jérôme Benoit Date: Sun, 25 Feb 2018 16:20:46 +0000 (+0100) Subject: No need to zero the array of token values ends. X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=29247470580ca742a19ff16a639d316f99ac9e8f;p=TP_AL_C.git No need to zero the array of token values ends. Signed-off-by: Jérôme Benoit --- diff --git a/.gitignore b/.gitignore index 6b4cd4f..dc53bb5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -lexer +lexer/lexer !lexer/ *.static *.dynamic diff --git a/lexer/lexical_analyzer.c b/lexer/lexical_analyzer.c index 0d6a728..8805a54 100644 --- a/lexer/lexical_analyzer.c +++ b/lexer/lexical_analyzer.c @@ -187,7 +187,6 @@ NPARA: return EXIT_SUCCESS; MOT: - token[tokenFound].value[i] = 0; tokenValue[i] = 0; tokenType = MOT; return EXIT_SUCCESS;