1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

Deprecate module init and cleanup functions

These functions shouldn't be part of the public API. Most init
functions are only thread-safe when called from xmlInitParser. Global
variables should only be cleaned up by calling xmlCleanupParser.
This commit is contained in:
Nick Wellnhofer
2022-03-06 13:55:48 +01:00
parent 7d02c7291f
commit 40483d0ce2
21 changed files with 100 additions and 1 deletions

View File

@ -289,8 +289,22 @@ skip_impl = (
)
deprecated_funcs = {
'htmlDefaultSAXHandlerInit': True,
'htmlInitAutoClose': True,
'xmlCleanupCharEncodingHandlers': True,
'xmlCleanupGlobals': True,
'xmlDefaultSAXHandlerInit': True,
'xmlDictCleanup': True,
'xmlInitCharEncodingHandlers': True,
'xmlInitGlobals': True,
'xmlInitializeDict': True,
'xmlIsRef': True,
'xmlRelaxNGCleanupTypes': True,
'xmlRelaxNGInitTypes': True,
'xmlRemoveRef': True,
'xmlSchemaCleanupTypes': True,
'xmlSchemaInitTypes': True,
'xmlXPathInit': True,
}
def skip_function(name):