Diff for /rpl/src/instructions_w1.c between versions 1.55 and 1.63

version 1.55, 2011/12/05 17:45:01 version 1.63, 2012/06/21 16:07:25
Line 1 Line 1
 /*  /*
 ================================================================================  ================================================================================
   RPL/2 (R) version 4.1.5    RPL/2 (R) version 4.1.9
   Copyright (C) 1989-2011 Dr. BERTRAND Joël    Copyright (C) 1989-2012 Dr. BERTRAND Joël
   
   This file is part of RPL/2.    This file is part of RPL/2.
   
Line 428  instruction_write(struct_processus *s_et Line 428  instruction_write(struct_processus *s_et
     unsigned char                       *chaine_utf8;      unsigned char                       *chaine_utf8;
     unsigned char                       *clef_utf8;      unsigned char                       *clef_utf8;
     unsigned char                       *commande;      unsigned char                       *commande;
       unsigned char                       retour;
   
     unsigned long                       i;      unsigned long                       i;
   
Line 1328  instruction_write(struct_processus *s_et Line 1329  instruction_write(struct_processus *s_et
             {              {
                 BUG(((*descripteur).type != 'C'), uprintf("Bad filetype !\n"));                  BUG(((*descripteur).type != 'C'), uprintf("Bad filetype !\n"));
   
                   if ((*s_objet_argument_2).type != LST)
                   {
                       liberation(s_etat_processus, s_objet_argument_2);
                       liberation(s_etat_processus, s_objet_argument_1);
   
                       (*s_etat_processus).erreur_execution =
                               d_ex_erreur_type_argument;
                       return;
                   }
   
                   if ((*((struct_liste_chainee *) (*s_objet_argument_2).objet))
                           .donnee == NULL)
                   {
                       liberation(s_etat_processus, s_objet_argument_2);
                       liberation(s_etat_processus, s_objet_argument_1);
   
                       (*s_etat_processus).erreur_execution =
                               d_ex_erreur_type_argument;
                       return;
                   }
   
                 if ((*((*((struct_liste_chainee *) (*s_objet_argument_2).objet))                  if ((*((*((struct_liste_chainee *) (*s_objet_argument_2).objet))
                         .donnee)).type != CHN)                          .donnee)).type != CHN)
                 {                  {
Line 1357  instruction_write(struct_processus *s_et Line 1379  instruction_write(struct_processus *s_et
                 }                  }
   
                 free(chaine);                  free(chaine);
   
                   // Le fichier de type FLOW est à accès séquentiel. Il
                   // convient d'ajouter un retour à la ligne pour l'opération
                   // de lecture.
   
                   retour = d_code_retour_chariot;
   
                   if (fwrite(&retour, sizeof(unsigned char), 1,
                           (*descripteur).descripteur_c) != 1)
                   {
                       (*s_etat_processus).erreur_systeme = d_es_erreur_fichier;
                       return;
                   }
             }              }
             else              else
             {              {

Removed from v.1.55  
changed lines
  Added in v.1.63


CVSweb interface <joel.bertrand@systella.fr>