schemas: Make xmlSchemaDump depend on DEBUG_ENABLED

This commit is contained in:
Nick Wellnhofer 2025-02-22 21:06:34 +01:00
parent 6fc260760a
commit 7ae8e8ac7d
2 changed files with 4 additions and 4 deletions

View File

@ -172,11 +172,11 @@ XMLPUBFUN xmlSchemaPtr
xmlSchemaParse (xmlSchemaParserCtxtPtr ctxt); xmlSchemaParse (xmlSchemaParserCtxtPtr ctxt);
XMLPUBFUN void XMLPUBFUN void
xmlSchemaFree (xmlSchemaPtr schema); xmlSchemaFree (xmlSchemaPtr schema);
#ifdef LIBXML_OUTPUT_ENABLED #ifdef LIBXML_DEBUG_ENABLED
XMLPUBFUN void XMLPUBFUN void
xmlSchemaDump (FILE *output, xmlSchemaDump (FILE *output,
xmlSchemaPtr schema); xmlSchemaPtr schema);
#endif /* LIBXML_OUTPUT_ENABLED */ #endif /* LIBXML_DEBUG_ENABLED */
/* /*
* Interfaces for validating * Interfaces for validating
*/ */

View File

@ -4196,7 +4196,7 @@ xmlSchemaFree(xmlSchemaPtr schema)
* * * *
************************************************************************/ ************************************************************************/
#ifdef LIBXML_OUTPUT_ENABLED #ifdef LIBXML_DEBUG_ENABLED
static void static void
xmlSchemaTypeDump(xmlSchemaTypePtr type, FILE * output); /* forward */ xmlSchemaTypeDump(xmlSchemaTypePtr type, FILE * output); /* forward */
@ -4569,7 +4569,7 @@ xmlSchemaDump(FILE * output, xmlSchemaPtr schema)
xmlHashScanFull(schema->elemDecl, xmlSchemaElementDump, output); xmlHashScanFull(schema->elemDecl, xmlSchemaElementDump, output);
} }
#endif /* LIBXML_OUTPUT_ENABLED */ #endif /* LIBXML_DEBUG_ENABLED */
/************************************************************************ /************************************************************************
* * * *