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/xmlschemas.c b/xmlschemas.c
index 76c41af..7c6c5fb 100644
--- a/xmlschemas.c
+++ b/xmlschemas.c
@@ -889,7 +889,7 @@
if (str == NULL)
return (1);
while (*str != 0) {
- if (!(IS_BLANK(*str)))
+ if (!(IS_BLANK_CH(*str)))
return (0);
str++;
}
@@ -1269,13 +1269,13 @@
}
cur = val;
- while (IS_BLANK(*cur))
+ while (IS_BLANK_CH(*cur))
cur++;
while ((*cur >= '0') && (*cur <= '9')) {
ret = ret * 10 + (*cur - '0');
cur++;
}
- while (IS_BLANK(*cur))
+ while (IS_BLANK_CH(*cur))
cur++;
if (*cur != 0) {
xmlSchemaPErr(ctxt, node, XML_SCHEMAP_INVALID_MAXOCCURS,
@@ -1307,13 +1307,13 @@
return (1);
cur = val;
- while (IS_BLANK(*cur))
+ while (IS_BLANK_CH(*cur))
cur++;
while ((*cur >= '0') && (*cur <= '9')) {
ret = ret * 10 + (*cur - '0');
cur++;
}
- while (IS_BLANK(*cur))
+ while (IS_BLANK_CH(*cur))
cur++;
if (*cur != 0) {
xmlSchemaPErr(ctxt, node, XML_SCHEMAP_INVALID_MINOCCURS,
@@ -4549,10 +4549,10 @@
}
cur = value;
do {
- while (IS_BLANK(*cur))
+ while (IS_BLANK_CH(*cur))
cur++;
end = cur;
- while ((*end != 0) && (!(IS_BLANK(*end))))
+ while ((*end != 0) && (!(IS_BLANK_CH(*end))))
end++;
if (end == cur)
break;