Diff for /rpl/src/analyse_notation_algebrique.c between versions 1.44 and 1.45

version 1.44, 2013/03/21 16:31:58 version 1.45, 2013/03/23 16:14:39
Line 177  analyse_algebrique(struct_processus *s_e Line 177  analyse_algebrique(struct_processus *s_e
     {      {
         if ((*ptr1) == '"')          if ((*ptr1) == '"')
         {          {
             if (presence_chaine == d_faux)              if (ptr1 != chaine_travail)
             {              { // Il existe un caractère précédent.
                 presence_chaine = d_vrai;                  if ((*(ptr1 - 1)) != '\\')
                   {
                       if (presence_chaine == d_faux)
                       {
                           presence_chaine = d_vrai;
                       }
                       else
                       {
                           presence_chaine = d_faux;
                       }
                   }
             }              }
             else              else
             {              { // Il n'existe pas de caractère précédent.
                 presence_chaine = d_faux;                  if (presence_chaine == d_faux)
                   {
                       presence_chaine = d_vrai;
                   }
                   else
                   {
                       presence_chaine = d_faux;
                   }
             }              }
         }          }
   
Line 1315  extraction_chaine(unsigned char *chaine, Line 1332  extraction_chaine(unsigned char *chaine,
     unsigned char           *sous_chaine;      unsigned char           *sous_chaine;
   
     if ((position_1 < 1) || (position_2 < position_1) ||      if ((position_1 < 1) || (position_2 < position_1) ||
             (position_1 > ((integer8) strlen(chaine))))              (position_2 > ((integer8) strlen(chaine))))
     {  
         if ((sous_chaine = (unsigned char *) malloc(sizeof(unsigned char)))  
                 == NULL)  
         {  
             return(NULL);  
         }  
   
         (*sous_chaine) = d_code_fin_chaine;  
         return(sous_chaine);  
     }  
   
     if (position_2 > ((integer8) strlen(chaine)))  
     {      {
         if ((sous_chaine = (unsigned char *) malloc(sizeof(unsigned char)))          if ((sous_chaine = (unsigned char *) malloc(sizeof(unsigned char)))
                 == NULL)                  == NULL)

Removed from v.1.44  
changed lines
  Added in v.1.45


CVSweb interface <joel.bertrand@systella.fr>