[libxml2] Don't use xmlValidateName() when not available.
- From: Daniel Veillard <veillard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Don't use xmlValidateName() when not available.
- Date: Mon, 10 Feb 2014 02:37:36 +0000 (UTC)
commit 3313d14f9d71e5beeb51169688b69f3a34fe4489
Author: Nicolas Le Cam <niko lecam gmail com>
Date: Fri Jun 14 21:11:27 2013 +0200
Don't use xmlValidateName() when not available.
Fix compilation with minimum and debug.
debugXML.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/debugXML.c b/debugXML.c
index 3c13783..8aab703 100644
--- a/debugXML.c
+++ b/debugXML.c
@@ -254,10 +254,12 @@ xmlCtxtCheckName(xmlDebugCtxtPtr ctxt, const xmlChar * name)
xmlDebugErr(ctxt, XML_CHECK_NO_NAME, "Name is NULL");
return;
}
+#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
if (xmlValidateName(name, 0)) {
xmlDebugErr3(ctxt, XML_CHECK_NOT_NCNAME,
"Name is not an NCName '%s'", (const char *) name);
}
+#endif
if ((ctxt->dict != NULL) &&
(!xmlDictOwns(ctxt->dict, name)) &&
((ctxt->doc == NULL) ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]