repositories
/
TP_AL_C.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Address a FIXME.
[TP_AL_C.git]
/
lexer
/
syntactic_analyzer.c
diff --git
a/lexer/syntactic_analyzer.c
b/lexer/syntactic_analyzer.c
index 65997ddfed47b40dad0ef4008599cbd8cb2a5828..5f14600699f60354ca18cf31189703244c7996d4 100644
(file)
--- 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);
if (tokenType == NPARA) {
#if PRINT_TOKEN
wprint_ctoken(stdout);
- #endif
+ #endif
/* PRINT_TOKEN */
scanner();
if (target != NULL) {
fputws(L"<p>\n", target);
scanner();
if (target != NULL) {
fputws(L"<p>\n", target);
@@
-70,8
+70,7
@@
static void analyze_HEAD() {
#if DEBUG
fprintf(stdout, "entering %s\n", __func__);
#endif
#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"<title>\n", target);
fputws(L" ", target);
if (target != NULL) {
fputws(L"<title>\n", target);
fputws(L" ", target);
@@
-81,12
+80,11
@@
static void analyze_HEAD() {
if (target != NULL) {
fputws(L"\n</title>\n", target);
}
if (target != NULL) {
fputws(L"\n</title>\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();
#if PRINT_TOKEN
wprint_ctoken(stdout);
#endif /* PRINT_TOKEN */
scanner();
- //The text contain the author
fputws(L"<meta name=\"author\" content=\"", target);
analyze_TEXT();
fputws(L"\">", target);
fputws(L"<meta name=\"author\" content=\"", target);
analyze_TEXT();
fputws(L"\">", target);