From 4a12843dc39175cab8102af9cd3397e2eb29a027 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 25 Feb 2018 16:24:18 +0100 Subject: [PATCH] Address a FIXME. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- lexer/syntactic_analyzer.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lexer/syntactic_analyzer.c b/lexer/syntactic_analyzer.c index 65997dd..5f14600 100644 --- a/lexer/syntactic_analyzer.c +++ b/lexer/syntactic_analyzer.c @@ -46,7 +46,7 @@ static void analyze_P() { if (tokenType == NPARA) { #if PRINT_TOKEN wprint_ctoken(stdout); - #endif + #endif /* PRINT_TOKEN */ scanner(); if (target != NULL) { fputws(L"

\n", target); @@ -70,8 +70,7 @@ static void analyze_HEAD() { #if DEBUG fprintf(stdout, "entering %s\n", __func__); #endif - if (tokenType == MOTCLE) { - //FIXME: Check if the MOTCLE token value is set to >Titre + if (tokenType == MOTCLE && wcscmp(L">Titre", (const wchar_t*)tokenValue) == 0) { if (target != NULL) { fputws(L"\n", target); fputws(L" ", target); @@ -81,12 +80,11 @@ static void analyze_HEAD() { if (target != NULL) { fputws(L"\n\n", target); } - if (tokenType == MOTCLE) { + if (tokenType == MOTCLE && wcscmp(L">Auteur", (const wchar_t*)tokenValue) == 0) { #if PRINT_TOKEN wprint_ctoken(stdout); #endif /* PRINT_TOKEN */ scanner(); - //The text contain the author fputws(L"", target); -- 2.34.1