version 1.4, 2010/02/26 19:22:05
|
version 1.6, 2010/03/04 10:09:31
|
Line 1092 instruction_str_fleche(struct_processus
|
Line 1092 instruction_str_fleche(struct_processus
|
|
|
if ((*s_objet).type == CHN) |
if ((*s_objet).type == CHN) |
{ |
{ |
position_courante = (*s_etat_processus).position_courante; |
|
registre_definitions_chainees = (*s_etat_processus) |
|
.definitions_chainees; |
|
registre_instruction_courante = (*s_etat_processus) |
|
.instruction_courante; |
|
|
|
// Comptage des caractères à protéger. |
// Comptage des caractères à protéger. |
|
|
drapeau45 = test_cfsf(s_etat_processus, 45); |
drapeau45 = test_cfsf(s_etat_processus, 45); |
Line 1127 instruction_str_fleche(struct_processus
|
Line 1121 instruction_str_fleche(struct_processus
|
|
|
if (presence_chaine == d_vrai) |
if (presence_chaine == d_vrai) |
{ |
{ |
if ((*ptr_l) == '\\') |
switch(*ptr_l) |
|
{ |
|
case '\\': |
|
case '\t': |
|
case '\b': |
|
case '\n': |
|
{ |
|
nombre_caracteres_supplementaires++; |
|
break; |
|
} |
|
} |
|
} |
|
else |
|
{ |
|
switch(*ptr_l) |
{ |
{ |
nombre_caracteres_supplementaires++; |
case '\n': |
|
case '\b': |
|
case '\t': |
|
{ |
|
nombre_caracteres_supplementaires--; |
|
break; |
|
} |
} |
} |
} |
} |
|
|
Line 1163 instruction_str_fleche(struct_processus
|
Line 1177 instruction_str_fleche(struct_processus
|
|
|
if (presence_chaine == d_vrai) |
if (presence_chaine == d_vrai) |
{ |
{ |
if ((*ptr_l) == '\\') |
switch(*ptr_l) |
{ |
{ |
(*(++ptr_e)) = '\\'; |
case '\\': |
|
{ |
|
(*(++ptr_e)) = '\\'; |
|
break; |
|
} |
|
|
|
case '\t': |
|
{ |
|
(*ptr_e) = '\\'; |
|
(*(++ptr_e)) = 't'; |
|
break; |
|
} |
|
|
|
case '\b': |
|
{ |
|
(*ptr_e) = '\\'; |
|
(*(++ptr_e)) = 'b'; |
|
break; |
|
} |
|
|
|
case '\n': |
|
{ |
|
(*ptr_e) = '\\'; |
|
(*(++ptr_e)) = 'n'; |
|
break; |
|
} |
|
} |
|
} |
|
else |
|
{ |
|
switch(*ptr_l) |
|
{ |
|
case '\n': |
|
case '\b': |
|
case '\t': |
|
{ |
|
ptr_e--; |
|
break; |
|
} |
} |
} |
} |
} |
|
|
Line 1175 instruction_str_fleche(struct_processus
|
Line 1227 instruction_str_fleche(struct_processus
|
|
|
(*ptr_e) = d_code_fin_chaine; |
(*ptr_e) = d_code_fin_chaine; |
|
|
|
position_courante = (*s_etat_processus).position_courante; |
|
registre_definitions_chainees = (*s_etat_processus) |
|
.definitions_chainees; |
|
registre_instruction_courante = (*s_etat_processus) |
|
.instruction_courante; |
|
(*s_etat_processus).position_courante = 0; |
(*s_etat_processus).definitions_chainees = chaine_convertie; |
(*s_etat_processus).definitions_chainees = chaine_convertie; |
free(tampon); |
free(tampon); |
|
|
Line 1272 instruction_str_fleche(struct_processus
|
Line 1330 instruction_str_fleche(struct_processus
|
} |
} |
else |
else |
{ |
{ |
|
printf("<1>\n"); |
liberation(s_etat_processus, s_objet); |
liberation(s_etat_processus, s_objet); |
|
|
free((*s_etat_processus).definitions_chainees); |
free((*s_etat_processus).definitions_chainees); |