Diff for /rpl/src/instructions_v1.c between versions 1.28 and 1.37

version 1.28, 2011/07/24 14:44:10 version 1.37, 2012/01/17 14:44:12
Line 1 Line 1
 /*  /*
 ================================================================================  ================================================================================
   RPL/2 (R) version 4.1.1    RPL/2 (R) version 4.1.6
   Copyright (C) 1989-2011 Dr. BERTRAND Joël    Copyright (C) 1989-2012 Dr. BERTRAND Joël
   
   This file is part of RPL/2.    This file is part of RPL/2.
   
Line 239  instruction_version(struct_processus *s_ Line 239  instruction_version(struct_processus *s_
     unsigned char                       texte[] = "RPL/2 version ";      unsigned char                       texte[] = "RPL/2 version ";
     unsigned char                       tampon[256 + 1];      unsigned char                       tampon[256 + 1];
   
     void                                *pointeur;  
   
     (*s_etat_processus).erreur_execution = d_ex;      (*s_etat_processus).erreur_execution = d_ex;
   
     if ((*s_etat_processus).affichage_arguments == 'Y')      if ((*s_etat_processus).affichage_arguments == 'Y')
Line 502  instruction_version(struct_processus *s_ Line 500  instruction_version(struct_processus *s_
         return;          return;
     }      }
   
     if (((*(*l_element_courant).donnee).objet = malloc((strlen(d_date_en_rpl)      if (((*(*l_element_courant).donnee).objet = date_compilation()) == NULL)
             + 1) * sizeof(unsigned char))) == NULL)  
     {      {
         (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;          (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;
         return;          return;
     }      }
   
     strcpy((unsigned char *) (*(*l_element_courant).donnee).objet,  
             d_date_en_rpl);  
   
     /*      /*
      * Ajout des options de compilation       * Ajout des options de compilation
      */       */
Line 911  instruction_version(struct_processus *s_ Line 905  instruction_version(struct_processus *s_
         return;          return;
     }      }
   
     sprintf(tampon, "%d BITS ABI", sizeof(pointeur) * 8);      sprintf(tampon, "%zu BITS ABI", sizeof(void *) * 8);
   
     if (((*(*l_element_courant).donnee).objet = malloc((strlen(tampon) + 1 )      if (((*(*l_element_courant).donnee).objet = malloc((strlen(tampon) + 1 )
             * sizeof(unsigned char))) == NULL)              * sizeof(unsigned char))) == NULL)

Removed from v.1.28  
changed lines
  Added in v.1.37


CVSweb interface <joel.bertrand@systella.fr>