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:
@@ -1461,8 +1461,10 @@ XMLPUBFUN int
|
|||||||
xmlCtxtIsHtml (xmlParserCtxtPtr ctxt);
|
xmlCtxtIsHtml (xmlParserCtxtPtr ctxt);
|
||||||
XMLPUBFUN int
|
XMLPUBFUN int
|
||||||
xmlCtxtIsStopped (xmlParserCtxtPtr ctxt);
|
xmlCtxtIsStopped (xmlParserCtxtPtr ctxt);
|
||||||
|
#ifdef LIBXML_VALID_ENABLED
|
||||||
XMLPUBFUN xmlValidCtxtPtr
|
XMLPUBFUN xmlValidCtxtPtr
|
||||||
xmlCtxtGetValidCtxt (xmlParserCtxtPtr ctxt);
|
xmlCtxtGetValidCtxt (xmlParserCtxtPtr ctxt);
|
||||||
|
#endif
|
||||||
XMLPUBFUN const xmlChar *
|
XMLPUBFUN const xmlChar *
|
||||||
xmlCtxtGetVersion (xmlParserCtxtPtr ctxt);
|
xmlCtxtGetVersion (xmlParserCtxtPtr ctxt);
|
||||||
XMLPUBFUN const xmlChar *
|
XMLPUBFUN const xmlChar *
|
||||||
|
@@ -3253,6 +3253,7 @@ xmlCtxtIsStopped(xmlParserCtxtPtr ctxt) {
|
|||||||
return(PARSER_STOPPED(ctxt));
|
return(PARSER_STOPPED(ctxt));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef LIBXML_VALID_ENABLED
|
||||||
/**
|
/**
|
||||||
* xmlCtxtGetValidCtxt:
|
* xmlCtxtGetValidCtxt:
|
||||||
* @ctxt: parser context
|
* @ctxt: parser context
|
||||||
@@ -3268,6 +3269,7 @@ xmlCtxtGetValidCtxt(xmlParserCtxtPtr ctxt) {
|
|||||||
|
|
||||||
return(&ctxt->vctxt);
|
return(&ctxt->vctxt);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/************************************************************************
|
/************************************************************************
|
||||||
* *
|
* *
|
||||||
|
Reference in New Issue
Block a user