1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-02-05 05:47:00 +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 XMLPUBFUN xmlOutputBufferCreateFilenameFunc
xmlOutputBufferCreateFilenameDefault( xmlOutputBufferCreateFilenameDefault(
xmlOutputBufferCreateFilenameFunc func); xmlOutputBufferCreateFilenameFunc func);
XML_DEPRECATED
XMLPUBFUN xmlOutputBufferCreateFilenameFunc XMLPUBFUN xmlOutputBufferCreateFilenameFunc
xmlThrDefOutputBufferCreateFilenameDefault( xmlThrDefOutputBufferCreateFilenameDefault(
xmlOutputBufferCreateFilenameFunc func); xmlOutputBufferCreateFilenameFunc func);
XML_DEPRECATED
XMLPUBFUN xmlParserInputBufferCreateFilenameFunc XMLPUBFUN xmlParserInputBufferCreateFilenameFunc
xmlThrDefParserInputBufferCreateFilenameDefault( xmlThrDefParserInputBufferCreateFilenameDefault(
xmlParserInputBufferCreateFilenameFunc func); xmlParserInputBufferCreateFilenameFunc func);

View File

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

View File

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

View File

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

View File

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