Diff for /rpl/src/instructions_p3.c between versions 1.34 and 1.35

version 1.34, 2012/03/01 10:14:07 version 1.35, 2012/04/13 07:45:44
Line 1640  instruction_prompt(struct_processus *s_e Line 1640  instruction_prompt(struct_processus *s_e
     struct_objet                *s_objet_argument;      struct_objet                *s_objet_argument;
     struct_objet                *s_objet_resultat;      struct_objet                *s_objet_resultat;
   
       unsigned char               *ptr_e;
       unsigned char               *ptr_l;
     unsigned char               *tampon;      unsigned char               *tampon;
     unsigned char               *tampon2;      unsigned char               *tampon2;
   
       unsigned long               i;
   
     (*s_etat_processus).erreur_execution = d_ex;      (*s_etat_processus).erreur_execution = d_ex;
   
     if ((*s_etat_processus).affichage_arguments == 'Y')      if ((*s_etat_processus).affichage_arguments == 'Y')
Line 1740  instruction_prompt(struct_processus *s_e Line 1744  instruction_prompt(struct_processus *s_e
         }          }
   
         free((unsigned char *) (*s_objet_resultat).objet);          free((unsigned char *) (*s_objet_resultat).objet);
         (*s_objet_resultat).objet = tampon;  
           ptr_l = tampon;
           i = 0;
   
           while((*ptr_l) != d_code_fin_chaine)
           {
               if ((*ptr_l) == '\"')
               {
                   i++;
               }
   
               ptr_l++;
           }
   
           if ((tampon2 = malloc((strlen(tampon) + 1 + i) *
                   sizeof(unsigned char))) == NULL)
           {
               (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;
               return;
           }
   
           ptr_l = tampon;
           ptr_e = tampon2;
   
           while((*ptr_l) != d_code_fin_chaine)
           {
               if ((*ptr_l) == '\"')
               {
                   (*ptr_e) = '\\';
                   ptr_e++;
               }
   
               (*ptr_e) = (*ptr_l);
               ptr_e++;
               ptr_l++;
           }
   
           free(tampon);
           (*s_objet_resultat).objet = tampon2;
   
         add_history((unsigned char *) (*s_objet_resultat).objet);          add_history((unsigned char *) (*s_objet_resultat).objet);
         stifle_history(ds_longueur_historique);          stifle_history(ds_longueur_historique);

Removed from v.1.34  
changed lines
  Added in v.1.35


CVSweb interface <joel.bertrand@systella.fr>