Diff for /Amaya/amaya/styleparser.c between versions 1.7 and 1.8

version 1.7, 1999/04/15 13:16:30 version 1.8, 1999/04/20 14:56:35
Line 4272  boolean             withUndo; Line 4272  boolean             withUndo;
                 CSScomment = CSSindex - 1;                  CSScomment = CSSindex - 1;
               break;                break;
             case '/':              case '/':
               if (CSSindex > 0 && CSSbuffer[CSSindex - 1] == '*' && CSScomment != MAX_CSS_LENGTH)                if (CSSindex > 1 &&
                     CSSbuffer[CSSindex - 2] == '*' &&
                     CSSbuffer[CSSindex - 1] == '*' &&
                     CSScomment != MAX_CSS_LENGTH)
                 {                  {
                   /* close a comment */                    /* close a comment */
                   CSSindex = CSScomment - 1; /* incremented later */                    CSSindex = CSScomment - 1; /* incremented later */
Line 4283  boolean             withUndo; Line 4286  boolean             withUndo;
                   /* this is the closing tag ! */                    /* this is the closing tag ! */
                   CSSparsing = FALSE;                    CSSparsing = FALSE;
                   CSSindex -= 2; /* remove </ from the CSS string */                    CSSindex -= 2; /* remove </ from the CSS string */
                 }                             }
                 else if (CSScomment != MAX_CSS_LENGTH)
                   /* ignore a '/' within a comment which doesn't close it */
                   CSSindex--;;
               break;                break;
             case '<':              case '<':
               if (buffer != NULL)                if (buffer != NULL)
Line 4347  boolean             withUndo; Line 4353  boolean             withUndo;
           if (c != EOS)            if (c != EOS)
             CSSindex++;              CSSindex++;
         }          }
         else if (CSSindex > 1 &&
                  CSSbuffer[CSSindex - 2] == '*' &&
                  CSSbuffer[CSSindex - 1] == '*')
           /* ignore a '*' within the comment which is not followed by a '/' */
           CSSindex--;
       if  (CSSindex >= MAX_CSS_LENGTH || !CSSparsing || toParse || noRule)        if  (CSSindex >= MAX_CSS_LENGTH || !CSSparsing || toParse || noRule)
         {          {
           CSSbuffer[CSSindex] = EOS;            CSSbuffer[CSSindex] = EOS;

Removed from v.1.7  
changed lines
  Added in v.1.8


Webmaster