Changed all (?) occurences where validation macros (IS_xxx) had
* include/libxml/parserInternals.h HTMLparser.c HTMLtree.c
SAX2.c catalog.c debugXML.c entities.c parser.c relaxng.c
testSAX.c tree.c valid.c xmlschemas.c xmlschemastypes.c
xpath.c: Changed all (?) occurences where validation macros
(IS_xxx) had single-byte arguments to use IS_xxx_CH instead
(e.g. IS_BLANK changed to IS_BLANK_CH). This gets rid of
many warning messages on certain platforms, and also high-
lights places in the library which may need to be enhanced
for proper UTF8 handling.
diff --git a/SAX2.c b/SAX2.c
index 1bcd841..3c64ac2 100644
--- a/SAX2.c
+++ b/SAX2.c
@@ -1635,12 +1635,12 @@
if ((len <= 3) && ((cur == '"') || (cur == '\'') ||
((cur == '<') && (str[len + 1] != '!')))) {
intern = xmlDictLookup(ctxt->dict, str, len);
- } else if (IS_BLANK(*str) && (len < 60) && (cur == '<') &&
+ } else if (IS_BLANK_CH(*str) && (len < 60) && (cur == '<') &&
(str[len + 1] != '!')) {
int i;
for (i = 1;i < len;i++) {
- if (!IS_BLANK(*str)) goto skip;
+ if (!IS_BLANK_CH(*str)) goto skip;
}
intern = xmlDictLookup(ctxt->dict, str, len);
}