version 1.3, 2010/02/10 10:14:24
|
version 1.73, 2025/04/15 10:17:55
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.0.11 |
RPL/2 (R) version 4.1.36 |
Copyright (C) 1989-2010 Dr. BERTRAND Joël |
Copyright (C) 1989-2025 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 185 instruction_slicescale(struct_processus
|
Line 185 instruction_slicescale(struct_processus
|
{ |
{ |
if ((*(*l_element_courant).donnee).type == CHN) |
if ((*(*l_element_courant).donnee).type == CHN) |
{ |
{ |
if ((tampon = conversion_majuscule((unsigned char *) |
if ((tampon = conversion_majuscule(s_etat_processus, |
(*(*l_element_courant).donnee).objet)) == NULL) |
(unsigned char *) (*(*l_element_courant).donnee).objet)) |
|
== NULL) |
{ |
{ |
(*s_etat_processus).erreur_systeme = |
(*s_etat_processus).erreur_systeme = |
d_es_allocation_memoire; |
d_es_allocation_memoire; |
Line 458 instruction_slicescale(struct_processus
|
Line 459 instruction_slicescale(struct_processus
|
void |
void |
instruction_sx(struct_processus *s_etat_processus) |
instruction_sx(struct_processus *s_etat_processus) |
{ |
{ |
logical1 presence_variable; |
|
|
|
long i; |
|
|
|
struct_objet *s_objet_statistique; |
struct_objet *s_objet_statistique; |
struct_objet *s_objet_resultat; |
struct_objet *s_objet_resultat; |
|
|
struct_vecteur *resultat; |
struct_vecteur *resultat; |
|
|
unsigned long nombre_colonnes; |
integer8 nombre_colonnes; |
|
|
(*s_etat_processus).erreur_execution = d_ex; |
(*s_etat_processus).erreur_execution = d_ex; |
|
|
Line 506 instruction_sx(struct_processus *s_etat_
|
Line 503 instruction_sx(struct_processus *s_etat_
|
* Recherche d'une variable globale référencée par SIGMA |
* Recherche d'une variable globale référencée par SIGMA |
*/ |
*/ |
|
|
if (recherche_variable(s_etat_processus, ds_sdat) == d_faux) |
if (recherche_variable_globale(s_etat_processus, ds_sdat) == d_faux) |
{ |
{ |
/* |
/* |
* Aucune variable SIGMA |
* Aucune variable SIGMA |
*/ |
*/ |
|
|
(*s_etat_processus).erreur_systeme = d_es; |
(*s_etat_processus).erreur_systeme = d_es; |
(*s_etat_processus).erreur_execution = d_ex_absence_observations; |
|
return; |
|
} |
|
else |
|
{ |
|
/* |
|
* Il existe une variable locale SIGMA. Reste à vérifier l'existence |
|
* d'une variable SIGMA globale... |
|
*/ |
|
|
|
i = (*s_etat_processus).position_variable_courante; |
if ((*s_etat_processus).erreur_execution == d_ex) |
presence_variable = d_faux; |
|
|
|
while(i >= 0) |
|
{ |
{ |
if ((strcmp((*s_etat_processus).s_liste_variables[i].nom, |
(*s_etat_processus).erreur_execution = d_ex_absence_observations; |
ds_sdat) == 0) && ((*s_etat_processus) |
|
.s_liste_variables[i].niveau == 1)) |
|
{ |
|
presence_variable = d_vrai; |
|
break; |
|
} |
|
|
|
i--; |
|
} |
} |
|
|
if (presence_variable == d_faux) |
return; |
|
} |
|
else |
|
{ |
|
if (((*(*(*s_etat_processus).pointeur_variable_courante).objet) |
|
.type != MIN) && ((*(*(*s_etat_processus) |
|
.pointeur_variable_courante).objet).type != MRL)) |
{ |
{ |
(*s_etat_processus).erreur_execution = d_ex_absence_observations; |
(*s_etat_processus).erreur_execution = |
|
d_ex_matrice_statistique_invalide; |
return; |
return; |
} |
} |
else |
|
{ |
|
(*s_etat_processus).position_variable_courante = i; |
|
|
|
if ((*s_etat_processus).s_liste_variables[i].objet == NULL) |
|
{ |
|
(*s_etat_processus).erreur_execution = d_ex_variable_partagee; |
|
return; |
|
} |
|
|
|
if (((*((*s_etat_processus).s_liste_variables |
|
[(*s_etat_processus).position_variable_courante].objet)) |
|
.type != MIN) && ((*((*s_etat_processus) |
|
.s_liste_variables[(*s_etat_processus) |
|
.position_variable_courante].objet)).type != MRL)) |
|
{ |
|
(*s_etat_processus).erreur_execution = |
|
d_ex_matrice_statistique_invalide; |
|
return; |
|
} |
|
|
|
nombre_colonnes = (*((struct_matrice *) (*((*s_etat_processus) |
nombre_colonnes = (*((struct_matrice *) (*(*(*s_etat_processus) |
.s_liste_variables[(*s_etat_processus) |
.pointeur_variable_courante).objet).objet)) |
.position_variable_courante].objet)).objet)) |
.nombre_colonnes; |
.nombre_colonnes; |
|
} |
|
} |
} |
|
|
if (((*s_etat_processus).colonne_statistique_1 < 1) || |
if (((*s_etat_processus).colonne_statistique_1 < 1) || |
Line 580 instruction_sx(struct_processus *s_etat_
|
Line 542 instruction_sx(struct_processus *s_etat_
|
return; |
return; |
} |
} |
|
|
s_objet_statistique = ((*s_etat_processus).s_liste_variables |
s_objet_statistique = (*(*s_etat_processus).pointeur_variable_courante) |
[(*s_etat_processus).position_variable_courante]).objet; |
.objet; |
|
|
if (((*s_objet_statistique).type == MIN) || |
if (((*s_objet_statistique).type == MIN) || |
((*s_objet_statistique).type == MRL)) |
((*s_objet_statistique).type == MRL)) |
Line 592 instruction_sx(struct_processus *s_etat_
|
Line 554 instruction_sx(struct_processus *s_etat_
|
return; |
return; |
} |
} |
|
|
if ((resultat = sommation_colonne_statistique( |
if ((resultat = sommation_colonne_statistique(s_etat_processus, |
(struct_matrice *) (*s_objet_statistique).objet, |
(struct_matrice *) (*s_objet_statistique).objet, |
(*s_etat_processus).colonne_statistique_1)) == NULL) |
(*s_etat_processus).colonne_statistique_1)) == NULL) |
{ |
{ |
Line 662 instruction_sx(struct_processus *s_etat_
|
Line 624 instruction_sx(struct_processus *s_etat_
|
void |
void |
instruction_sy(struct_processus *s_etat_processus) |
instruction_sy(struct_processus *s_etat_processus) |
{ |
{ |
logical1 presence_variable; |
|
|
|
long i; |
|
|
|
struct_objet *s_objet_statistique; |
struct_objet *s_objet_statistique; |
struct_objet *s_objet_resultat; |
struct_objet *s_objet_resultat; |
|
|
struct_vecteur *resultat; |
struct_vecteur *resultat; |
|
|
unsigned long nombre_colonnes; |
integer8 nombre_colonnes; |
|
|
(*s_etat_processus).erreur_execution = d_ex; |
(*s_etat_processus).erreur_execution = d_ex; |
|
|
Line 710 instruction_sy(struct_processus *s_etat_
|
Line 668 instruction_sy(struct_processus *s_etat_
|
* Recherche d'une variable globale référencée par SIGMA |
* Recherche d'une variable globale référencée par SIGMA |
*/ |
*/ |
|
|
if (recherche_variable(s_etat_processus, ds_sdat) == d_faux) |
if (recherche_variable_globale(s_etat_processus, ds_sdat) == d_faux) |
{ |
{ |
/* |
/* |
* Aucune variable SIGMA |
* Aucune variable SIGMA |
*/ |
*/ |
|
|
(*s_etat_processus).erreur_systeme = d_es; |
(*s_etat_processus).erreur_systeme = d_es; |
(*s_etat_processus).erreur_execution = d_ex_absence_observations; |
|
return; |
|
} |
|
else |
|
{ |
|
/* |
|
* Il existe une variable locale SIGMA. Reste à vérifier l'existence |
|
* d'une variable SIGMA globale... |
|
*/ |
|
|
|
i = (*s_etat_processus).position_variable_courante; |
if ((*s_etat_processus).erreur_execution == d_ex) |
presence_variable = d_faux; |
|
|
|
while(i >= 0) |
|
{ |
{ |
if ((strcmp((*s_etat_processus).s_liste_variables[i].nom, |
(*s_etat_processus).erreur_execution = d_ex_absence_observations; |
ds_sdat) == 0) && ((*s_etat_processus) |
|
.s_liste_variables[i].niveau == 1)) |
|
{ |
|
presence_variable = d_vrai; |
|
break; |
|
} |
|
|
|
i--; |
|
} |
} |
|
|
if (presence_variable == d_faux) |
return; |
|
} |
|
else |
|
{ |
|
if (((*(*(*s_etat_processus).pointeur_variable_courante).objet) |
|
.type != MIN) && ((*(*(*s_etat_processus) |
|
.pointeur_variable_courante).objet).type != MRL)) |
{ |
{ |
(*s_etat_processus).erreur_execution = d_ex_absence_observations; |
(*s_etat_processus).erreur_execution = |
|
d_ex_matrice_statistique_invalide; |
return; |
return; |
} |
} |
else |
|
{ |
|
(*s_etat_processus).position_variable_courante = i; |
|
|
|
if ((*s_etat_processus).s_liste_variables[i].objet == NULL) |
|
{ |
|
(*s_etat_processus).erreur_execution = d_ex_variable_partagee; |
|
return; |
|
} |
|
|
|
if (((*((*s_etat_processus).s_liste_variables |
|
[(*s_etat_processus).position_variable_courante].objet)) |
|
.type != MIN) && ((*((*s_etat_processus) |
|
.s_liste_variables[(*s_etat_processus) |
|
.position_variable_courante].objet)).type != MRL)) |
|
{ |
|
(*s_etat_processus).erreur_execution = |
|
d_ex_matrice_statistique_invalide; |
|
return; |
|
} |
|
|
|
nombre_colonnes = (*((struct_matrice *) (*((*s_etat_processus) |
nombre_colonnes = (*((struct_matrice *) (*(*(*s_etat_processus) |
.s_liste_variables[(*s_etat_processus) |
.pointeur_variable_courante).objet).objet)) |
.position_variable_courante].objet)).objet)) |
.nombre_colonnes; |
.nombre_colonnes; |
|
} |
|
} |
} |
|
|
if (((*s_etat_processus).colonne_statistique_2 < 1) || |
if (((*s_etat_processus).colonne_statistique_2 < 1) || |
Line 784 instruction_sy(struct_processus *s_etat_
|
Line 707 instruction_sy(struct_processus *s_etat_
|
return; |
return; |
} |
} |
|
|
s_objet_statistique = ((*s_etat_processus).s_liste_variables |
s_objet_statistique = (*(*s_etat_processus).pointeur_variable_courante) |
[(*s_etat_processus).position_variable_courante]).objet; |
.objet; |
|
|
if (((*s_objet_statistique).type == MIN) || |
if (((*s_objet_statistique).type == MIN) || |
((*s_objet_statistique).type == MRL)) |
((*s_objet_statistique).type == MRL)) |
Line 796 instruction_sy(struct_processus *s_etat_
|
Line 719 instruction_sy(struct_processus *s_etat_
|
return; |
return; |
} |
} |
|
|
if ((resultat = sommation_colonne_statistique( |
if ((resultat = sommation_colonne_statistique(s_etat_processus, |
(struct_matrice *) (*s_objet_statistique).objet, |
(struct_matrice *) (*s_objet_statistique).objet, |
(*s_etat_processus).colonne_statistique_2)) == NULL) |
(*s_etat_processus).colonne_statistique_2)) == NULL) |
{ |
{ |
Line 866 instruction_sy(struct_processus *s_etat_
|
Line 789 instruction_sy(struct_processus *s_etat_
|
void |
void |
instruction_sxy(struct_processus *s_etat_processus) |
instruction_sxy(struct_processus *s_etat_processus) |
{ |
{ |
logical1 presence_variable; |
|
|
|
long i; |
|
|
|
struct_objet *s_objet_statistique; |
struct_objet *s_objet_statistique; |
struct_objet *s_objet_resultat; |
struct_objet *s_objet_resultat; |
|
|
struct_vecteur *resultat; |
struct_vecteur *resultat; |
|
|
unsigned long nombre_colonnes; |
integer8 nombre_colonnes; |
|
|
(*s_etat_processus).erreur_execution = d_ex; |
(*s_etat_processus).erreur_execution = d_ex; |
|
|
Line 914 instruction_sxy(struct_processus *s_etat
|
Line 833 instruction_sxy(struct_processus *s_etat
|
* Recherche d'une variable globale référencée par SIGMA |
* Recherche d'une variable globale référencée par SIGMA |
*/ |
*/ |
|
|
if (recherche_variable(s_etat_processus, ds_sdat) == d_faux) |
if (recherche_variable_globale(s_etat_processus, ds_sdat) == d_faux) |
{ |
{ |
/* |
/* |
* Aucune variable SIGMA |
* Aucune variable SIGMA |
*/ |
*/ |
|
|
(*s_etat_processus).erreur_systeme = d_es; |
(*s_etat_processus).erreur_systeme = d_es; |
(*s_etat_processus).erreur_execution = d_ex_absence_observations; |
|
return; |
|
} |
|
else |
|
{ |
|
/* |
|
* Il existe une variable locale SIGMA. Reste à vérifier l'existence |
|
* d'une variable SIGMA globale... |
|
*/ |
|
|
|
i = (*s_etat_processus).position_variable_courante; |
|
presence_variable = d_faux; |
|
|
|
while(i >= 0) |
if ((*s_etat_processus).erreur_execution == d_ex) |
{ |
{ |
if ((strcmp((*s_etat_processus).s_liste_variables[i].nom, |
(*s_etat_processus).erreur_execution = d_ex_absence_observations; |
ds_sdat) == 0) && ((*s_etat_processus) |
|
.s_liste_variables[i].niveau == 1)) |
|
{ |
|
presence_variable = d_vrai; |
|
break; |
|
} |
|
|
|
i--; |
|
} |
} |
|
|
if (presence_variable == d_faux) |
return; |
|
} |
|
else |
|
{ |
|
if (((*(*(*s_etat_processus).pointeur_variable_courante).objet) |
|
.type != MIN) && ((*(*(*s_etat_processus) |
|
.pointeur_variable_courante).objet).type != MRL)) |
{ |
{ |
(*s_etat_processus).erreur_execution = d_ex_absence_observations; |
(*s_etat_processus).erreur_execution = |
|
d_ex_matrice_statistique_invalide; |
return; |
return; |
} |
} |
else |
|
{ |
|
(*s_etat_processus).position_variable_courante = i; |
|
|
|
if ((*s_etat_processus).s_liste_variables[i].objet == NULL) |
|
{ |
|
(*s_etat_processus).erreur_execution = d_ex_variable_partagee; |
|
return; |
|
} |
|
|
|
if (((*((*s_etat_processus).s_liste_variables |
nombre_colonnes = (*((struct_matrice *) (*(*(*s_etat_processus) |
[(*s_etat_processus).position_variable_courante].objet)) |
.pointeur_variable_courante).objet).objet)) |
.type != MIN) && ((*((*s_etat_processus) |
.nombre_colonnes; |
.s_liste_variables[(*s_etat_processus) |
|
.position_variable_courante].objet)).type != MRL)) |
|
{ |
|
(*s_etat_processus).erreur_execution = |
|
d_ex_matrice_statistique_invalide; |
|
return; |
|
} |
|
|
|
nombre_colonnes = (*((struct_matrice *) (*((*s_etat_processus) |
|
.s_liste_variables[(*s_etat_processus) |
|
.position_variable_courante].objet)).objet)) |
|
.nombre_colonnes; |
|
} |
|
} |
} |
|
|
if (((*s_etat_processus).colonne_statistique_1 < 1) || |
if (((*s_etat_processus).colonne_statistique_1 < 1) || |
Line 990 instruction_sxy(struct_processus *s_etat
|
Line 874 instruction_sxy(struct_processus *s_etat
|
return; |
return; |
} |
} |
|
|
s_objet_statistique = ((*s_etat_processus).s_liste_variables |
s_objet_statistique = (*(*s_etat_processus).pointeur_variable_courante) |
[(*s_etat_processus).position_variable_courante]).objet; |
.objet; |
|
|
if (((*s_objet_statistique).type == MIN) || |
if (((*s_objet_statistique).type == MIN) || |
((*s_objet_statistique).type == MRL)) |
((*s_objet_statistique).type == MRL)) |
Line 1003 instruction_sxy(struct_processus *s_etat
|
Line 887 instruction_sxy(struct_processus *s_etat
|
} |
} |
|
|
if ((resultat = sommation_produits_colonnes_statistiques( |
if ((resultat = sommation_produits_colonnes_statistiques( |
|
s_etat_processus, |
(struct_matrice *) (*s_objet_statistique).objet, |
(struct_matrice *) (*s_objet_statistique).objet, |
(*s_etat_processus).colonne_statistique_1, |
(*s_etat_processus).colonne_statistique_1, |
(*s_etat_processus).colonne_statistique_2)) == NULL) |
(*s_etat_processus).colonne_statistique_2)) == NULL) |
Line 1073 instruction_sxy(struct_processus *s_etat
|
Line 958 instruction_sxy(struct_processus *s_etat
|
void |
void |
instruction_sx2(struct_processus *s_etat_processus) |
instruction_sx2(struct_processus *s_etat_processus) |
{ |
{ |
logical1 presence_variable; |
|
|
|
long i; |
|
|
|
struct_objet *s_objet_statistique; |
struct_objet *s_objet_statistique; |
struct_objet *s_objet_resultat; |
struct_objet *s_objet_resultat; |
|
|
struct_vecteur *resultat; |
struct_vecteur *resultat; |
|
|
unsigned long nombre_colonnes; |
integer8 nombre_colonnes; |
|
|
(*s_etat_processus).erreur_execution = d_ex; |
(*s_etat_processus).erreur_execution = d_ex; |
|
|
Line 1121 instruction_sx2(struct_processus *s_etat
|
Line 1002 instruction_sx2(struct_processus *s_etat
|
* Recherche d'une variable globale référencée par SIGMA |
* Recherche d'une variable globale référencée par SIGMA |
*/ |
*/ |
|
|
if (recherche_variable(s_etat_processus, ds_sdat) == d_faux) |
if (recherche_variable_globale(s_etat_processus, ds_sdat) == d_faux) |
{ |
{ |
/* |
/* |
* Aucune variable SIGMA |
* Aucune variable SIGMA |
*/ |
*/ |
|
|
(*s_etat_processus).erreur_systeme = d_es; |
(*s_etat_processus).erreur_systeme = d_es; |
(*s_etat_processus).erreur_execution = d_ex_absence_observations; |
|
return; |
|
} |
|
else |
|
{ |
|
/* |
|
* Il existe une variable locale SIGMA. Reste à vérifier l'existence |
|
* d'une variable SIGMA globale... |
|
*/ |
|
|
|
i = (*s_etat_processus).position_variable_courante; |
|
presence_variable = d_faux; |
|
|
|
while(i >= 0) |
if ((*s_etat_processus).erreur_execution == d_ex) |
{ |
{ |
if ((strcmp((*s_etat_processus).s_liste_variables[i].nom, |
(*s_etat_processus).erreur_execution = d_ex_absence_observations; |
ds_sdat) == 0) && ((*s_etat_processus) |
|
.s_liste_variables[i].niveau == 1)) |
|
{ |
|
presence_variable = d_vrai; |
|
break; |
|
} |
|
|
|
i--; |
|
} |
} |
|
|
if (presence_variable == d_faux) |
return; |
|
} |
|
else |
|
{ |
|
if (((*(*(*s_etat_processus).pointeur_variable_courante).objet) |
|
.type != MIN) && ((*(*(*s_etat_processus) |
|
.pointeur_variable_courante).objet).type != MRL)) |
{ |
{ |
(*s_etat_processus).erreur_execution = d_ex_absence_observations; |
(*s_etat_processus).erreur_execution = |
|
d_ex_matrice_statistique_invalide; |
return; |
return; |
} |
} |
else |
|
{ |
|
(*s_etat_processus).position_variable_courante = i; |
|
|
|
if ((*s_etat_processus).s_liste_variables[i].objet == NULL) |
|
{ |
|
(*s_etat_processus).erreur_execution = d_ex_variable_partagee; |
|
return; |
|
} |
|
|
|
if (((*((*s_etat_processus).s_liste_variables |
nombre_colonnes = (*((struct_matrice *) (*(*(*s_etat_processus) |
[(*s_etat_processus).position_variable_courante].objet)) |
.pointeur_variable_courante).objet).objet)) |
.type != MIN) && ((*((*s_etat_processus) |
.nombre_colonnes; |
.s_liste_variables[(*s_etat_processus) |
|
.position_variable_courante].objet)).type != MRL)) |
|
{ |
|
(*s_etat_processus).erreur_execution = |
|
d_ex_matrice_statistique_invalide; |
|
return; |
|
} |
|
|
|
nombre_colonnes = (*((struct_matrice *) (*((*s_etat_processus) |
|
.s_liste_variables[(*s_etat_processus) |
|
.position_variable_courante].objet)).objet)) |
|
.nombre_colonnes; |
|
} |
|
} |
} |
|
|
if (((*s_etat_processus).colonne_statistique_1 < 1) || |
if (((*s_etat_processus).colonne_statistique_1 < 1) || |
Line 1195 instruction_sx2(struct_processus *s_etat
|
Line 1041 instruction_sx2(struct_processus *s_etat
|
return; |
return; |
} |
} |
|
|
s_objet_statistique = ((*s_etat_processus).s_liste_variables |
s_objet_statistique = (*(*s_etat_processus).pointeur_variable_courante) |
[(*s_etat_processus).position_variable_courante]).objet; |
.objet; |
|
|
if (((*s_objet_statistique).type == MIN) || |
if (((*s_objet_statistique).type == MIN) || |
((*s_objet_statistique).type == MRL)) |
((*s_objet_statistique).type == MRL)) |
Line 1208 instruction_sx2(struct_processus *s_etat
|
Line 1054 instruction_sx2(struct_processus *s_etat
|
} |
} |
|
|
if ((resultat = sommation_produits_colonnes_statistiques( |
if ((resultat = sommation_produits_colonnes_statistiques( |
|
s_etat_processus, |
(struct_matrice *) (*s_objet_statistique).objet, |
(struct_matrice *) (*s_objet_statistique).objet, |
(*s_etat_processus).colonne_statistique_1, |
(*s_etat_processus).colonne_statistique_1, |
(*s_etat_processus).colonne_statistique_1)) == NULL) |
(*s_etat_processus).colonne_statistique_1)) == NULL) |
Line 1278 instruction_sx2(struct_processus *s_etat
|
Line 1125 instruction_sx2(struct_processus *s_etat
|
void |
void |
instruction_sy2(struct_processus *s_etat_processus) |
instruction_sy2(struct_processus *s_etat_processus) |
{ |
{ |
logical1 presence_variable; |
|
|
|
long i; |
|
|
|
struct_objet *s_objet_statistique; |
struct_objet *s_objet_statistique; |
struct_objet *s_objet_resultat; |
struct_objet *s_objet_resultat; |
|
|
struct_vecteur *resultat; |
struct_vecteur *resultat; |
|
|
unsigned long nombre_colonnes; |
integer8 nombre_colonnes; |
|
|
(*s_etat_processus).erreur_execution = d_ex; |
(*s_etat_processus).erreur_execution = d_ex; |
|
|
Line 1326 instruction_sy2(struct_processus *s_etat
|
Line 1169 instruction_sy2(struct_processus *s_etat
|
* Recherche d'une variable globale référencée par SIGMA |
* Recherche d'une variable globale référencée par SIGMA |
*/ |
*/ |
|
|
if (recherche_variable(s_etat_processus, ds_sdat) == d_faux) |
if (recherche_variable_globale(s_etat_processus, ds_sdat) == d_faux) |
{ |
{ |
/* |
/* |
* Aucune variable SIGMA |
* Aucune variable SIGMA |
*/ |
*/ |
|
|
(*s_etat_processus).erreur_systeme = d_es; |
(*s_etat_processus).erreur_systeme = d_es; |
(*s_etat_processus).erreur_execution = d_ex_absence_observations; |
|
return; |
|
} |
|
else |
|
{ |
|
/* |
|
* Il existe une variable locale SIGMA. Reste à vérifier l'existence |
|
* d'une variable SIGMA globale... |
|
*/ |
|
|
|
i = (*s_etat_processus).position_variable_courante; |
|
presence_variable = d_faux; |
|
|
|
while(i >= 0) |
if ((*s_etat_processus).erreur_execution == d_ex) |
{ |
{ |
if ((strcmp((*s_etat_processus).s_liste_variables[i].nom, |
(*s_etat_processus).erreur_execution = d_ex_absence_observations; |
ds_sdat) == 0) && ((*s_etat_processus) |
|
.s_liste_variables[i].niveau == 1)) |
|
{ |
|
presence_variable = d_vrai; |
|
break; |
|
} |
|
|
|
i--; |
|
} |
} |
|
|
if (presence_variable == d_faux) |
return; |
|
} |
|
else |
|
{ |
|
if (((*(*(*s_etat_processus).pointeur_variable_courante).objet) |
|
.type != MIN) && ((*(*(*s_etat_processus) |
|
.pointeur_variable_courante).objet).type != MRL)) |
{ |
{ |
(*s_etat_processus).erreur_execution = d_ex_absence_observations; |
(*s_etat_processus).erreur_execution = |
|
d_ex_matrice_statistique_invalide; |
return; |
return; |
} |
} |
else |
|
{ |
|
(*s_etat_processus).position_variable_courante = i; |
|
|
|
if ((*s_etat_processus).s_liste_variables[i].objet == NULL) |
nombre_colonnes = (*((struct_matrice *) (*(*(*s_etat_processus) |
{ |
.pointeur_variable_courante).objet).objet)) |
(*s_etat_processus).erreur_execution = d_ex_variable_partagee; |
.nombre_colonnes; |
return; |
|
} |
|
|
|
if (((*((*s_etat_processus).s_liste_variables |
|
[(*s_etat_processus).position_variable_courante].objet)) |
|
.type != MIN) && ((*((*s_etat_processus) |
|
.s_liste_variables[(*s_etat_processus) |
|
.position_variable_courante].objet)).type != MRL)) |
|
{ |
|
(*s_etat_processus).erreur_execution = |
|
d_ex_matrice_statistique_invalide; |
|
return; |
|
} |
|
|
|
nombre_colonnes = (*((struct_matrice *) (*((*s_etat_processus) |
|
.s_liste_variables[(*s_etat_processus) |
|
.position_variable_courante].objet)).objet)) |
|
.nombre_colonnes; |
|
} |
|
} |
} |
|
|
if (((*s_etat_processus).colonne_statistique_2 < 1) || |
if (((*s_etat_processus).colonne_statistique_2 < 1) || |
Line 1400 instruction_sy2(struct_processus *s_etat
|
Line 1208 instruction_sy2(struct_processus *s_etat
|
return; |
return; |
} |
} |
|
|
s_objet_statistique = ((*s_etat_processus).s_liste_variables |
s_objet_statistique = (*(*s_etat_processus).pointeur_variable_courante) |
[(*s_etat_processus).position_variable_courante]).objet; |
.objet; |
|
|
if (((*s_objet_statistique).type == MIN) || |
if (((*s_objet_statistique).type == MIN) || |
((*s_objet_statistique).type == MRL)) |
((*s_objet_statistique).type == MRL)) |
Line 1413 instruction_sy2(struct_processus *s_etat
|
Line 1221 instruction_sy2(struct_processus *s_etat
|
} |
} |
|
|
if ((resultat = sommation_produits_colonnes_statistiques( |
if ((resultat = sommation_produits_colonnes_statistiques( |
|
s_etat_processus, |
(struct_matrice *) (*s_objet_statistique).objet, |
(struct_matrice *) (*s_objet_statistique).objet, |
(*s_etat_processus).colonne_statistique_2, |
(*s_etat_processus).colonne_statistique_2, |
(*s_etat_processus).colonne_statistique_2)) == NULL) |
(*s_etat_processus).colonne_statistique_2)) == NULL) |