mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-28 00:21:53 +03:00
enhanced macros to avoid breaking ABI from previous versions. modified to
* genChRanges.py, chvalid.c, include/libxml/chvalid.h, include/libxml/parserInternals.h: enhanced macros to avoid breaking ABI from previous versions. * catalog.c, parser.c, tree.c: modified to use IS_* macros defined in parserInternals.h. Makes maintenance much easier. * testHTML.c, testSAX.c, python/libxml.c: minor fixes to avoid compilation warnings * configuration.in: fixed pushHTML test error; enhanced for better devel (me) testing
This commit is contained in:
@ -1832,16 +1832,16 @@ xmlRegCheckCharacterRange(xmlRegAtomType type, int codepoint, int neg,
|
||||
case XML_REGEXP_NOTINITNAME:
|
||||
neg = !neg;
|
||||
case XML_REGEXP_INITNAME:
|
||||
ret = (xmlIsLetter(codepoint) ||
|
||||
ret = (IS_LETTER(codepoint) ||
|
||||
(codepoint == '_') || (codepoint == ':'));
|
||||
break;
|
||||
case XML_REGEXP_NOTNAMECHAR:
|
||||
neg = !neg;
|
||||
case XML_REGEXP_NAMECHAR:
|
||||
ret = (xmlIsLetter(codepoint) || xmlIsDigit(codepoint) ||
|
||||
ret = (IS_LETTER(codepoint) || IS_DIGIT(codepoint) ||
|
||||
(codepoint == '.') || (codepoint == '-') ||
|
||||
(codepoint == '_') || (codepoint == ':') ||
|
||||
xmlIsCombining(codepoint) || xmlIsExtender(codepoint));
|
||||
IS_COMBINING(codepoint) || IS_EXTENDER(codepoint));
|
||||
break;
|
||||
case XML_REGEXP_NOTDECIMAL:
|
||||
neg = !neg;
|
||||
@ -1981,7 +1981,7 @@ xmlRegCheckCharacter(xmlRegAtomPtr atom, int codepoint) {
|
||||
int i, ret = 0;
|
||||
xmlRegRangePtr range;
|
||||
|
||||
if ((atom == NULL) || (!xmlIsChar(codepoint)))
|
||||
if ((atom == NULL) || (!IS_CHAR(codepoint)))
|
||||
return(-1);
|
||||
|
||||
switch (atom->type) {
|
||||
|
Reference in New Issue
Block a user