Diff for /rpl/src/instructions_p4.c between versions 1.48 and 1.70

version 1.48, 2013/03/23 16:14:39 version 1.70, 2018/12/24 15:56:13
Line 1 Line 1
 /*  /*
 ================================================================================  ================================================================================
   RPL/2 (R) version 4.1.13    RPL/2 (R) version 4.1.30
   Copyright (C) 1989-2013 Dr. BERTRAND Joël    Copyright (C) 1989-2018 Dr. BERTRAND Joël
   
   This file is part of RPL/2.    This file is part of RPL/2.
   
Line 511  instruction_prusr(struct_processus *s_et Line 511  instruction_prusr(struct_processus *s_et
         }          }
     }      }
   
     if (pthread_mutex_lock(&mutex_liste_variables_partagees) != 0)  
     {  
         (*s_etat_processus).erreur_systeme = d_es_processus;  
         return;  
     }  
   
     nb_variables = nombre_variables(s_etat_processus);      nb_variables = nombre_variables(s_etat_processus);
   
     if ((tableau = malloc(((size_t) nb_variables) *      if ((tableau = malloc(((size_t) nb_variables) *
Line 524  instruction_prusr(struct_processus *s_et Line 518  instruction_prusr(struct_processus *s_et
     {      {
         liberation_mutexes_arbre_variables_partagees(s_etat_processus,          liberation_mutexes_arbre_variables_partagees(s_etat_processus,
                 (*(*s_etat_processus).s_arbre_variables_partagees));                  (*(*s_etat_processus).s_arbre_variables_partagees));
         pthread_mutex_unlock(&mutex_liste_variables_partagees);  
         (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;          (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;
         return;          return;
     }      }
   
     nb_variables = liste_variables(s_etat_processus, tableau);      nb_variables = liste_variables(s_etat_processus, tableau);
   
     if (pthread_mutex_unlock(&mutex_liste_variables_partagees) != 0)  
     {  
         (*s_etat_processus).erreur_systeme = d_es_processus;  
         return;  
     }  
   
     s_objet.type = CHN;      s_objet.type = CHN;
   
     for(i = 0; i < nb_variables; i++)      for(i = 0; i < nb_variables; i++)
Line 1450  instruction_psdev(struct_processus *s_et Line 1436  instruction_psdev(struct_processus *s_et
         }          }
   
         if (((*s_objet_resultat).objet = ecart_type_statistique(          if (((*s_objet_resultat).objet = ecart_type_statistique(
                   s_etat_processus,
                 (struct_matrice *) (*s_objet_statistique).objet, 'P')) == NULL)                  (struct_matrice *) (*s_objet_statistique).objet, 'P')) == NULL)
         {          {
             (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;              (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;
Line 1627  instruction_pvar(struct_processus *s_eta Line 1614  instruction_pvar(struct_processus *s_eta
             return;              return;
         }          }
   
         if (((*s_objet_resultat).objet = variance_statistique((struct_matrice *)          if (((*s_objet_resultat).objet = variance_statistique(s_etat_processus,
                 (*s_objet_statistique).objet, 'P')) == NULL)                  (struct_matrice *) (*s_objet_statistique).objet, 'P')) == 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.48  
changed lines
  Added in v.1.70


CVSweb interface <joel.bertrand@systella.fr>