Diff for /Amaya/amaya/styleparser.c between versions 1.34 and 1.35

version 1.34, 1999/12/09 17:18:11 version 1.35, 1999/12/10 14:41:31
Line 3138  CSSInfoPtr      css; Line 3138  CSSInfoPtr      css;
   STRING              pseudoclasses[MAX_ANCESTORS];    STRING              pseudoclasses[MAX_ANCESTORS];
   STRING              attrs[MAX_ANCESTORS];    STRING              attrs[MAX_ANCESTORS];
   STRING              attrvals[MAX_ANCESTORS];    STRING              attrvals[MAX_ANCESTORS];
   int                 i, j, k, max;    int                 i, j, k, max, maxAttr;
   ThotBool            isHTML;    ThotBool            isHTML;
   
   sel[0] = EOS;    sel[0] = EOS;
Line 3284  CSSInfoPtr      css; Line 3284  CSSInfoPtr      css;
   i = 0;    i = 0;
   k = 0;    k = 0;
   j = 0;    j = 0;
     maxAttr = 0;
   while (i <= max)    while (i <= max)
     {      {
       if (names[i])        if (names[i])
Line 3332  CSSInfoPtr      css; Line 3333  CSSInfoPtr      css;
           k++;            k++;
         }          }
   
       if (i > 0 &&        if (classes[i] || pseudoclasses[i] || ids[i] || attrs[i])
           names[i] &&          if (maxAttr > 0)
           (classes[i] || pseudoclasses[i] || ids[i] || attrs[i]))            /* Thot is not able to manage this kind of selector -> abort */
         /* Thot is not able to manage this kind of selector -> abort */            return (selector);
         return (selector);          else
             maxAttr++;
   
       /* store attributes information */        /* store attributes information */
       if (classes[i])        if (classes[i])

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


Webmaster