Diff for /rpl/src/instructions_r4.c between versions 1.106 and 1.117

version 1.106, 2018/06/01 09:57:27 version 1.117, 2023/08/08 08:53:40
Line 1 Line 1
 /*  /*
 ================================================================================  ================================================================================
   RPL/2 (R) version 4.1.29    RPL/2 (R) version 4.1.35
   Copyright (C) 1989-2018 Dr. BERTRAND Joël    Copyright (C) 1989-2023 Dr. BERTRAND Joël
   
   This file is part of RPL/2.    This file is part of RPL/2.
   
Line 962  instruction_read(struct_processus *s_eta Line 962  instruction_read(struct_processus *s_eta
             printf("(read a record of a file)\n\n");              printf("(read a record of a file)\n\n");
         }          }
   
         printf("    1: %s, %s\n\n", d_FCH, d_SCK);          printf("    1: %s, %s\n", d_FCH, d_SCK);
           printf("->  1: %s\n\n", d_LST);
   
         printf("    2: %s, %s\n", d_INT, d_CHN);          printf("    2: %s, %s\n", d_INT, d_CHN);
         printf("    1: %s\n", d_FCH);          printf("    1: %s\n", d_FCH);
           printf("->  1: %s\n\n", d_LST);
         return;          return;
     }      }
     else if ((*s_etat_processus).test_instruction == 'Y')      else if ((*s_etat_processus).test_instruction == 'Y')
Line 2120  instruction_read(struct_processus *s_eta Line 2122  instruction_read(struct_processus *s_eta
                             if (sscanf(&(format_chaine[8]), "%lld", &longueur)                              if (sscanf(&(format_chaine[8]), "%lld", &longueur)
                                     != 1)                                      != 1)
                             {                              {
                                 liberation(s_etat_processus, s_objet_argument_1);                                  liberation(s_etat_processus,
                                           s_objet_argument_1);
                                 liberation(s_etat_processus, s_objet_resultat);                                  liberation(s_etat_processus, s_objet_resultat);
                                 free(format_chaine);                                  free(format_chaine);
   
Line 3546  instruction_read(struct_processus *s_eta Line 3549  instruction_read(struct_processus *s_eta
   
             do              do
             {              {
                 if ((tampon_lecture = malloc((((long long unsigned int)                  if ((tampon_lecture = malloc((((size_t) longueur_questure) + 1)
                         longueur_questure) + 1) *                          * sizeof(unsigned char))) == NULL)
                         sizeof(unsigned char))) == NULL)  
                 {                  {
                     (*s_etat_processus).erreur_systeme =                      (*s_etat_processus).erreur_systeme =
                             d_es_allocation_memoire;                              d_es_allocation_memoire;
Line 3728  instruction_read(struct_processus *s_eta Line 3730  instruction_read(struct_processus *s_eta
                 return;                  return;
             }              }
   
             if (((*s_objet_type).objet = malloc((long long unsigned int)              if (((*s_objet_type).objet = malloc((size_t) longueur_enregistrement
                     longueur_enregistrement *                      * sizeof(unsigned char))) == NULL)
                     sizeof(unsigned char))) == NULL)  
             {              {
                 (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;                  (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;
                 return;                  return;

Removed from v.1.106  
changed lines
  Added in v.1.117


CVSweb interface <joel.bertrand@systella.fr>