Diff for /rpl/src/instructions_f3.c between versions 1.1 and 1.16

version 1.1, 2010/01/26 15:22:44 version 1.16, 2010/08/06 15:26:47
Line 1 Line 1
 /*  /*
 ================================================================================  ================================================================================
   RPL/2 (R) version 4.0.9    RPL/2 (R) version 4.0.18
   Copyright (C) 1989-2010 Dr. BERTRAND Joël    Copyright (C) 1989-2010 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 551  instruction_fleche_q(struct_processus *s Line 551  instruction_fleche_q(struct_processus *s
             }              }
         } while(z > epsilon);          } while(z > epsilon);
   
         if ((s_objet_argument_1 = allocation(s_etat_processus, REL)) == NULL)          if (r2 != ((real8) ((integer8) r2)))
         {          {
             (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;              if ((s_objet_argument_1 = allocation(s_etat_processus, REL))
             return;                      == NULL)
               {
                   (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;
                   return;
               }
   
               (*((real8 *) (*s_objet_argument_1).objet)) = r2;
         }          }
           else
           {
               if ((s_objet_argument_1 = allocation(s_etat_processus, INT))
                       == NULL)
               {
                   (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;
                   return;
               }
   
         (*((real8 *) (*s_objet_argument_1).objet)) = r2;              (*((integer8 *) (*s_objet_argument_1).objet)) = (integer8) r2;
           }
   
         if ((s_objet_argument_2 = allocation(s_etat_processus, REL)) == NULL)          if (r1 != ((real8) ((integer8) r1)))
         {          {
             (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;              if ((s_objet_argument_2 = allocation(s_etat_processus, REL))
             return;                      == NULL)
               {
                   (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;
                   return;
               }
   
               (*((real8 *) (*s_objet_argument_2).objet)) = r1;
         }          }
           else
           {
               if ((s_objet_argument_2 = allocation(s_etat_processus, INT))
                       == NULL)
               {
                   (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;
                   return;
               }
   
         (*((real8 *) (*s_objet_argument_2).objet)) = r1;              (*((integer8 *) (*s_objet_argument_2).objet)) = (integer8) r1;
           }
   
         if ((s_objet_resultat = allocation(s_etat_processus, ALG)) == NULL)          if ((s_objet_resultat = allocation(s_etat_processus, ALG)) == NULL)
         {          {
Line 1758  instruction_fuse(struct_processus *s_eta Line 1788  instruction_fuse(struct_processus *s_eta
         return;          return;
     }      }
   
   #   ifndef OS2
     if (pthread_attr_setschedpolicy(&attributs, SCHED_OTHER) != 0)      if (pthread_attr_setschedpolicy(&attributs, SCHED_OTHER) != 0)
     {      {
         (*s_etat_processus).erreur_systeme = d_es_processus;          (*s_etat_processus).erreur_systeme = d_es_processus;
Line 1776  instruction_fuse(struct_processus *s_eta Line 1807  instruction_fuse(struct_processus *s_eta
         (*s_etat_processus).erreur_systeme = d_es_processus;          (*s_etat_processus).erreur_systeme = d_es_processus;
         return;          return;
     }      }
   #   endif
   
     if (pthread_create(&(*s_etat_processus).thread_fusible, &attributs,       if (pthread_create(&(*s_etat_processus).thread_fusible, &attributs, 
             fusible, s_etat_processus) != 0)              fusible, s_etat_processus) != 0)
Line 1783  instruction_fuse(struct_processus *s_eta Line 1815  instruction_fuse(struct_processus *s_eta
         (*s_etat_processus).erreur_systeme = d_es_processus;          (*s_etat_processus).erreur_systeme = d_es_processus;
         return;          return;
     }      }
       
     if (pthread_attr_destroy(&attributs) != 0)      if (pthread_attr_destroy(&attributs) != 0)
     {      {
         (*s_etat_processus).erreur_systeme = d_es_processus;          (*s_etat_processus).erreur_systeme = d_es_processus;

Removed from v.1.1  
changed lines
  Added in v.1.16


CVSweb interface <joel.bertrand@systella.fr>