1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-24 13:33:01 +03:00

globals: Move remaining globals back to correct header files

This undoes a lot of damage.
This commit is contained in:
Nick Wellnhofer
2023-09-20 17:54:48 +02:00
parent 7909ff08e2
commit 11a1839ddd
15 changed files with 159 additions and 121 deletions

View File

@@ -80,6 +80,17 @@ struct _htmlEntityDesc {
const char *desc; /* the description */
};
#define XML_GLOBALS_HTML \
XML_OP(htmlDefaultSAXHandler, xmlSAXHandlerV1, XML_DEPRECATED)
#define XML_OP XML_DECLARE_GLOBAL
XML_GLOBALS_HTML
#undef XML_OP
#if defined(LIBXML_THREAD_ENABLED) && !defined(XML_GLOBALS_NO_REDEFINITION)
#define htmlDefaultSAXHandler XML_GLOBAL_MACRO(htmlDefaultSAXHandler)
#endif
/*
* There is only few public functions.
*/
@@ -316,5 +327,9 @@ XMLPUBFUN htmlStatus htmlNodeStatus(const htmlNodePtr, int) ;
}
#endif
#else /* LIBXML_HTML_ENABLED */
#define XML_GLOBALS_HTML
#endif /* LIBXML_HTML_ENABLED */
#endif /* __HTML_PARSER_H__ */