diff options
author | William M. Brack <wbrack@src.gnome.org> | 2003-10-18 04:53:14 +0000 |
---|---|---|
committer | William M. Brack <wbrack@src.gnome.org> | 2003-10-18 04:53:14 +0000 |
commit | 871611bb0325095b30559ff1edc1fdaa2ad5fd2f (patch) | |
tree | 26133079cfc10b49cdc63b27b5761f6e0c6f2e3f /tree.c | |
parent | 4aede2e66b88ad782b506341c6ea40554456a8b4 (diff) | |
download | libxml2-871611bb0325095b30559ff1edc1fdaa2ad5fd2f.tar.gz |
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
Diffstat (limited to 'tree.c')
-rw-r--r-- | tree.c | 38 |
1 files changed, 19 insertions, 19 deletions
@@ -377,13 +377,13 @@ try_complex: c = CUR_SCHAR(cur, l); } } - if ((!xmlIsLetter(c)) && (c != '_')) + if ((!IS_LETTER(c)) && (c != '_')) return(1); cur += l; c = CUR_SCHAR(cur, l); - while (xmlIsLetter(c) || xmlIsDigit(c) || (c == '.') || - (c == '-') || (c == '_') || xmlIsCombining(c) || - xmlIsExtender(c)) { + while (IS_LETTER(c) || IS_DIGIT(c) || (c == '.') || + (c == '-') || (c == '_') || IS_COMBINING(c) || + IS_EXTENDER(c)) { cur += l; c = CUR_SCHAR(cur, l); } @@ -460,26 +460,26 @@ try_complex: c = CUR_SCHAR(cur, l); } } - if ((!xmlIsLetter(c)) && (c != '_')) + if ((!IS_LETTER(c)) && (c != '_')) return(1); cur += l; c = CUR_SCHAR(cur, l); - while (xmlIsLetter(c) || xmlIsDigit(c) || (c == '.') || - (c == '-') || (c == '_') || xmlIsCombining(c) || - xmlIsExtender(c)) { + while (IS_LETTER(c) || IS_DIGIT(c) || (c == '.') || + (c == '-') || (c == '_') || IS_COMBINING(c) || + IS_EXTENDER(c)) { cur += l; c = CUR_SCHAR(cur, l); } if (c == ':') { cur += l; c = CUR_SCHAR(cur, l); - if ((!xmlIsLetter(c)) && (c != '_')) + if ((!IS_LETTER(c)) && (c != '_')) return(1); cur += l; c = CUR_SCHAR(cur, l); - while (xmlIsLetter(c) || xmlIsDigit(c) || (c == '.') || - (c == '-') || (c == '_') || xmlIsCombining(c) || - xmlIsExtender(c)) { + while (IS_LETTER(c) || IS_DIGIT(c) || (c == '.') || + (c == '-') || (c == '_') || IS_COMBINING(c) || + IS_EXTENDER(c)) { cur += l; c = CUR_SCHAR(cur, l); } @@ -542,12 +542,12 @@ try_complex: c = CUR_SCHAR(cur, l); } } - if ((!xmlIsLetter(c)) && (c != '_') && (c != ':')) + if ((!IS_LETTER(c)) && (c != '_') && (c != ':')) return(1); cur += l; c = CUR_SCHAR(cur, l); - while (xmlIsLetter(c) || xmlIsDigit(c) || (c == '.') || (c == ':') || - (c == '-') || (c == '_') || xmlIsCombining(c) || xmlIsExtender(c)) { + while (IS_LETTER(c) || IS_DIGIT(c) || (c == '.') || (c == ':') || + (c == '-') || (c == '_') || IS_COMBINING(c) || IS_EXTENDER(c)) { cur += l; c = CUR_SCHAR(cur, l); } @@ -611,13 +611,13 @@ try_complex: c = CUR_SCHAR(cur, l); } } - if (!(xmlIsLetter(c) || xmlIsDigit(c) || (c == '.') || (c == ':') || - (c == '-') || (c == '_') || xmlIsCombining(c) || xmlIsExtender(c))) + if (!(IS_LETTER(c) || IS_DIGIT(c) || (c == '.') || (c == ':') || + (c == '-') || (c == '_') || IS_COMBINING(c) || IS_EXTENDER(c))) return(1); cur += l; c = CUR_SCHAR(cur, l); - while (xmlIsLetter(c) || xmlIsDigit(c) || (c == '.') || (c == ':') || - (c == '-') || (c == '_') || xmlIsCombining(c) || xmlIsExtender(c)) { + while (IS_LETTER(c) || IS_DIGIT(c) || (c == '.') || (c == ':') || + (c == '-') || (c == '_') || IS_COMBINING(c) || IS_EXTENDER(c)) { cur += l; c = CUR_SCHAR(cur, l); } |