version 1.5, 2010/03/09 10:18:47
|
version 1.64, 2019/02/03 14:40:44
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.0.13 |
RPL/2 (R) version 4.1.31 |
Copyright (C) 1989-2010 Dr. BERTRAND Joël |
Copyright (C) 1989-2019 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)) |