Diff for /rpl/src/instructions_e2.c between versions 1.70 and 1.83

version 1.70, 2018/05/30 09:27:34 version 1.83, 2024/01/17 16:57:13
Line 1 Line 1
 /*  /*
 ================================================================================  ================================================================================
   RPL/2 (R) version 4.1.29    RPL/2 (R) version 4.1.36
   Copyright (C) 1989-2018 Dr. BERTRAND Joël    Copyright (C) 1989-2024 Dr. BERTRAND Joël
   
   This file is part of RPL/2.    This file is part of RPL/2.
   
Line 1136  instruction_externals(struct_processus * Line 1136  instruction_externals(struct_processus *
             if ((*s_etat_processus).s_instructions_externes[i].position_fleche              if ((*s_etat_processus).s_instructions_externes[i].position_fleche
                     >= 0)                      >= 0)
             {              {
                 strncpy((unsigned char *) (*(*l_element_courant).donnee).objet                  memcpy((unsigned char *) (*(*l_element_courant).donnee).objet
                         + (*s_etat_processus).s_instructions_externes[i]                          + (*s_etat_processus).s_instructions_externes[i]
                         .position_fleche - (strlen((*s_etat_processus)                          .position_fleche - (strlen((*s_etat_processus)
                         .s_instructions_externes[i].nom_bibliotheque) + 1),                          .s_instructions_externes[i].nom_bibliotheque) + 1),
Line 1162  instruction_externals(struct_processus * Line 1162  instruction_externals(struct_processus *
             if ((*s_etat_processus).s_instructions_externes[i].position_fleche              if ((*s_etat_processus).s_instructions_externes[i].position_fleche
                     >= 0)                      >= 0)
             {              {
                 strncpy((unsigned char *) (*(*l_element_courant).donnee).objet                  memcpy((unsigned char *) (*(*l_element_courant).donnee).objet
                         + (*s_etat_processus).s_instructions_externes[i]                          + (*s_etat_processus).s_instructions_externes[i]
                         .position_fleche, "->", 2);                          .position_fleche, "->", 2);
             }              }
Line 1283  instruction_exit(struct_processus *s_eta Line 1283  instruction_exit(struct_processus *s_eta
             presence_boucle = d_vrai;              presence_boucle = d_vrai;
             drapeau_boucle_definie = d_vrai;              drapeau_boucle_definie = d_vrai;
         }          }
         else if (((*l_element_pile_systeme).type_cloture ==  'D') ||          else if (((*l_element_pile_systeme).type_cloture == 'D') ||
                 ((*l_element_pile_systeme).type_cloture == 'W'))                  ((*l_element_pile_systeme).type_cloture == 'W'))
         {          {
             presence_boucle = d_vrai;              presence_boucle = d_vrai;
Line 1482  instruction_exit(struct_processus *s_eta Line 1482  instruction_exit(struct_processus *s_eta
                     }                      }
                     else                      else
                     {                      {
                         if ((strcmp(instruction_majuscule, "DO") == 0) ||                          empilement_pile_systeme(s_etat_processus);
                                 (strcmp(instruction_majuscule, "WHILE")  
                                 == 0))                          if (strcmp(instruction_majuscule, "DO") == 0)
                         {                          {
                               (*(*s_etat_processus).l_base_pile_systeme)
                                       .type_cloture = 'D';
                               niveau++;
                           }
                           else if (strcmp(instruction_majuscule, "WHILE") == 0)
                           {
                               (*(*s_etat_processus).l_base_pile_systeme)
                                       .type_cloture = 'W';
                             niveau++;                              niveau++;
                         }                          }
   
                         empilement_pile_systeme(s_etat_processus);  
   
                         if ((*s_etat_processus).erreur_systeme != d_es)                          if ((*s_etat_processus).erreur_systeme != d_es)
                         {                          {
Line 1752  instruction_exit(struct_processus *s_eta Line 1758  instruction_exit(struct_processus *s_eta
                     }                      }
                     else                      else
                     {                      {
                         if ((fonction == instruction_do) ||                          empilement_pile_systeme(s_etat_processus);
                                 (fonction == instruction_while))  
                           if (fonction == instruction_while)
                         {                          {
                               (*(*s_etat_processus).l_base_pile_systeme)
                                       .type_cloture = 'W';
                               niveau++;
                           }
                           else if (fonction == instruction_do)
                           {
                               (*(*s_etat_processus).l_base_pile_systeme)
                                       .type_cloture = 'D';
                             niveau++;                              niveau++;
                         }                          }
   
                         empilement_pile_systeme(s_etat_processus);  
   
                         if ((*s_etat_processus).erreur_systeme != d_es)                          if ((*s_etat_processus).erreur_systeme != d_es)
                         {                          {

Removed from v.1.70  
changed lines
  Added in v.1.83


CVSweb interface <joel.bertrand@systella.fr>