mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
parser: Deprecate xmlClearParserCtxt
This commit is contained in:
@ -1281,6 +1281,7 @@ XMLPUBFUN xmlParserCtxtPtr
|
||||
void *userData);
|
||||
XMLPUBFUN int
|
||||
xmlInitParserCtxt (xmlParserCtxtPtr ctxt);
|
||||
XML_DEPRECATED
|
||||
XMLPUBFUN void
|
||||
xmlClearParserCtxt (xmlParserCtxtPtr ctxt);
|
||||
XMLPUBFUN void
|
||||
|
2
parser.c
2
parser.c
@ -12748,7 +12748,7 @@ xmlSetupParserForBuffer(xmlParserCtxtPtr ctxt, const xmlChar* buffer,
|
||||
if ((ctxt == NULL) || (buffer == NULL))
|
||||
return;
|
||||
|
||||
xmlClearParserCtxt(ctxt);
|
||||
xmlCtxtReset(ctxt);
|
||||
|
||||
input = xmlCtxtNewInputFromString(ctxt, filename, (const char *) buffer,
|
||||
NULL, 0);
|
||||
|
@ -3199,15 +3199,13 @@ xmlCtxtGetValidCtxt(xmlParserCtxtPtr ctxt) {
|
||||
/**
|
||||
* @param ctxt an XML parser context
|
||||
*
|
||||
* Clear (release owned resources) and reinitialize a parser context
|
||||
* @deprecated Use xmlCtxtReset()
|
||||
*
|
||||
* Same as xmlCtxtReset()
|
||||
*/
|
||||
|
||||
void
|
||||
xmlClearParserCtxt(xmlParserCtxtPtr ctxt)
|
||||
{
|
||||
if (ctxt==NULL)
|
||||
return;
|
||||
xmlClearNodeInfoSeq(&ctxt->node_seq);
|
||||
xmlCtxtReset(ctxt);
|
||||
}
|
||||
|
||||
|
@ -603,6 +603,7 @@ deprecated_funcs = {
|
||||
'xmlCleanupCharEncodingHandlers': True,
|
||||
'xmlCleanupEncodingAliases': True,
|
||||
'xmlCleanupGlobals': True,
|
||||
'xmlClearParserCtxt': True,
|
||||
'xmlCopyChar': True,
|
||||
'xmlCopyCharMultiByte': True,
|
||||
'xmlCreateEntityParserCtxt': True,
|
||||
|
Reference in New Issue
Block a user