mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
encoding: Deprecate non-thread-safe functions
This commit is contained in:
10
encoding.c
10
encoding.c
@ -319,7 +319,7 @@ xmlDetectCharEncoding(const unsigned char* in, int len)
|
|||||||
* xmlCleanupEncodingAliases:
|
* xmlCleanupEncodingAliases:
|
||||||
*
|
*
|
||||||
* DEPRECATED: This function modifies global state and is not
|
* DEPRECATED: This function modifies global state and is not
|
||||||
* thread-safe.
|
* thread-safe. See xmlCtxtSetCharEncConvImpl for an alternative.
|
||||||
*
|
*
|
||||||
* Unregisters all aliases
|
* Unregisters all aliases
|
||||||
*/
|
*/
|
||||||
@ -386,7 +386,7 @@ xmlGetEncodingAlias(const char *alias) {
|
|||||||
* @alias: the alias name as parsed, in UTF-8 format (ASCII actually)
|
* @alias: the alias name as parsed, in UTF-8 format (ASCII actually)
|
||||||
*
|
*
|
||||||
* DEPRECATED: This function modifies global state and is not
|
* DEPRECATED: This function modifies global state and is not
|
||||||
* thread-safe.
|
* thread-safe. See xmlCtxtSetCharEncConvImpl for an alternative.
|
||||||
*
|
*
|
||||||
* Registers an alias @alias for an encoding named @name. Existing alias
|
* Registers an alias @alias for an encoding named @name. Existing alias
|
||||||
* will be overwritten.
|
* will be overwritten.
|
||||||
@ -461,7 +461,7 @@ xmlAddEncodingAlias(const char *name, const char *alias) {
|
|||||||
* @alias: the alias name as parsed, in UTF-8 format (ASCII actually)
|
* @alias: the alias name as parsed, in UTF-8 format (ASCII actually)
|
||||||
*
|
*
|
||||||
* DEPRECATED: This function modifies global state and is not
|
* DEPRECATED: This function modifies global state and is not
|
||||||
* thread-safe.
|
* thread-safe. See xmlCtxtSetCharEncConvImpl for an alternative.
|
||||||
*
|
*
|
||||||
* Unregisters an encoding alias @alias
|
* Unregisters an encoding alias @alias
|
||||||
*
|
*
|
||||||
@ -584,7 +584,7 @@ xmlGetCharEncodingName(xmlCharEncoding enc) {
|
|||||||
* @output: the xmlCharEncodingOutputFunc to write that encoding
|
* @output: the xmlCharEncodingOutputFunc to write that encoding
|
||||||
*
|
*
|
||||||
* DEPRECATED: This function modifies global state and is not
|
* DEPRECATED: This function modifies global state and is not
|
||||||
* thread-safe.
|
* thread-safe. See xmlCtxtSetCharEncConvImpl for an alternative.
|
||||||
*
|
*
|
||||||
* Create and registers an xmlCharEncodingHandler.
|
* Create and registers an xmlCharEncodingHandler.
|
||||||
*
|
*
|
||||||
@ -763,7 +763,7 @@ xmlCleanupCharEncodingHandlers(void) {
|
|||||||
* @handler: the xmlCharEncodingHandlerPtr handler block
|
* @handler: the xmlCharEncodingHandlerPtr handler block
|
||||||
*
|
*
|
||||||
* DEPRECATED: This function modifies global state and is not
|
* DEPRECATED: This function modifies global state and is not
|
||||||
* thread-safe.
|
* thread-safe. See xmlCtxtSetCharEncConvImpl for an alternative.
|
||||||
*
|
*
|
||||||
* Register the char encoding handler.
|
* Register the char encoding handler.
|
||||||
*/
|
*/
|
||||||
|
@ -209,6 +209,7 @@ XMLPUBFUN void
|
|||||||
XML_DEPRECATED
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void
|
XMLPUBFUN void
|
||||||
xmlCleanupCharEncodingHandlers (void);
|
xmlCleanupCharEncodingHandlers (void);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void
|
XMLPUBFUN void
|
||||||
xmlRegisterCharEncodingHandler (xmlCharEncodingHandlerPtr handler);
|
xmlRegisterCharEncodingHandler (xmlCharEncodingHandlerPtr handler);
|
||||||
XMLPUBFUN xmlParserErrors
|
XMLPUBFUN xmlParserErrors
|
||||||
@ -228,6 +229,7 @@ XMLPUBFUN xmlCharEncodingHandlerPtr
|
|||||||
xmlGetCharEncodingHandler (xmlCharEncoding enc);
|
xmlGetCharEncodingHandler (xmlCharEncoding enc);
|
||||||
XMLPUBFUN xmlCharEncodingHandlerPtr
|
XMLPUBFUN xmlCharEncodingHandlerPtr
|
||||||
xmlFindCharEncodingHandler (const char *name);
|
xmlFindCharEncodingHandler (const char *name);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN xmlCharEncodingHandlerPtr
|
XMLPUBFUN xmlCharEncodingHandlerPtr
|
||||||
xmlNewCharEncodingHandler (const char *name,
|
xmlNewCharEncodingHandler (const char *name,
|
||||||
xmlCharEncodingInputFunc input,
|
xmlCharEncodingInputFunc input,
|
||||||
@ -244,13 +246,17 @@ XMLPUBFUN xmlParserErrors
|
|||||||
/*
|
/*
|
||||||
* Interfaces for encoding names and aliases.
|
* Interfaces for encoding names and aliases.
|
||||||
*/
|
*/
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN int
|
XMLPUBFUN int
|
||||||
xmlAddEncodingAlias (const char *name,
|
xmlAddEncodingAlias (const char *name,
|
||||||
const char *alias);
|
const char *alias);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN int
|
XMLPUBFUN int
|
||||||
xmlDelEncodingAlias (const char *alias);
|
xmlDelEncodingAlias (const char *alias);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN const char *
|
XMLPUBFUN const char *
|
||||||
xmlGetEncodingAlias (const char *alias);
|
xmlGetEncodingAlias (const char *alias);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void
|
XMLPUBFUN void
|
||||||
xmlCleanupEncodingAliases (void);
|
xmlCleanupEncodingAliases (void);
|
||||||
XMLPUBFUN xmlCharEncoding
|
XMLPUBFUN xmlCharEncoding
|
||||||
|
@ -304,18 +304,22 @@ deprecated_funcs = {
|
|||||||
'htmlIsScriptAttribute': True,
|
'htmlIsScriptAttribute': True,
|
||||||
'htmlParseCharRef': True,
|
'htmlParseCharRef': True,
|
||||||
'htmlParseElement': True,
|
'htmlParseElement': True,
|
||||||
|
'xmlAddEncodingAlias': True,
|
||||||
'xmlByteConsumed': True,
|
'xmlByteConsumed': True,
|
||||||
'xmlCheckFilename': True,
|
'xmlCheckFilename': True,
|
||||||
'xmlCheckLanguageID': True,
|
'xmlCheckLanguageID': True,
|
||||||
'xmlCleanupCharEncodingHandlers': True,
|
'xmlCleanupCharEncodingHandlers': True,
|
||||||
|
'xmlCleanupEncodingAliases': True,
|
||||||
'xmlCleanupGlobals': True,
|
'xmlCleanupGlobals': True,
|
||||||
'xmlCopyChar': True,
|
'xmlCopyChar': True,
|
||||||
'xmlCopyCharMultiByte': True,
|
'xmlCopyCharMultiByte': True,
|
||||||
'xmlCreateEntityParserCtxt': True,
|
'xmlCreateEntityParserCtxt': True,
|
||||||
'xmlDefaultSAXHandlerInit': True,
|
'xmlDefaultSAXHandlerInit': True,
|
||||||
|
'xmlDelEncodingAlias': True,
|
||||||
'xmlDictCleanup': True,
|
'xmlDictCleanup': True,
|
||||||
'xmlFileMatch': True,
|
'xmlFileMatch': True,
|
||||||
'xmlGetCompressMode': True,
|
'xmlGetCompressMode': True,
|
||||||
|
'xmlGetEncodingAlias': True,
|
||||||
'xmlInitCharEncodingHandlers': True,
|
'xmlInitCharEncodingHandlers': True,
|
||||||
'xmlInitGlobals': True,
|
'xmlInitGlobals': True,
|
||||||
'xmlInitializeDict': True,
|
'xmlInitializeDict': True,
|
||||||
|
Reference in New Issue
Block a user