another fix needed as pointed by Christophe Merlet for --stream --debug if
* xmllint.c: another fix needed as pointed by Christophe Merlet
for --stream --debug if compiled without debug support.
Daniel
diff --git a/ChangeLog b/ChangeLog
index f05b5f3..59a61bc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,12 @@
+Tue Jan 7 12:12:45 CET 2003 Daniel Veillard <daniel@veillard.com>
+
+ * xmllint.c: another fix needed as pointed by Christophe Merlet
+ for --stream --debug if compiled without debug support.
+
Mon Jan 6 20:53:08 MST 2003 John Fleck <jfleck@inkstain.net>
* doc/xmllint.xml
- * doc/xmllint.1
+ * doc/xmllint.1:
update man page with --stream and --chkregister
Tue Jan 7 01:17:26 CET 2003 Daniel Veillard <daniel@veillard.com>
diff --git a/xmllint.c b/xmllint.c
index 19fc3ab..0effd3d 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -510,6 +510,7 @@
* Shell Interface *
* *
************************************************************************/
+#ifdef LIBXML_DEBUG_ENABLED
/**
* xmlShellReadline:
* @prompt: the prompt value
@@ -550,6 +551,7 @@
return(ret);
#endif
}
+#endif /* LIBXML_DEBUG_ENABLED */
/************************************************************************
* *
@@ -1215,10 +1217,11 @@
if (argv[i][0] != '-')
continue;
-#ifdef LIBXML_DEBUG_ENABLED
if ((!strcmp(argv[i], "-debug")) || (!strcmp(argv[i], "--debug")))
debug++;
- else if ((!strcmp(argv[i], "-shell")) ||
+ else
+#ifdef LIBXML_DEBUG_ENABLED
+ if ((!strcmp(argv[i], "-shell")) ||
(!strcmp(argv[i], "--shell"))) {
shell++;
noout = 1;