mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
relaxng: Make xmlRelaxNGDump depend on debug option
This commit is contained in:
@@ -72,13 +72,13 @@ symbolMap2 = {
|
|||||||
'xmlXPathDebugDumpCompExpr': 'DEBUG',
|
'xmlXPathDebugDumpCompExpr': 'DEBUG',
|
||||||
'xmlXPathDebugDumpObject': 'DEBUG',
|
'xmlXPathDebugDumpObject': 'DEBUG',
|
||||||
'xmlSchemaDump': 'DEBUG',
|
'xmlSchemaDump': 'DEBUG',
|
||||||
|
'xmlRelaxNGDump': 'DEBUG',
|
||||||
|
|
||||||
'xmlACatalogDump': 'OUTPUT',
|
'xmlACatalogDump': 'OUTPUT',
|
||||||
'xmlCatalogDump': 'OUTPUT',
|
'xmlCatalogDump': 'OUTPUT',
|
||||||
'xmlIOHTTPOpenW': 'OUTPUT',
|
'xmlIOHTTPOpenW': 'OUTPUT',
|
||||||
'xmlNanoHTTPSave': 'OUTPUT',
|
'xmlNanoHTTPSave': 'OUTPUT',
|
||||||
'xmlRegisterHTTPPostCallbacks': 'OUTPUT',
|
'xmlRegisterHTTPPostCallbacks': 'OUTPUT',
|
||||||
'xmlRelaxNGDump': 'OUTPUT',
|
|
||||||
'xmlRelaxNGDumpTree': 'OUTPUT',
|
'xmlRelaxNGDumpTree': 'OUTPUT',
|
||||||
|
|
||||||
'xmlTextReaderPreservePattern': 'PATTERN',
|
'xmlTextReaderPreservePattern': 'PATTERN',
|
||||||
|
@@ -161,10 +161,12 @@ XMLPUBFUN xmlRelaxNG *
|
|||||||
xmlRelaxNGParse (xmlRelaxNGParserCtxt *ctxt);
|
xmlRelaxNGParse (xmlRelaxNGParserCtxt *ctxt);
|
||||||
XMLPUBFUN void
|
XMLPUBFUN void
|
||||||
xmlRelaxNGFree (xmlRelaxNG *schema);
|
xmlRelaxNGFree (xmlRelaxNG *schema);
|
||||||
#ifdef LIBXML_OUTPUT_ENABLED
|
#ifdef LIBXML_DEBUG_ENABLED
|
||||||
XMLPUBFUN void
|
XMLPUBFUN void
|
||||||
xmlRelaxNGDump (FILE *output,
|
xmlRelaxNGDump (FILE *output,
|
||||||
xmlRelaxNG *schema);
|
xmlRelaxNG *schema);
|
||||||
|
#endif /* LIBXML_DEBUG_ENABLED */
|
||||||
|
#ifdef LIBXML_OUTPUT_ENABLED
|
||||||
XMLPUBFUN void
|
XMLPUBFUN void
|
||||||
xmlRelaxNGDumpTree (FILE * output,
|
xmlRelaxNGDumpTree (FILE * output,
|
||||||
xmlRelaxNG *schema);
|
xmlRelaxNG *schema);
|
||||||
|
@@ -7466,7 +7466,7 @@ xmlRelaxNGSetResourceLoader(xmlRelaxNGParserCtxt *ctxt,
|
|||||||
ctxt->resourceCtxt = vctxt;
|
ctxt->resourceCtxt = vctxt;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef LIBXML_OUTPUT_ENABLED
|
#ifdef LIBXML_DEBUG_ENABLED
|
||||||
|
|
||||||
/************************************************************************
|
/************************************************************************
|
||||||
* *
|
* *
|
||||||
@@ -7677,7 +7677,9 @@ xmlRelaxNGDump(FILE * output, xmlRelaxNG *schema)
|
|||||||
}
|
}
|
||||||
xmlRelaxNGDumpGrammar(output, schema->topgrammar, 1);
|
xmlRelaxNGDumpGrammar(output, schema->topgrammar, 1);
|
||||||
}
|
}
|
||||||
|
#endif /* LIBXML_DEBUG_ENABLED */
|
||||||
|
|
||||||
|
#ifdef LIBXML_OUTPUT_ENABLED
|
||||||
/**
|
/**
|
||||||
* Dump the transformed RelaxNG tree.
|
* Dump the transformed RelaxNG tree.
|
||||||
*
|
*
|
||||||
|
@@ -977,8 +977,10 @@ main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) {
|
|||||||
xmlRelaxNGValidatePushCData(NULL, NULL, 0);
|
xmlRelaxNGValidatePushCData(NULL, NULL, 0);
|
||||||
xmlRelaxNGValidatePushElement(NULL, NULL, NULL);
|
xmlRelaxNGValidatePushElement(NULL, NULL, NULL);
|
||||||
xmlRelaxParserSetFlag(NULL, 0);
|
xmlRelaxParserSetFlag(NULL, 0);
|
||||||
#ifdef LIBXML_OUTPUT_ENABLED
|
#ifdef LIBXML_DEBUG_ENABLED
|
||||||
xmlRelaxNGDump(NULL, NULL);
|
xmlRelaxNGDump(NULL, NULL);
|
||||||
|
#endif /* LIBXML_DEBUG_ENABLED */
|
||||||
|
#ifdef LIBXML_OUTPUT_ENABLED
|
||||||
xmlRelaxNGDumpTree(NULL, NULL);
|
xmlRelaxNGDumpTree(NULL, NULL);
|
||||||
#endif /* LIBXML_OUTPUT_ENABLED */
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
||||||
#endif /* LIBXML_RELAXNG_ENABLED */
|
#endif /* LIBXML_RELAXNG_ENABLED */
|
||||||
|
Reference in New Issue
Block a user