mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-14 20:01:04 +03:00
Do a bit of bufferization in text mode, Daniel
This commit is contained in:
@ -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>
|
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
|
* nanoftp.c nanohttp.c tree.c HTMLtree.[ch] debugXML.c xpath.c: Fixed
|
||||||
|
@ -3527,6 +3527,7 @@ htmlParseChunk(htmlParserCtxtPtr ctxt, const char *chunk, int size,
|
|||||||
fprintf(stderr, "HPP: pushed %d\n", size);
|
fprintf(stderr, "HPP: pushed %d\n", size);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if ((terminate) || (ctxt->input->buf->buffer->use > 80))
|
||||||
htmlParseTryOrFinish(ctxt, terminate);
|
htmlParseTryOrFinish(ctxt, terminate);
|
||||||
} else if (ctxt->instate != XML_PARSER_EOF)
|
} else if (ctxt->instate != XML_PARSER_EOF)
|
||||||
htmlParseTryOrFinish(ctxt, terminate);
|
htmlParseTryOrFinish(ctxt, terminate);
|
||||||
|
1
parser.c
1
parser.c
@ -7755,6 +7755,7 @@ xmlParseChunk(xmlParserCtxtPtr ctxt, const char *chunk, int size,
|
|||||||
fprintf(stderr, "PP: pushed %d\n", size);
|
fprintf(stderr, "PP: pushed %d\n", size);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if ((terminate) || (ctxt->input->buf->buffer->use > 80))
|
||||||
xmlParseTryOrFinish(ctxt, terminate);
|
xmlParseTryOrFinish(ctxt, terminate);
|
||||||
} else if (ctxt->instate != XML_PARSER_EOF)
|
} else if (ctxt->instate != XML_PARSER_EOF)
|
||||||
xmlParseTryOrFinish(ctxt, terminate);
|
xmlParseTryOrFinish(ctxt, terminate);
|
||||||
|
Reference in New Issue
Block a user