mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-26 00:37:43 +03:00
xpath: Improve error handling
Introduce xmlXPathSetErrorHandler allowing to set a structured error handler for an XPath context. Remove arguments from memory error handlers. Use xmlRaiseMemoryError. Remove TODO, STRANGE and CHECK_CTXT macros. Remove remaining uses of xmlGenericError.
This commit is contained in:
@@ -8,9 +8,9 @@ xmlInitXPathInternal(void);
|
||||
|
||||
#ifdef LIBXML_XPATH_ENABLED
|
||||
XML_HIDDEN void
|
||||
xmlXPathErrMemory(xmlXPathContextPtr ctxt, const char *extra);
|
||||
xmlXPathErrMemory(xmlXPathContextPtr ctxt);
|
||||
XML_HIDDEN void
|
||||
xmlXPathPErrMemory(xmlXPathParserContextPtr ctxt, const char *extra);
|
||||
xmlXPathPErrMemory(xmlXPathParserContextPtr ctxt);
|
||||
#endif
|
||||
|
||||
#endif /* XML_XPATH_H_PRIVATE__ */
|
||||
|
||||
Reference in New Issue
Block a user