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:
parent
5feb8495f4
commit
d0f7f74b47
@ -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
|
||||
|
@ -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) {
|
||||
|
3
parser.c
3
parser.c
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user