diff --git a/include/libxml/parser.h b/include/libxml/parser.h index 043fc523..002e8ef1 100644 --- a/include/libxml/parser.h +++ b/include/libxml/parser.h @@ -873,9 +873,9 @@ XMLPUBFUN const xmlSAXHandlerV1 *__xmlDefaultSAXHandler(void); XML_OP(xmlParserDebugEntities, int, XML_DEPRECATED) \ XML_OP(xmlPedanticParserDefaultValue, 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) + XML_OP(xmlIndentTreeOutput, int, XML_NO_ATTR) \ + XML_OP(xmlTreeIndentString, const char *, XML_NO_ATTR) \ + XML_OP(xmlSaveNoEmptyTags, int, XML_NO_ATTR) #define XML_OP XML_DECLARE_GLOBAL XML_GLOBALS_PARSER diff --git a/include/libxml/xmlerror.h b/include/libxml/xmlerror.h index 2dd792ac..1f0ab4a3 100644 --- a/include/libxml/xmlerror.h +++ b/include/libxml/xmlerror.h @@ -861,10 +861,10 @@ typedef void (*xmlStructuredErrorFunc) (void *userData, const xmlError *error); /** DOC_DISABLE */ #define XML_GLOBALS_ERROR \ XML_OP(xmlLastError, xmlError, XML_DEPRECATED) \ - XML_OP(xmlGenericError, xmlGenericErrorFunc, XML_EMPTY) \ - XML_OP(xmlGenericErrorContext, void *, XML_EMPTY) \ - XML_OP(xmlStructuredError, xmlStructuredErrorFunc, XML_EMPTY) \ - XML_OP(xmlStructuredErrorContext, void *, XML_EMPTY) + XML_OP(xmlGenericError, xmlGenericErrorFunc, XML_NO_ATTR) \ + XML_OP(xmlGenericErrorContext, void *, XML_NO_ATTR) \ + XML_OP(xmlStructuredError, xmlStructuredErrorFunc, XML_NO_ATTR) \ + XML_OP(xmlStructuredErrorContext, void *, XML_NO_ATTR) #define XML_OP XML_DECLARE_GLOBAL XML_GLOBALS_ERROR diff --git a/include/libxml/xmlmemory.h b/include/libxml/xmlmemory.h index a3e26ddc..097e3c8f 100644 --- a/include/libxml/xmlmemory.h +++ b/include/libxml/xmlmemory.h @@ -72,11 +72,11 @@ typedef char *(*xmlStrdupFunc)(const char *str); /** DOC_DISABLE */ #ifdef LIBXML_THREAD_ALLOC_ENABLED #define XML_GLOBALS_ALLOC \ - XML_OP(xmlMalloc, xmlMallocFunc, XML_EMPTY) \ - XML_OP(xmlMallocAtomic, xmlMallocFunc, XML_EMPTY) \ - XML_OP(xmlRealloc, xmlReallocFunc, XML_EMPTY) \ - XML_OP(xmlFree, xmlFreeFunc, XML_EMPTY) \ - XML_OP(xmlMemStrdup, xmlStrdupFunc, XML_EMPTY) + XML_OP(xmlMalloc, xmlMallocFunc, XML_NO_ATTR) \ + XML_OP(xmlMallocAtomic, xmlMallocFunc, XML_NO_ATTR) \ + XML_OP(xmlRealloc, xmlReallocFunc, XML_NO_ATTR) \ + XML_OP(xmlFree, xmlFreeFunc, XML_NO_ATTR) \ + XML_OP(xmlMemStrdup, xmlStrdupFunc, XML_NO_ATTR) #define XML_OP XML_DECLARE_GLOBAL XML_GLOBALS_ALLOC #undef XML_OP diff --git a/include/libxml/xmlversion.h.in b/include/libxml/xmlversion.h.in index abcf9c54..0927d39d 100644 --- a/include/libxml/xmlversion.h.in +++ b/include/libxml/xmlversion.h.in @@ -471,7 +471,7 @@ XMLPUBFUN void xmlCheckVersion(int version); #endif #endif /* __GNUC__ */ -#define XML_EMPTY +#define XML_NO_ATTR #ifdef LIBXML_THREAD_ENABLED #define XML_DECLARE_GLOBAL(name, type, attrs) \