Diff for /rpl/src/instructions_r2.c between versions 1.48 and 1.78

version 1.48, 2013/02/27 17:11:43 version 1.78, 2023/11/27 11:18:15
Line 1 Line 1
 /*  /*
 ================================================================================  ================================================================================
   RPL/2 (R) version 4.1.13    RPL/2 (R) version 4.1.35
   Copyright (C) 1989-2013 Dr. BERTRAND Joël    Copyright (C) 1989-2023 Dr. BERTRAND Joël
   
   This file is part of RPL/2.    This file is part of RPL/2.
   
Line 350  instruction_return(struct_processus *s_e Line 350  instruction_return(struct_processus *s_e
     unsigned char                   *instruction_majuscule;      unsigned char                   *instruction_majuscule;
     unsigned char                   *tampon;      unsigned char                   *tampon;
   
     unsigned long                   registre_position_courante;      integer8                        registre_position_courante;
   
     struct_liste_chainee            *tampon_expression;      struct_liste_chainee            *tampon_expression;
   
Line 381  instruction_return(struct_processus *s_e Line 381  instruction_return(struct_processus *s_e
         return;          return;
     }      }
   
     if ((*s_etat_processus).niveau_courant == ((*s_etat_processus)  
             .niveau_initial + 1))  
     {  
         /*  
          * On ne peut rien dépiler !  
          */  
   
         if ((*s_etat_processus).mode_execution_programme == 'Y')  
         {  
             (*s_etat_processus).requete_arret = 'Y';  
         }  
   
         return;  
     }  
   
     tampon = (*s_etat_processus).instruction_courante;      tampon = (*s_etat_processus).instruction_courante;
     tampon_expression = (*s_etat_processus).expression_courante;      tampon_expression = (*s_etat_processus).expression_courante;
   
Line 416  instruction_return(struct_processus *s_e Line 401  instruction_return(struct_processus *s_e
                     (*s_etat_processus).instruction_courante) == d_faux)                      (*s_etat_processus).instruction_courante) == d_faux)
             {              {
                 (*s_etat_processus).erreur_systeme = d_es;                  (*s_etat_processus).erreur_systeme = d_es;
                 instruction_majuscule = conversion_majuscule(                  instruction_majuscule = conversion_majuscule(s_etat_processus,
                         (*s_etat_processus).instruction_courante);                          (*s_etat_processus).instruction_courante);
   
                 if (instruction_majuscule == NULL)                  if (instruction_majuscule == NULL)
Line 886  instruction_rdm(struct_processus *s_etat Line 871  instruction_rdm(struct_processus *s_etat
     logical1                        drapeau_fin_objet_originel;      logical1                        drapeau_fin_objet_originel;
     logical1                        variable_partagee;      logical1                        variable_partagee;
   
     unsigned long                   i;      integer8                        i;
     unsigned long                   j;      integer8                        j;
     unsigned long                   k;      integer8                        k;
     unsigned long                   l;      integer8                        l;
     unsigned long                   nombre_colonnes;      integer8                        nombre_colonnes;
     unsigned long                   nombre_dimensions;      integer8                        nombre_dimensions;
     unsigned long                   nombre_lignes;      integer8                        nombre_lignes;
   
     (*s_etat_processus).erreur_execution = d_ex;      (*s_etat_processus).erreur_execution = d_ex;
   
Line 1175  instruction_rdm(struct_processus *s_etat Line 1160  instruction_rdm(struct_processus *s_etat
                     nombre_lignes;                      nombre_lignes;
   
             if (((*((struct_vecteur *) (*s_objet_redimensionne).objet)).tableau              if (((*((struct_vecteur *) (*s_objet_redimensionne).objet)).tableau
                     = malloc(nombre_lignes * sizeof(integer8))) == NULL)                      = malloc(((size_t) nombre_lignes) * sizeof(integer8)))
                       == NULL)
             {              {
                 if (variable_partagee == d_vrai)                  if (variable_partagee == d_vrai)
                 {                  {
Line 1233  instruction_rdm(struct_processus *s_etat Line 1219  instruction_rdm(struct_processus *s_etat
                     nombre_lignes;                      nombre_lignes;
   
             if (((*((struct_vecteur *) (*s_objet_redimensionne).objet)).tableau              if (((*((struct_vecteur *) (*s_objet_redimensionne).objet)).tableau
                     = malloc(nombre_lignes * sizeof(real8))) == NULL)                      = malloc(((size_t) nombre_lignes) * sizeof(real8))) == NULL)
             {              {
                 if (variable_partagee == d_vrai)                  if (variable_partagee == d_vrai)
                 {                  {
Line 1292  instruction_rdm(struct_processus *s_etat Line 1278  instruction_rdm(struct_processus *s_etat
                     nombre_lignes;                      nombre_lignes;
   
             if (((*((struct_vecteur *) (*s_objet_redimensionne).objet)).tableau              if (((*((struct_vecteur *) (*s_objet_redimensionne).objet)).tableau
                     = malloc(nombre_lignes * sizeof(struct_complexe16)))                      = malloc(((size_t) nombre_lignes) *
                     == NULL)                      sizeof(struct_complexe16))) == NULL)
             {              {
                 if (variable_partagee == d_vrai)                  if (variable_partagee == d_vrai)
                 {                  {
Line 1361  instruction_rdm(struct_processus *s_etat Line 1347  instruction_rdm(struct_processus *s_etat
                     nombre_lignes;                      nombre_lignes;
   
             if (((*((struct_vecteur *) (*s_objet_redimensionne).objet)).tableau              if (((*((struct_vecteur *) (*s_objet_redimensionne).objet)).tableau
                     = malloc(nombre_lignes * sizeof(integer8))) == NULL)                      = malloc(((size_t) nombre_lignes) * sizeof(integer8)))
                       == NULL)
             {              {
                 if (variable_partagee == d_vrai)                  if (variable_partagee == d_vrai)
                 {                  {
Line 1432  instruction_rdm(struct_processus *s_etat Line 1419  instruction_rdm(struct_processus *s_etat
                     nombre_lignes;                      nombre_lignes;
   
             if (((*((struct_vecteur *) (*s_objet_redimensionne).objet)).tableau              if (((*((struct_vecteur *) (*s_objet_redimensionne).objet)).tableau
                     = malloc(nombre_lignes * sizeof(real8))) == NULL)                      = malloc(((size_t) nombre_lignes) * sizeof(real8))) == NULL)
             {              {
                 if (variable_partagee == d_vrai)                  if (variable_partagee == d_vrai)
                 {                  {
Line 1504  instruction_rdm(struct_processus *s_etat Line 1491  instruction_rdm(struct_processus *s_etat
                     nombre_lignes;                      nombre_lignes;
   
             if (((*((struct_vecteur *) (*s_objet_redimensionne).objet)).tableau              if (((*((struct_vecteur *) (*s_objet_redimensionne).objet)).tableau
                     = malloc(nombre_lignes * sizeof(struct_complexe16)))                      = malloc(((size_t) nombre_lignes) *
                     == NULL)                      sizeof(struct_complexe16))) == NULL)
             {              {
                 if (variable_partagee == d_vrai)                  if (variable_partagee == d_vrai)
                 {                  {
Line 1621  instruction_rdm(struct_processus *s_etat Line 1608  instruction_rdm(struct_processus *s_etat
                     .nombre_colonnes = nombre_colonnes;                      .nombre_colonnes = nombre_colonnes;
   
             if (((*((struct_matrice *) (*s_objet_redimensionne).objet)).tableau              if (((*((struct_matrice *) (*s_objet_redimensionne).objet)).tableau
                     = malloc(nombre_lignes * sizeof(integer8 *)))                      = malloc(((size_t) nombre_lignes) * sizeof(integer8 *)))
                     == NULL)                      == NULL)
             {              {
                 if (variable_partagee == d_vrai)                  if (variable_partagee == d_vrai)
Line 1642  instruction_rdm(struct_processus *s_etat Line 1629  instruction_rdm(struct_processus *s_etat
             {              {
                 if ((((integer8 **) (*((struct_matrice *)                  if ((((integer8 **) (*((struct_matrice *)
                         (*s_objet_redimensionne).objet)).tableau)[i] =                          (*s_objet_redimensionne).objet)).tableau)[i] =
                         malloc(nombre_colonnes * sizeof(integer8))) == NULL)                          malloc(((size_t) nombre_colonnes) * sizeof(integer8)))
                           == NULL)
                 {                  {
                     if (variable_partagee == d_vrai)                      if (variable_partagee == d_vrai)
                     {                      {
Line 1707  instruction_rdm(struct_processus *s_etat Line 1695  instruction_rdm(struct_processus *s_etat
                     .nombre_colonnes = nombre_colonnes;                      .nombre_colonnes = nombre_colonnes;
   
             if (((*((struct_matrice *) (*s_objet_redimensionne).objet)).tableau              if (((*((struct_matrice *) (*s_objet_redimensionne).objet)).tableau
                     = malloc(nombre_lignes * sizeof(real8 *)))                      = malloc(((size_t) nombre_lignes) * sizeof(real8 *)))
                     == NULL)                      == NULL)
             {              {
                 if (variable_partagee == d_vrai)                  if (variable_partagee == d_vrai)
Line 1728  instruction_rdm(struct_processus *s_etat Line 1716  instruction_rdm(struct_processus *s_etat
             {              {
                 if ((((real8 **) (*((struct_matrice *)                  if ((((real8 **) (*((struct_matrice *)
                         (*s_objet_redimensionne).objet)).tableau)[i] =                          (*s_objet_redimensionne).objet)).tableau)[i] =
                         malloc(nombre_colonnes * sizeof(real8))) == NULL)                          malloc(((size_t) nombre_colonnes) * sizeof(real8)))
                           == NULL)
                 {                  {
                     if (variable_partagee == d_vrai)                      if (variable_partagee == d_vrai)
                     {                      {
Line 1793  instruction_rdm(struct_processus *s_etat Line 1782  instruction_rdm(struct_processus *s_etat
                     .nombre_colonnes = nombre_colonnes;                      .nombre_colonnes = nombre_colonnes;
   
             if (((*((struct_matrice *) (*s_objet_redimensionne).objet)).tableau              if (((*((struct_matrice *) (*s_objet_redimensionne).objet)).tableau
                     = malloc(nombre_lignes * sizeof(struct_complexe16 *)))                      = malloc(((size_t) nombre_lignes) *
                     == NULL)                      sizeof(struct_complexe16 *))) == NULL)
             {              {
                 if (variable_partagee == d_vrai)                  if (variable_partagee == d_vrai)
                 {                  {
Line 1814  instruction_rdm(struct_processus *s_etat Line 1803  instruction_rdm(struct_processus *s_etat
             {              {
                 if ((((struct_complexe16 **) (*((struct_matrice *)                  if ((((struct_complexe16 **) (*((struct_matrice *)
                         (*s_objet_redimensionne).objet)).tableau)[i] =                          (*s_objet_redimensionne).objet)).tableau)[i] =
                         malloc(nombre_colonnes *                          malloc(((size_t) nombre_colonnes) *
                         sizeof(struct_complexe16))) == NULL)                          sizeof(struct_complexe16))) == NULL)
                 {                  {
                     if (variable_partagee == d_vrai)                      if (variable_partagee == d_vrai)
Line 1891  instruction_rdm(struct_processus *s_etat Line 1880  instruction_rdm(struct_processus *s_etat
                     .nombre_colonnes = nombre_colonnes;                      .nombre_colonnes = nombre_colonnes;
   
             if (((*((struct_matrice *) (*s_objet_redimensionne).objet)).tableau              if (((*((struct_matrice *) (*s_objet_redimensionne).objet)).tableau
                     = malloc(nombre_lignes * sizeof(integer8 *)))                      = malloc(((size_t) nombre_lignes) * sizeof(integer8 *)))
                     == NULL)                      == NULL)
             {              {
                 if (variable_partagee == d_vrai)                  if (variable_partagee == d_vrai)
Line 1914  instruction_rdm(struct_processus *s_etat Line 1903  instruction_rdm(struct_processus *s_etat
             {              {
                 if ((((integer8 **) (*((struct_matrice *)                  if ((((integer8 **) (*((struct_matrice *)
                         (*s_objet_redimensionne).objet)).tableau)[i] =                          (*s_objet_redimensionne).objet)).tableau)[i] =
                         malloc(nombre_colonnes *                          malloc(((size_t) nombre_colonnes) *
                         sizeof(integer8))) == NULL)                          sizeof(integer8))) == NULL)
                 {                  {
                     if (variable_partagee == d_vrai)                      if (variable_partagee == d_vrai)
Line 1991  instruction_rdm(struct_processus *s_etat Line 1980  instruction_rdm(struct_processus *s_etat
                     .nombre_colonnes = nombre_colonnes;                      .nombre_colonnes = nombre_colonnes;
   
             if (((*((struct_matrice *) (*s_objet_redimensionne).objet)).tableau              if (((*((struct_matrice *) (*s_objet_redimensionne).objet)).tableau
                     = malloc(nombre_lignes * sizeof(real8 *)))                      = malloc(((size_t) nombre_lignes) * sizeof(real8 *)))
                     == NULL)                      == NULL)
             {              {
                 if (variable_partagee == d_vrai)                  if (variable_partagee == d_vrai)
Line 2014  instruction_rdm(struct_processus *s_etat Line 2003  instruction_rdm(struct_processus *s_etat
             {              {
                 if ((((real8 **) (*((struct_matrice *)                  if ((((real8 **) (*((struct_matrice *)
                         (*s_objet_redimensionne).objet)).tableau)[i] =                          (*s_objet_redimensionne).objet)).tableau)[i] =
                         malloc(nombre_colonnes *                          malloc(((size_t) nombre_colonnes) *
                         sizeof(real8))) == NULL)                          sizeof(real8))) == NULL)
                 {                  {
                     if (variable_partagee == d_vrai)                      if (variable_partagee == d_vrai)
Line 2091  instruction_rdm(struct_processus *s_etat Line 2080  instruction_rdm(struct_processus *s_etat
                     .nombre_colonnes = nombre_colonnes;                      .nombre_colonnes = nombre_colonnes;
   
             if (((*((struct_matrice *) (*s_objet_redimensionne).objet)).tableau              if (((*((struct_matrice *) (*s_objet_redimensionne).objet)).tableau
                     = malloc(nombre_lignes * sizeof(struct_complexe16 *)))                      = malloc(((size_t) nombre_lignes)
                     == NULL)                      * sizeof(struct_complexe16 *))) == NULL)
             {              {
                 if (variable_partagee == d_vrai)                  if (variable_partagee == d_vrai)
                 {                  {
Line 2114  instruction_rdm(struct_processus *s_etat Line 2103  instruction_rdm(struct_processus *s_etat
             {              {
                 if ((((struct_complexe16 **) (*((struct_matrice *)                  if ((((struct_complexe16 **) (*((struct_matrice *)
                         (*s_objet_redimensionne).objet)).tableau)[i] =                          (*s_objet_redimensionne).objet)).tableau)[i] =
                         malloc(nombre_colonnes *                          malloc(((size_t) nombre_colonnes) *
                         sizeof(struct_complexe16))) == NULL)                          sizeof(struct_complexe16))) == NULL)
                 {                  {
                     if (variable_partagee == d_vrai)                      if (variable_partagee == d_vrai)

Removed from v.1.48  
changed lines
  Added in v.1.78


CVSweb interface <joel.bertrand@systella.fr>