Diff for /rpl/src/instructions_r2.c between versions 1.43 and 1.57

version 1.43, 2012/12/13 16:59:42 version 1.57, 2015/01/05 13:12:38
Line 1 Line 1
 /*  /*
 ================================================================================  ================================================================================
   RPL/2 (R) version 4.1.11    RPL/2 (R) version 4.1.19
   Copyright (C) 1989-2012 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 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 886  instruction_rdm(struct_processus *s_etat Line 886  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 984  instruction_rdm(struct_processus *s_etat Line 984  instruction_rdm(struct_processus *s_etat
                     (*(*s_etat_processus).pointeur_variable_courante).nom,                      (*(*s_etat_processus).pointeur_variable_courante).nom,
                     (*(*s_etat_processus).pointeur_variable_courante)                      (*(*s_etat_processus).pointeur_variable_courante)
                     .variable_partagee, (*(*s_etat_processus)                      .variable_partagee, (*(*s_etat_processus)
                     .pointeur_variable_courante).origine)                      .pointeur_variable_courante).origine) == NULL)
                     == d_faux)  
             {              {
                 (*s_etat_processus).erreur_systeme = d_es;                  (*s_etat_processus).erreur_systeme = d_es;
                 (*s_etat_processus).erreur_execution =                  (*s_etat_processus).erreur_execution =
Line 1176  instruction_rdm(struct_processus *s_etat Line 1175  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 1234  instruction_rdm(struct_processus *s_etat Line 1234  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 1293  instruction_rdm(struct_processus *s_etat Line 1293  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 1362  instruction_rdm(struct_processus *s_etat Line 1362  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 1433  instruction_rdm(struct_processus *s_etat Line 1434  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 1505  instruction_rdm(struct_processus *s_etat Line 1506  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 1622  instruction_rdm(struct_processus *s_etat Line 1623  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 1643  instruction_rdm(struct_processus *s_etat Line 1644  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 1708  instruction_rdm(struct_processus *s_etat Line 1710  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 1729  instruction_rdm(struct_processus *s_etat Line 1731  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 1794  instruction_rdm(struct_processus *s_etat Line 1797  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 1815  instruction_rdm(struct_processus *s_etat Line 1818  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 1892  instruction_rdm(struct_processus *s_etat Line 1895  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 1915  instruction_rdm(struct_processus *s_etat Line 1918  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 1992  instruction_rdm(struct_processus *s_etat Line 1995  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 2015  instruction_rdm(struct_processus *s_etat Line 2018  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 2092  instruction_rdm(struct_processus *s_etat Line 2095  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 2115  instruction_rdm(struct_processus *s_etat Line 2118  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.43  
changed lines
  Added in v.1.57


CVSweb interface <joel.bertrand@systella.fr>