Diff for /Amaya/amaya/styleparser.c between versions 1.237 and 1.238

version 1.237, 2003/10/20 16:02:30 version 1.238, 2003/10/21 12:56:26
Line 4341  static char *ParseGenericSelector (char Line 4341  static char *ParseGenericSelector (char
                   DoApply = FALSE;                    DoApply = FALSE;
                 else                  else
                   specificity += 10;                    specificity += 10;
                 pseudoclasses[0]= deb;                  if (!strncmp (deb, "lang", 4))
                     /* it's the lang pseudo-class */
                     {
                       if (deb[4] != '(' || deb[strlen(deb)-1] != ')')
                         /* at least one paranthesis is missing. Error */
                         {
                           CSSPrintError ("Invalid :lang pseudoclass", deb);
                           DoApply = FALSE;
                         }
                       else
                         /* simulate selector [lang|="xxx"] if there no
                            attribute yet in the selector */
                         if (!attrs[0])
                           {
                             deb[strlen(deb)-1] = EOS;
                             deb[4] = EOS;
                             attrmatch[0] = Txtsubstring;
                             attrs[0] = deb;
                             attrvals[0] = &deb[5];
                           }
                     }
                   else
                     pseudoclasses[0] = deb;
                 if (names[0] && !strcmp (names[0], "*"))                  if (names[0] && !strcmp (names[0], "*"))
                   names[0] = NULL;                    names[0] = NULL;
               }                }
Line 4442  static char *ParseGenericSelector (char Line 4464  static char *ParseGenericSelector (char
                             CSSPrintError ("No space allowed here: ", selector);                              CSSPrintError ("No space allowed here: ", selector);
                             DoApply = FALSE;                              DoApply = FALSE;
                           }                            }
                         *cur++ = tolower (*selector);                          *cur++ = *selector;
                       }                        }
                     selector++;                      selector++;
                   }                    }

Removed from v.1.237  
changed lines
  Added in v.1.238


Webmaster