1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-10 08:58:16 +03:00

Do a bit of bufferization in text mode, Daniel

This commit is contained in:
Daniel Veillard 2000-02-02 17:42:48 +00:00
parent 5feb8495f4
commit d0f7f74b47
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Thu Feb 3 16:36:39 CET 2000 Daniel Veillard <Daniel.Veillard@w3.org>
* parser.c HTMLparser.c: do a bit of bufferization in push mode.
Thu Feb 3 15:59:37 CET 2000 Daniel Veillard <Daniel.Veillard@w3.org>
* nanoftp.c nanohttp.c tree.c HTMLtree.[ch] debugXML.c xpath.c: Fixed

View File

@ -3527,7 +3527,8 @@ htmlParseChunk(htmlParserCtxtPtr ctxt, const char *chunk, int size,
fprintf(stderr, "HPP: pushed %d\n", size);
#endif
htmlParseTryOrFinish(ctxt, terminate);
if ((terminate) || (ctxt->input->buf->buffer->use > 80))
htmlParseTryOrFinish(ctxt, terminate);
} else if (ctxt->instate != XML_PARSER_EOF)
htmlParseTryOrFinish(ctxt, terminate);
if (terminate) {

View File

@ -7755,7 +7755,8 @@ xmlParseChunk(xmlParserCtxtPtr ctxt, const char *chunk, int size,
fprintf(stderr, "PP: pushed %d\n", size);
#endif
xmlParseTryOrFinish(ctxt, terminate);
if ((terminate) || (ctxt->input->buf->buffer->use > 80))
xmlParseTryOrFinish(ctxt, terminate);
} else if (ctxt->instate != XML_PARSER_EOF)
xmlParseTryOrFinish(ctxt, terminate);
if (terminate) {