1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

threads: Deprecate remaining ThrDef functions

This commit is contained in:
Nick Wellnhofer 2024-05-14 12:08:17 +02:00
parent b117a912b6
commit 592546267f
5 changed files with 12 additions and 0 deletions

View File

@ -418,9 +418,11 @@ XMLPUBFUN xmlParserInputBufferCreateFilenameFunc
XMLPUBFUN xmlOutputBufferCreateFilenameFunc
xmlOutputBufferCreateFilenameDefault(
xmlOutputBufferCreateFilenameFunc func);
XML_DEPRECATED
XMLPUBFUN xmlOutputBufferCreateFilenameFunc
xmlThrDefOutputBufferCreateFilenameDefault(
xmlOutputBufferCreateFilenameFunc func);
XML_DEPRECATED
XMLPUBFUN xmlParserInputBufferCreateFilenameFunc
xmlThrDefParserInputBufferCreateFilenameDefault(
xmlParserInputBufferCreateFilenameFunc func);

View File

@ -892,6 +892,7 @@ XML_GLOBALS_ERROR
XMLPUBFUN void
xmlSetGenericErrorFunc (void *ctx,
xmlGenericErrorFunc handler);
XML_DEPRECATED
XMLPUBFUN void
xmlThrDefSetGenericErrorFunc(void *ctx,
xmlGenericErrorFunc handler);
@ -902,6 +903,7 @@ XMLPUBFUN void
XMLPUBFUN void
xmlSetStructuredErrorFunc (void *ctx,
xmlStructuredErrorFunc handler);
XML_DEPRECATED
XMLPUBFUN void
xmlThrDefSetStructuredErrorFunc(void *ctx,
xmlStructuredErrorFunc handler);

View File

@ -82,10 +82,13 @@ XMLPUBFUN int
xmlSaveSetAttrEscape (xmlSaveCtxtPtr ctxt,
xmlCharEncodingOutputFunc escape);
XML_DEPRECATED
XMLPUBFUN int
xmlThrDefIndentTreeOutput(int v);
XML_DEPRECATED
XMLPUBFUN const char *
xmlThrDefTreeIndentString(const char * v);
XML_DEPRECATED
XMLPUBFUN int
xmlThrDefSaveNoEmptyTags(int v);

View File

@ -388,12 +388,15 @@ deprecated_funcs = {
'xmlThrDefDefaultBufferSize': True,
'xmlThrDefDoValidityCheckingDefaultValue': True,
'xmlThrDefGetWarningsDefaultValue': True,
'xmlThrDefIndentTreeOutput': True,
'xmlThrDefKeepBlanksDefaultValue': True,
'xmlThrDefLineNumbersDefaultValue': True,
'xmlThrDefLoadExtDtdDefaultValue': True,
'xmlThrDefParserDebugEntities': True,
'xmlThrDefPedanticParserDefaultValue': True,
'xmlThrDefSaveNoEmptyTags': True,
'xmlThrDefSubstituteEntitiesDefaultValue': True,
'xmlThrDefTreeIndentString': True,
'xmlValidCtxtNormalizeAttributeValue': True,
'xmlValidNormalizeAttributeValue': True,
'xmlValidateAttributeValue': True,

View File

@ -1510,7 +1510,9 @@ static void
libxml_xmlErrorInitialize(void)
{
xmlSetGenericErrorFunc(NULL, libxml_xmlErrorFuncHandler);
XML_IGNORE_DEPRECATION_WARNINGS
xmlThrDefSetGenericErrorFunc(NULL, libxml_xmlErrorFuncHandler);
XML_POP_WARNINGS
}
static PyObject *