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