include: Move globals from xmlsave.h to parser.h
Fix downstream build issues after reworking globals.h.
diff --git a/doc/apibuild.py b/doc/apibuild.py
index f7e66df..c1ba463 100755
--- a/doc/apibuild.py
+++ b/doc/apibuild.py
@@ -70,7 +70,6 @@
"XML_GLOBALS_HTML": (0, "macro keyword"),
"XML_GLOBALS_IO": (0, "macro keyword"),
"XML_GLOBALS_PARSER": (0, "macro keyword"),
- "XML_GLOBALS_SAVE": (0, "macro keyword"),
"XML_GLOBALS_TREE": (0, "macro keyword"),
"XML_THREAD_LOCAL": (0, "macro keyword"),
}
diff --git a/globals.c b/globals.c
index 48024ad..7ed67d7 100644
--- a/globals.c
+++ b/globals.c
@@ -82,7 +82,6 @@
XML_GLOBALS_HTML
XML_GLOBALS_IO
XML_GLOBALS_PARSER
-XML_GLOBALS_SAVE
XML_GLOBALS_TREE
#undef XML_OP
};
@@ -908,7 +907,6 @@
XML_GLOBALS_HTML
XML_GLOBALS_IO
XML_GLOBALS_PARSER
-XML_GLOBALS_SAVE
XML_GLOBALS_TREE
#undef XML_OP
diff --git a/include/libxml/parser.h b/include/libxml/parser.h
index bf085b6..ddc1469 100644
--- a/include/libxml/parser.h
+++ b/include/libxml/parser.h
@@ -859,7 +859,10 @@
XML_OP(xmlLoadExtDtdDefaultValue, int, XML_DEPRECATED) \
XML_OP(xmlParserDebugEntities, int, XML_DEPRECATED) \
XML_OP(xmlPedanticParserDefaultValue, int, XML_DEPRECATED) \
- XML_OP(xmlSubstituteEntitiesDefaultValue, int, XML_DEPRECATED)
+ XML_OP(xmlSubstituteEntitiesDefaultValue, int, XML_DEPRECATED) \
+ XML_OP(xmlIndentTreeOutput, int, XML_EMPTY) \
+ XML_OP(xmlTreeIndentString, const char *, XML_EMPTY) \
+ XML_OP(xmlSaveNoEmptyTags, int, XML_EMPTY)
#ifdef LIBXML_SAX1_ENABLED
#define XML_GLOBALS_PARSER_SAX1 \
@@ -893,6 +896,9 @@
XML_GLOBAL_MACRO(xmlPedanticParserDefaultValue)
#define xmlSubstituteEntitiesDefaultValue \
XML_GLOBAL_MACRO(xmlSubstituteEntitiesDefaultValue)
+ #define xmlIndentTreeOutput XML_GLOBAL_MACRO(xmlIndentTreeOutput)
+ #define xmlTreeIndentString XML_GLOBAL_MACRO(xmlTreeIndentString)
+ #define xmlSaveNoEmptyTags XML_GLOBAL_MACRO(xmlSaveNoEmptyTags)
#endif
/** DOC_ENABLE */
diff --git a/include/libxml/xmlsave.h b/include/libxml/xmlsave.h
index 1b7c0c5..fbf293a 100644
--- a/include/libxml/xmlsave.h
+++ b/include/libxml/xmlsave.h
@@ -41,23 +41,6 @@
typedef struct _xmlSaveCtxt xmlSaveCtxt;
typedef xmlSaveCtxt *xmlSaveCtxtPtr;
-/** DOC_DISABLE */
-#define XML_GLOBALS_SAVE \
- XML_OP(xmlIndentTreeOutput, int, XML_EMPTY) \
- XML_OP(xmlTreeIndentString, const char *, XML_EMPTY) \
- XML_OP(xmlSaveNoEmptyTags, int, XML_EMPTY)
-
-#define XML_OP XML_DECLARE_GLOBAL
-XML_GLOBALS_SAVE
-#undef XML_OP
-
-#if defined(LIBXML_THREAD_ENABLED) && !defined(XML_GLOBALS_NO_REDEFINITION)
- #define xmlIndentTreeOutput XML_GLOBAL_MACRO(xmlIndentTreeOutput)
- #define xmlTreeIndentString XML_GLOBAL_MACRO(xmlTreeIndentString)
- #define xmlSaveNoEmptyTags XML_GLOBAL_MACRO(xmlSaveNoEmptyTags)
-#endif
-/** DOC_ENABLE */
-
XMLPUBFUN xmlSaveCtxtPtr
xmlSaveToFd (int fd,
const char *encoding,
@@ -108,12 +91,6 @@
}
#endif
-#else /* LIBXML_OUTPUT_ENABLED */
-
-/** DOC_DISABLE */
-#define XML_GLOBALS_SAVE
-/** DOC_ENABLE */
-
#endif /* LIBXML_OUTPUT_ENABLED */
#endif /* __XML_XMLSAVE_H__ */