1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

parser: Make xmlCtxtGetValidCtxt depend on VALID_ENABLED

This commit is contained in:
Nick Wellnhofer
2025-04-27 12:59:41 +02:00
parent af40ed75bc
commit fc8899d47c
2 changed files with 4 additions and 0 deletions

View File

@@ -1461,8 +1461,10 @@ XMLPUBFUN int
xmlCtxtIsHtml (xmlParserCtxtPtr ctxt);
XMLPUBFUN int
xmlCtxtIsStopped (xmlParserCtxtPtr ctxt);
#ifdef LIBXML_VALID_ENABLED
XMLPUBFUN xmlValidCtxtPtr
xmlCtxtGetValidCtxt (xmlParserCtxtPtr ctxt);
#endif
XMLPUBFUN const xmlChar *
xmlCtxtGetVersion (xmlParserCtxtPtr ctxt);
XMLPUBFUN const xmlChar *

View File

@@ -3253,6 +3253,7 @@ xmlCtxtIsStopped(xmlParserCtxtPtr ctxt) {
return(PARSER_STOPPED(ctxt));
}
#ifdef LIBXML_VALID_ENABLED
/**
* xmlCtxtGetValidCtxt:
* @ctxt: parser context
@@ -3268,6 +3269,7 @@ xmlCtxtGetValidCtxt(xmlParserCtxtPtr ctxt) {
return(&ctxt->vctxt);
}
#endif
/************************************************************************
* *