summaryrefslogtreecommitdiff
path: root/debugXML.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2004-03-04 15:59:36 +0000
committerDaniel Veillard <veillard@src.gnome.org>2004-03-04 15:59:36 +0000
commit2156d4387bf23c9b927341da58bd394bb4946017 (patch)
tree4be660145b9861c8d4d9f1e34a875c7ce07f2b44 /debugXML.c
parentcccd4a0524717f27fa5d54177686f6121db4bd3a (diff)
downloadlibxml2-2156d4387bf23c9b927341da58bd394bb4946017.tar.gz
fixing compilation bug with some options disabled as well as
* debugXML.c testHTML.c tree.c doc/examples/*.c include/libxml/xmlsave.h: fixing compilation bug with some options disabled as well as --with-minimum should fix #134695 Daniel
Diffstat (limited to 'debugXML.c')
-rw-r--r--debugXML.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/debugXML.c b/debugXML.c
index 25c1d15e..0da87e5a 100644
--- a/debugXML.c
+++ b/debugXML.c
@@ -1538,6 +1538,7 @@ xmlShellBase(xmlShellCtxtPtr ctxt,
return (0);
}
+#ifdef XML_TREE_ENABLED
/**
* xmlShellSetBase:
* @ctxt: the shell context
@@ -1558,6 +1559,7 @@ xmlShellSetBase(xmlShellCtxtPtr ctxt ATTRIBUTE_UNUSED,
xmlNodeSetBase(node, (xmlChar*) arg);
return (0);
}
+#endif
/**
* xmlShellGrep:
@@ -2306,8 +2308,10 @@ xmlShell(xmlDocPtr doc, char *filename, xmlShellReadlineFunc input,
xmlXPathFreeObject(list);
}
#endif /* LIBXML_XPATH_ENABLED */
+#ifdef LIBXML_TREE_ENABLED
} else if (!strcmp(command, "setbase")) {
xmlShellSetBase(ctxt, arg, ctxt->node, NULL);
+#endif
} else if ((!strcmp(command, "ls")) || (!strcmp(command, "dir"))) {
int dir = (!strcmp(command, "dir"));