1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-13 09:01:53 +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> 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

View File

@ -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);

View File

@ -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);