From e7c3a4ca1be916d84e8182fb5de3a9c7a27bfe11 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Mon, 13 Mar 2023 19:19:46 +0100 Subject: [PATCH] parser: Deprecate some parser input functions --- include/libxml/parser.h | 2 ++ include/libxml/parserInternals.h | 1 + parserInternals.c | 2 ++ 3 files changed, 5 insertions(+) diff --git a/include/libxml/parser.h b/include/libxml/parser.h index 6af43ffe..950ebe32 100644 --- a/include/libxml/parser.h +++ b/include/libxml/parser.h @@ -828,9 +828,11 @@ XMLPUBFUN void /* * Input functions */ +XML_DEPRECATED XMLPUBFUN int xmlParserInputRead (xmlParserInputPtr in, int len); +XML_DEPRECATED XMLPUBFUN int xmlParserInputGrow (xmlParserInputPtr in, int len); diff --git a/include/libxml/parserInternals.h b/include/libxml/parserInternals.h index ce8dbd1f..ab512499 100644 --- a/include/libxml/parserInternals.h +++ b/include/libxml/parserInternals.h @@ -582,6 +582,7 @@ XMLPUBFUN int xmlCopyChar (int len, xmlChar *out, int val); XMLPUBFUN void xmlNextChar (xmlParserCtxtPtr ctxt); +XML_DEPRECATED XMLPUBFUN void xmlParserInputShrink (xmlParserInputPtr in); /* diff --git a/parserInternals.c b/parserInternals.c index bcf120a9..90c428d1 100644 --- a/parserInternals.c +++ b/parserInternals.c @@ -441,6 +441,8 @@ xmlParserShrink(xmlParserCtxtPtr ctxt) { * xmlParserInputShrink: * @in: an XML parser input * + * DEPRECATED: Don't use. + * * This function removes used input for the parser. */ void