--- rpl/src/types.c 2010/02/08 19:26:32 1.4 +++ rpl/src/types.c 2010/03/17 14:14:38 1.10 @@ -1,6 +1,6 @@ /* ================================================================================ - RPL/2 (R) version 4.0.10 + RPL/2 (R) version 4.0.13 Copyright (C) 1989-2010 Dr. BERTRAND Joël This file is part of RPL/2. @@ -176,6 +176,9 @@ recherche_type(struct_processus *s_etat_ (*s_objet).type = FCT; (*s_objet).objet = element; + (*((struct_fonction *) (*s_objet).objet)).prediction_saut = NULL; + (*((struct_fonction *) (*s_objet).objet)).prediction_execution + = d_faux; if (empilement(s_etat_processus, &((*s_etat_processus).l_base_pile), s_objet) == d_erreur) @@ -2731,7 +2734,7 @@ recherche_type(struct_processus *s_etat_ (*s_sous_objet).type = FCT; if (((*s_sous_objet).objet = (void *) - allocation(s_etat_processus, FCT)) + malloc(sizeof(struct_fonction))) == NULL) { (*s_etat_processus).erreur_systeme = @@ -2811,62 +2814,11 @@ recherche_type(struct_processus *s_etat_ while((*ptr_lecture) != d_code_fin_chaine) { - if ((*ptr_lecture) == '\\') - { - if ((*(ptr_lecture + 1)) == '"') - { - if ((*(ptr_lecture + 2)) != d_code_fin_chaine) - { - ptr_lecture++; - } - } - else if ((*(ptr_lecture + 1)) == 'b') - { - if ((*(ptr_lecture + 2)) != d_code_fin_chaine) - { - ptr_lecture++; - (*ptr_lecture) = '\b'; - } - } - else if ((*(ptr_lecture + 1)) == 'n') - { - if ((*(ptr_lecture + 2)) != d_code_fin_chaine) - { - ptr_lecture++; - (*ptr_lecture) = '\n'; - } - } - else if ((*(ptr_lecture + 1)) == 't') - { - if ((*(ptr_lecture + 2)) != d_code_fin_chaine) - { - ptr_lecture++; - (*ptr_lecture) = '\t'; - } - } - else if ((*(ptr_lecture + 1)) == '\\') - { - if ((*(ptr_lecture + 2)) != d_code_fin_chaine) - { - ptr_lecture++; - } - } - } - *ptr_ecriture++ = *ptr_lecture++; } (*(--ptr_ecriture)) = d_code_fin_chaine; - if ((element = realloc(element, (strlen((unsigned char *) - element) + 1) * sizeof(unsigned char))) == NULL) - { - (*s_etat_processus).erreur_systeme = d_es_allocation_memoire; - (*s_etat_processus).traitement_interruptible = - registre_interruption; - return; - } - break; } @@ -3519,7 +3471,8 @@ recherche_type(struct_processus *s_etat_ &((*s_etat_processus).l_base_pile), s_objet) == d_erreur) { (*s_etat_processus).erreur_systeme = d_es_allocation_memoire; - (*s_etat_processus).traitement_interruptible = registre_interruption; + (*s_etat_processus).traitement_interruptible = + registre_interruption; return; }