prise en compte du flush dans les chaines de caractères

This commit is contained in:
Faure Paul 2021-07-16 16:03:17 +02:00
parent 012f46f03c
commit f1214cfd12

View file

@ -131,6 +131,10 @@ Print : tPRINT tOBRACE tSTR tCBRACE {int i = 0;
$3[i - decalage - 1] = '\n'; $3[i - decalage - 1] = '\n';
previous = 'a'; previous = 'a';
decalage++; decalage++;
} else if (previous == '\\' && $3[i] == '0') {
$3[i - decalage - 1] = '\0';
previous = 'a';
decalage++;
} else { } else {
$3[i-decalage] = $3[i]; $3[i-decalage] = $3[i];
previous = $3[i]; previous = $3[i];