mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
Fix many places where malloc failures aren't reported. Make xmlErrMemory public. This is useful for custom external entity loaders. Introduce new API function xmlSwitchEncodingName. Change the way how we store whether the the parser is stopped. This used to be signaled by setting ctxt->instate to XML_PARSER_EOF which was misdesigned and error-prone. Set ctxt->disableSAX to 2 instead and introduce a macro PARSER_STOPPED. Also stop to remove parser inputs in xmlHaltParser. This allows to remove many checks of ctxt->instate. Introduce xmlErrParser to handle errors if a parser context is available.
23 lines
583 B
C
23 lines
583 B
C
#ifndef XML_IO_H_PRIVATE__
|
|
#define XML_IO_H_PRIVATE__
|
|
|
|
#include <libxml/encoding.h>
|
|
#include <libxml/tree.h>
|
|
#include <libxml/xmlversion.h>
|
|
|
|
XML_HIDDEN void
|
|
__xmlIOErr(int domain, int code, const char *extra);
|
|
XML_HIDDEN void
|
|
xmlLoaderErr(xmlParserCtxtPtr ctxt, const char *msg,
|
|
const char *filename) LIBXML_ATTR_FORMAT(2,0);
|
|
|
|
xmlParserInputBufferPtr
|
|
xmlParserInputBufferCreateString(const xmlChar *str);
|
|
|
|
#ifdef LIBXML_OUTPUT_ENABLED
|
|
XML_HIDDEN xmlOutputBufferPtr
|
|
xmlAllocOutputBufferInternal(xmlCharEncodingHandlerPtr encoder);
|
|
#endif
|
|
|
|
#endif /* XML_IO_H_PRIVATE__ */
|