Diff for /rpl/src/instructions_f1.c between versions 1.3 and 1.8

version 1.3, 2010/02/10 10:14:22 version 1.8, 2010/04/17 18:57:35
Line 1 Line 1
 /*  /*
 ================================================================================  ================================================================================
   RPL/2 (R) version 4.0.11    RPL/2 (R) version 4.0.14
   Copyright (C) 1989-2010 Dr. BERTRAND Joël    Copyright (C) 1989-2010 Dr. BERTRAND Joël
   
   This file is part of RPL/2.    This file is part of RPL/2.
Line 578  instruction_fleche(struct_processus *s_e Line 578  instruction_fleche(struct_processus *s_e
             }              }
             else              else
             {              {
                   // Variable partagée à utiliser
                 // Variable partagee à créer                  // Variable partagee à créer
   
                 (*s_etat_processus).erreur_systeme = d_es;                  (*s_etat_processus).erreur_systeme = d_es;
Line 585  instruction_fleche(struct_processus *s_e Line 586  instruction_fleche(struct_processus *s_e
                 if ((s_variable_partagee.nom = malloc((strlen(s_variable.nom)                  if ((s_variable_partagee.nom = malloc((strlen(s_variable.nom)
                         + 1) * sizeof(unsigned char))) == NULL)                          + 1) * sizeof(unsigned char))) == NULL)
                 {                  {
                       if (pthread_mutex_unlock(&((*(*s_etat_processus)
                               .s_liste_variables_partagees).mutex)) != 0)
                       {
                           (*s_etat_processus).erreur_systeme = d_es_processus;
                           return;
                       }
   
                     (*s_etat_processus).erreur_systeme =                      (*s_etat_processus).erreur_systeme =
                             d_es_allocation_memoire;                              d_es_allocation_memoire;
                     return;                      return;
Line 631  instruction_fleche(struct_processus *s_e Line 639  instruction_fleche(struct_processus *s_e
                 if (creation_variable_partagee(s_etat_processus,                  if (creation_variable_partagee(s_etat_processus,
                         &s_variable_partagee) == d_erreur)                          &s_variable_partagee) == d_erreur)
                 {                  {
                       if (pthread_mutex_unlock(&((*(*s_etat_processus)
                               .s_liste_variables_partagees).mutex)) != 0)
                       {
                           (*s_etat_processus).erreur_systeme = d_es_processus;
                           return;
                       }
   
                     return;                      return;
                 }                  }
   

Removed from v.1.3  
changed lines
  Added in v.1.8


CVSweb interface <joel.bertrand@systella.fr>