From 0830fcfa908ebe9939f2a8b792d91ecbb3516aa2 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Wed, 20 Sep 2023 14:30:12 +0200 Subject: [PATCH] globals: Deprecate xmlLastError The last error should be accessed with xmlGetLastError. --- include/libxml/globals.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/libxml/globals.h b/include/libxml/globals.h index 051dc112..3ce276dc 100644 --- a/include/libxml/globals.h +++ b/include/libxml/globals.h @@ -90,12 +90,13 @@ xmlDllMain(void *hinstDLL, unsigned long fdwReason, #define XML_EMPTY #define XML_GLOBALS_CORE \ - XML_OP(xmlLastError, xmlError, XML_EMPTY) \ + XML_OP(xmlParserVersion, const char *, XML_EMPTY) \ + /* error handling */ \ + 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(xmlParserVersion, const char *, XML_EMPTY) \ /* output options */ \ XML_OP(xmlIndentTreeOutput, int, XML_EMPTY) \ XML_OP(xmlTreeIndentString, const char *, XML_EMPTY) \