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
This commit is contained in:
Daniel Veillard 2003-01-07 11:17:25 +00:00
parent 7e54be15b5
commit 56ada1ddbb
2 changed files with 11 additions and 3 deletions

View File

@ -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>

View File

@ -510,6 +510,7 @@ xmlHTMLValidityWarning(void *ctx, const char *msg, ...)
* Shell Interface *
* *
************************************************************************/
#ifdef LIBXML_DEBUG_ENABLED
/**
* xmlShellReadline:
* @prompt: the prompt value
@ -550,6 +551,7 @@ xmlShellReadline(char *prompt) {
return(ret);
#endif
}
#endif /* LIBXML_DEBUG_ENABLED */
/************************************************************************
* *
@ -1215,10 +1217,11 @@ main(int argc, char **argv) {
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;