mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-02 20:42:30 +03:00
io: Deprecate a few functions
This commit is contained in:
@ -77,7 +77,7 @@ fuzzResourceRecorder(void *data ATTRIBUTE_UNUSED, const char *URL,
|
|||||||
}
|
}
|
||||||
|
|
||||||
do {
|
do {
|
||||||
len = xmlParserInputBufferGrow(in->buf, chunkSize);
|
len = xmlParserInputGrow(in, chunkSize);
|
||||||
if (len < 0) {
|
if (len < 0) {
|
||||||
fprintf(stderr, "Error reading %s\n", URL);
|
fprintf(stderr, "Error reading %s\n", URL);
|
||||||
xmlFreeInputStream(in);
|
xmlFreeInputStream(in);
|
||||||
|
@ -1066,7 +1066,6 @@ XML_DEPRECATED
|
|||||||
XMLPUBFUN int
|
XMLPUBFUN int
|
||||||
xmlParserInputRead (xmlParserInputPtr in,
|
xmlParserInputRead (xmlParserInputPtr in,
|
||||||
int len);
|
int len);
|
||||||
XML_DEPRECATED
|
|
||||||
XMLPUBFUN int
|
XMLPUBFUN int
|
||||||
xmlParserInputGrow (xmlParserInputPtr in,
|
xmlParserInputGrow (xmlParserInputPtr in,
|
||||||
int len);
|
int len);
|
||||||
|
@ -229,12 +229,15 @@ XMLPUBFUN xmlParserInputBufferPtr
|
|||||||
xmlInputCloseCallback ioclose,
|
xmlInputCloseCallback ioclose,
|
||||||
void *ioctx,
|
void *ioctx,
|
||||||
xmlCharEncoding enc);
|
xmlCharEncoding enc);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN int
|
XMLPUBFUN int
|
||||||
xmlParserInputBufferRead (xmlParserInputBufferPtr in,
|
xmlParserInputBufferRead (xmlParserInputBufferPtr in,
|
||||||
int len);
|
int len);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN int
|
XMLPUBFUN int
|
||||||
xmlParserInputBufferGrow (xmlParserInputBufferPtr in,
|
xmlParserInputBufferGrow (xmlParserInputBufferPtr in,
|
||||||
int len);
|
int len);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN int
|
XMLPUBFUN int
|
||||||
xmlParserInputBufferPush (xmlParserInputBufferPtr in,
|
xmlParserInputBufferPush (xmlParserInputBufferPtr in,
|
||||||
int len,
|
int len,
|
||||||
|
@ -356,6 +356,9 @@ deprecated_funcs = {
|
|||||||
'xmlParseVersionNum': True,
|
'xmlParseVersionNum': True,
|
||||||
'xmlParseXMLDecl': True,
|
'xmlParseXMLDecl': True,
|
||||||
'xmlParserHandlePEReference': True,
|
'xmlParserHandlePEReference': True,
|
||||||
|
'xmlParserInputBufferGrow': True,
|
||||||
|
'xmlParserInputBufferPush': True,
|
||||||
|
'xmlParserInputBufferRead': True,
|
||||||
'xmlParserSetLineNumbers': True,
|
'xmlParserSetLineNumbers': True,
|
||||||
'xmlParserSetLoadSubset': True,
|
'xmlParserSetLoadSubset': True,
|
||||||
'xmlParserSetPedantic': True,
|
'xmlParserSetPedantic': True,
|
||||||
|
14
xmlIO.c
14
xmlIO.c
@ -1895,7 +1895,9 @@ xmlParserInputBufferCreateStatic(const char *mem, int size,
|
|||||||
* @str: C string
|
* @str: C string
|
||||||
* @flags: flags
|
* @flags: flags
|
||||||
*
|
*
|
||||||
* Create an input buffer for a null-teriminated C string.
|
* DEPRECATED: Use xmlNewInputFromString.
|
||||||
|
*
|
||||||
|
* Create an input buffer for a null-terminated C string.
|
||||||
*
|
*
|
||||||
* Returns the new input buffer or NULL.
|
* Returns the new input buffer or NULL.
|
||||||
*/
|
*/
|
||||||
@ -2067,6 +2069,8 @@ xmlOutputBufferCreateFilenameDefault(xmlOutputBufferCreateFilenameFunc func)
|
|||||||
* @len: the size in bytes of the array.
|
* @len: the size in bytes of the array.
|
||||||
* @buf: an char array
|
* @buf: an char array
|
||||||
*
|
*
|
||||||
|
* DEPRECATED: Internal function, don't use.
|
||||||
|
*
|
||||||
* Push the content of the arry in the input buffer
|
* Push the content of the arry in the input buffer
|
||||||
* This routine handle the I18N transcoding to internal UTF-8
|
* This routine handle the I18N transcoding to internal UTF-8
|
||||||
* This is used when operating the parser in progressive (push) mode.
|
* This is used when operating the parser in progressive (push) mode.
|
||||||
@ -2136,6 +2140,8 @@ endOfInput (void * context ATTRIBUTE_UNUSED,
|
|||||||
* @in: a buffered parser input
|
* @in: a buffered parser input
|
||||||
* @len: indicative value of the amount of chars to read
|
* @len: indicative value of the amount of chars to read
|
||||||
*
|
*
|
||||||
|
* DEPRECATED: Internal function, don't use.
|
||||||
|
*
|
||||||
* Grow up the content of the input buffer, the old data are preserved
|
* Grow up the content of the input buffer, the old data are preserved
|
||||||
* This routine handle the I18N transcoding to internal UTF-8
|
* This routine handle the I18N transcoding to internal UTF-8
|
||||||
* This routine is used when operating the parser in normal (pull) mode
|
* This routine is used when operating the parser in normal (pull) mode
|
||||||
@ -2224,9 +2230,9 @@ xmlParserInputBufferGrow(xmlParserInputBufferPtr in, int len) {
|
|||||||
* @in: a buffered parser input
|
* @in: a buffered parser input
|
||||||
* @len: indicative value of the amount of chars to read
|
* @len: indicative value of the amount of chars to read
|
||||||
*
|
*
|
||||||
* Refresh the content of the input buffer, the old data are considered
|
* DEPRECATED: Internal function, don't use.
|
||||||
* consumed
|
*
|
||||||
* This routine handle the I18N transcoding to internal UTF-8
|
* Same as xmlParserInputBufferGrow.
|
||||||
*
|
*
|
||||||
* Returns the number of chars read and stored in the buffer, or -1
|
* Returns the number of chars read and stored in the buffer, or -1
|
||||||
* in case of error.
|
* in case of error.
|
||||||
|
Reference in New Issue
Block a user