mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
Don't try to grow the input buffer in xmlParserShrink. This makes sure that no memory allocations are made and the function always succeeds. Remove unnecessary invocations of SHRINK. Invoke SHRINK at the end of DTD parsing loops. Shrink before growing.
34 lines
854 B
C
34 lines
854 B
C
#ifndef XML_PARSER_H_PRIVATE__
|
|
#define XML_PARSER_H_PRIVATE__
|
|
|
|
#include <libxml/parser.h>
|
|
#include <libxml/xmlversion.h>
|
|
|
|
/**
|
|
* XML_VCTXT_DTD_VALIDATED:
|
|
*
|
|
* Set after xmlValidateDtdFinal was called.
|
|
*/
|
|
#define XML_VCTXT_DTD_VALIDATED (1u << 0)
|
|
/**
|
|
* XML_VCTXT_USE_PCTXT:
|
|
*
|
|
* Set if the validation context is part of a parser context.
|
|
*/
|
|
#define XML_VCTXT_USE_PCTXT (1u << 1)
|
|
|
|
XML_HIDDEN void
|
|
xmlErrMemory(xmlParserCtxtPtr ctxt, const char *extra);
|
|
XML_HIDDEN void
|
|
__xmlErrEncoding(xmlParserCtxtPtr ctxt, xmlParserErrors xmlerr,
|
|
const char *msg, const xmlChar *str1,
|
|
const xmlChar *str2) LIBXML_ATTR_FORMAT(3,0);
|
|
XML_HIDDEN void
|
|
xmlHaltParser(xmlParserCtxtPtr ctxt);
|
|
XML_HIDDEN int
|
|
xmlParserGrow(xmlParserCtxtPtr ctxt);
|
|
XML_HIDDEN void
|
|
xmlParserShrink(xmlParserCtxtPtr ctxt);
|
|
|
|
#endif /* XML_PARSER_H_PRIVATE__ */
|