Diff for /rpl/src/instructions_l3.c between versions 1.8 and 1.52

version 1.8, 2010/05/24 10:58:33 version 1.52, 2015/02/19 11:01:24
Line 1 Line 1
 /*  /*
 ================================================================================  ================================================================================
   RPL/2 (R) version 4.0.16    RPL/2 (R) version 4.1.21
   Copyright (C) 1989-2010 Dr. BERTRAND Joël    Copyright (C) 1989-2015 Dr. BERTRAND Joël
   
   This file is part of RPL/2.    This file is part of RPL/2.
   
Line 20 Line 20
 */  */
   
   
 #include "rpl.conv.h"  #include "rpl-conv.h"
   
   
 /*  /*
Line 190  instruction_lsq(struct_processus *s_etat Line 190  instruction_lsq(struct_processus *s_etat
     struct_matrice              s_matrice_tampon_b;      struct_matrice              s_matrice_tampon_b;
     struct_matrice              s_matrice_tampon_x;      struct_matrice              s_matrice_tampon_x;
   
     unsigned long               i;      integer8                    i;
   
     (*s_etat_processus).erreur_execution = d_ex;      (*s_etat_processus).erreur_execution = d_ex;
   
Line 288  instruction_lsq(struct_processus *s_etat Line 288  instruction_lsq(struct_processus *s_etat
                     (*s_objet_argument_2).objet)).taille;                      (*s_objet_argument_2).objet)).taille;
             s_matrice_tampon_b.nombre_colonnes = 1;              s_matrice_tampon_b.nombre_colonnes = 1;
   
             if ((s_matrice_tampon_b.tableau = malloc(s_matrice_tampon_b              if ((s_matrice_tampon_b.tableau = malloc(((size_t)
                     .nombre_lignes * sizeof(integer8 *))) == NULL)                      s_matrice_tampon_b.nombre_lignes) *
                       sizeof(integer8 *))) == NULL)
             {              {
                 (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;                  (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;
                 return;                  return;
Line 317  instruction_lsq(struct_processus *s_etat Line 318  instruction_lsq(struct_processus *s_etat
                     (*s_objet_argument_2).objet)).taille;                      (*s_objet_argument_2).objet)).taille;
             s_matrice_tampon_b.nombre_colonnes = 1;              s_matrice_tampon_b.nombre_colonnes = 1;
   
             if ((s_matrice_tampon_b.tableau = malloc(s_matrice_tampon_b              if ((s_matrice_tampon_b.tableau = malloc(((size_t)
                     .nombre_lignes * sizeof(real8 *))) == NULL)                      s_matrice_tampon_b.nombre_lignes) * sizeof(real8 *)))
                       == NULL)
             {              {
                 (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;                  (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;
                 return;                  return;
Line 384  instruction_lsq(struct_processus *s_etat Line 386  instruction_lsq(struct_processus *s_etat
                 s_matrice_tampon_x.nombre_lignes;                  s_matrice_tampon_x.nombre_lignes;
   
         if (((*((struct_vecteur *) (*s_objet_resultat).objet)).tableau =          if (((*((struct_vecteur *) (*s_objet_resultat).objet)).tableau =
                 malloc((*((struct_vecteur *) (*s_objet_resultat).objet)).taille                  malloc(((size_t) (*((struct_vecteur *) (*s_objet_resultat)
                 * sizeof(real8))) == NULL)                  .objet)).taille) * sizeof(real8))) == NULL)
         {          {
             (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;              (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;
             return;              return;
Line 433  instruction_lsq(struct_processus *s_etat Line 435  instruction_lsq(struct_processus *s_etat
                     (*s_objet_argument_2).objet)).taille;                      (*s_objet_argument_2).objet)).taille;
             s_matrice_tampon_b.nombre_colonnes = 1;              s_matrice_tampon_b.nombre_colonnes = 1;
   
             if ((s_matrice_tampon_b.tableau = malloc(s_matrice_tampon_b              if ((s_matrice_tampon_b.tableau = malloc(((size_t)
                     .nombre_lignes * sizeof(integer8 *))) == NULL)                      s_matrice_tampon_b.nombre_lignes) * sizeof(integer8 *)))
                       == NULL)
             {              {
                 (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;                  (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;
                 return;                  return;
Line 462  instruction_lsq(struct_processus *s_etat Line 465  instruction_lsq(struct_processus *s_etat
                     (*s_objet_argument_2).objet)).taille;                      (*s_objet_argument_2).objet)).taille;
             s_matrice_tampon_b.nombre_colonnes = 1;              s_matrice_tampon_b.nombre_colonnes = 1;
   
             if ((s_matrice_tampon_b.tableau = malloc(s_matrice_tampon_b              if ((s_matrice_tampon_b.tableau = malloc(((size_t)
                     .nombre_lignes * sizeof(real8 *))) == NULL)                      s_matrice_tampon_b.nombre_lignes) * sizeof(real8 *)))
                       == NULL)
             {              {
                 (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;                  (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;
                 return;                  return;
Line 491  instruction_lsq(struct_processus *s_etat Line 495  instruction_lsq(struct_processus *s_etat
                     (*s_objet_argument_2).objet)).taille;                      (*s_objet_argument_2).objet)).taille;
             s_matrice_tampon_b.nombre_colonnes = 1;              s_matrice_tampon_b.nombre_colonnes = 1;
   
             if ((s_matrice_tampon_b.tableau = malloc(s_matrice_tampon_b              if ((s_matrice_tampon_b.tableau = malloc(((size_t)
                     .nombre_lignes * sizeof(struct_complexe16 *))) == NULL)                      s_matrice_tampon_b.nombre_lignes) *
                       sizeof(struct_complexe16 *))) == NULL)
             {              {
                 (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;                  (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;
                 return;                  return;
Line 570  instruction_lsq(struct_processus *s_etat Line 575  instruction_lsq(struct_processus *s_etat
                 s_matrice_tampon_x.nombre_lignes;                  s_matrice_tampon_x.nombre_lignes;
   
         if (((*((struct_vecteur *) (*s_objet_resultat).objet)).tableau =          if (((*((struct_vecteur *) (*s_objet_resultat).objet)).tableau =
                 malloc((*((struct_vecteur *) (*s_objet_resultat).objet)).taille                  malloc(((size_t) (*((struct_vecteur *) (*s_objet_resultat)
                 * sizeof(struct_complexe16))) == NULL)                  .objet)).taille) * sizeof(struct_complexe16))) == NULL)
         {          {
             (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;              (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;
             return;              return;
Line 821  instruction_logscale(struct_processus *s Line 826  instruction_logscale(struct_processus *s
   
     if ((*s_objet).type == NOM)      if ((*s_objet).type == NOM)
     {      {
         tampon = conversion_majuscule((*((struct_nom *) (*s_objet).objet)).nom);          tampon = conversion_majuscule(s_etat_processus,
                   (*((struct_nom *) (*s_objet).objet)).nom);
   
         if (tampon == NULL)          if (tampon == NULL)
         {          {
Line 902  instruction_logscale(struct_processus *s Line 908  instruction_logscale(struct_processus *s
                     return;                      return;
                 }                  }
   
                 tampon = conversion_majuscule((*((struct_nom *)                  tampon = conversion_majuscule(s_etat_processus,
                         (*(*l_element_courant).donnee).objet)).nom);                          (*((struct_nom *) (*(*l_element_courant).donnee)
                           .objet)).nom);
   
                 if ((strcmp(tampon, "X") != 0) && (strcmp(tampon, "Y") != 0) &&                  if ((strcmp(tampon, "X") != 0) && (strcmp(tampon, "Y") != 0) &&
                         (strcmp(tampon, "Z") != 0))                          (strcmp(tampon, "Z") != 0))

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


CVSweb interface <joel.bertrand@systella.fr>