mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2026-01-26 21:41:34 +03:00
xmllint: Remove --debugent option
This commit is contained in:
@@ -69,7 +69,6 @@
|
||||
<arg choice="plain"><option>--quiet</option></arg>
|
||||
<arg choice="plain"><option>--shell</option></arg>
|
||||
<arg choice="plain"><option>--xpath "<replaceable class="option">XPath_expression</replaceable>"</option></arg>
|
||||
<arg choice="plain"><option>--debugent</option></arg>
|
||||
<arg choice="plain"><option>--copy</option></arg>
|
||||
<arg choice="plain"><option>--recover</option></arg>
|
||||
<arg choice="plain"><option>--huge</option></arg>
|
||||
@@ -602,13 +601,6 @@
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--debugent</option></term>
|
||||
<listitem>
|
||||
<para>Debug the entities defined in the document.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--insert</option></term>
|
||||
<listitem>
|
||||
|
||||
@@ -47,7 +47,7 @@ static const char *const switches[] = {
|
||||
"--compress",
|
||||
"--copy",
|
||||
"--debug",
|
||||
"--debugent",
|
||||
NULL,
|
||||
"--dropdtd",
|
||||
"--dtdattr",
|
||||
"--exc-c14n",
|
||||
|
||||
18
xmllint.c
18
xmllint.c
@@ -128,9 +128,6 @@ typedef struct {
|
||||
int sax;
|
||||
int callbacks;
|
||||
int shell;
|
||||
#ifdef LIBXML_DEBUG_ENABLED
|
||||
int debugent;
|
||||
#endif
|
||||
int debug;
|
||||
int copy;
|
||||
int noout;
|
||||
@@ -2606,15 +2603,6 @@ parseAndPrintFile(xmllintState *lint, const char *filename) {
|
||||
}
|
||||
#endif /* LIBXML_SCHEMAS_ENABLED */
|
||||
|
||||
#ifdef LIBXML_DEBUG_ENABLED
|
||||
if ((lint->debugent)
|
||||
#if defined(LIBXML_HTML_ENABLED)
|
||||
&& (!lint->html)
|
||||
#endif
|
||||
)
|
||||
xmlDebugDumpEntities(errStream, doc);
|
||||
#endif
|
||||
|
||||
/* Avoid unused label warning */
|
||||
goto done;
|
||||
|
||||
@@ -2685,7 +2673,6 @@ static void usage(FILE *f, const char *name) {
|
||||
fprintf(f, "\t--shell : run a navigating shell\n");
|
||||
#ifdef LIBXML_DEBUG_ENABLED
|
||||
fprintf(f, "\t--debug : dump a debug tree of the in-memory document\n");
|
||||
fprintf(f, "\t--debugent : debug the entities defined in the document\n");
|
||||
#else
|
||||
#ifdef LIBXML_READER_ENABLED
|
||||
fprintf(f, "\t--debug : dump the nodes content when using --stream\n");
|
||||
@@ -3054,11 +3041,6 @@ xmllintParseOptions(xmllintState *lint, int argc, const char **argv) {
|
||||
(!strcmp(argv[i], "--pedantic"))) {
|
||||
lint->options |= XML_PARSE_PEDANTIC;
|
||||
lint->options &= ~XML_PARSE_NOWARNING;
|
||||
#ifdef LIBXML_DEBUG_ENABLED
|
||||
} else if ((!strcmp(argv[i], "-debugent")) ||
|
||||
(!strcmp(argv[i], "--debugent"))) {
|
||||
lint->debugent = 1;
|
||||
#endif
|
||||
#ifdef LIBXML_C14N_ENABLED
|
||||
} else if ((!strcmp(argv[i], "-c14n")) ||
|
||||
(!strcmp(argv[i], "--c14n"))) {
|
||||
|
||||
Reference in New Issue
Block a user