diff --git a/encoding.c b/encoding.c index 863dc11e..bbd26135 100644 --- a/encoding.c +++ b/encoding.c @@ -1905,6 +1905,8 @@ xmlCharEncCloseFunc(xmlCharEncodingHandler *handler) { * xmlByteConsumed: * @ctxt: an XML parser context * + * DEPRECATED: Don't use. + * * This function provides the current index of the parser relative * to the start of the current entity. This function is computed in * bytes from the beginning starting at zero and finishing at the diff --git a/include/libxml/parser.h b/include/libxml/parser.h index 9308617c..b31afc76 100644 --- a/include/libxml/parser.h +++ b/include/libxml/parser.h @@ -1347,9 +1347,7 @@ XMLPUBFUN xmlParserInputPtr const char *ID, xmlParserCtxtPtr ctxt); -/* - * Index lookup, actually implemented in the encoding module - */ +XML_DEPRECATED XMLPUBFUN long xmlByteConsumed (xmlParserCtxtPtr ctxt); diff --git a/python/generator.py b/python/generator.py index 0daa345f..f28a8150 100755 --- a/python/generator.py +++ b/python/generator.py @@ -299,6 +299,7 @@ deprecated_funcs = { 'namePush': True, 'nodePop': True, 'nodePush': True, + 'xmlByteConsumed': True, 'xmlCheckFilename': True, 'xmlCheckLanguageID': True, 'xmlCleanupCharEncodingHandlers': True,