1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

- win32config.h.in: updated

- xmlversion.h.in: crap forgot to update this, this mean 2.1.0
  lacks iconv support :-( need to release 2.1.1
- configure.in: release 2.1.1
- HTMLparser: fixed bug #14784
- xpath.c HTMLparser.c encoding.c parser.c: fix warning raised
  by Windows compiler
- HTMLparser.c SAX.c HTMLtree.h tree.h: create HTML document in
  the SAX startDocument() callback.
- TODO: updated
- rebuild doc
Daniel
This commit is contained in:
Daniel Veillard
2000-06-30 17:58:25 +00:00
parent c230410ead
commit 3f6f7f64ce
36 changed files with 18670 additions and 2625 deletions

View File

@ -155,6 +155,8 @@ PUSH_AND_POP(extern, xmlChar*, name)
void
htmlNextChar(htmlParserCtxtPtr ctxt) {
if (ctxt->instate == XML_PARSER_EOF)
return;
if ((*ctxt->input->cur == 0) &&
(xmlParserInputGrow(ctxt->input, INPUT_CHUNK) <= 0)) {
xmlPopInput(ctxt);
@ -1024,7 +1026,7 @@ htmlDecodeEntities(htmlParserCtxtPtr ctxt, int len,
/*
* Ok loop until we reach one of the ending char or a size limit.
*/
while ((nbchars < max) && (CUR != end) &&
while ((nbchars < (int) max) && (CUR != end) &&
(CUR != end2) && (CUR != end3)) {
if (CUR == '&') {
@ -1421,7 +1423,8 @@ htmlParseHTMLName(htmlParserCtxtPtr ctxt) {
(CUR != ':')) return(NULL);
while ((i < HTML_PARSER_BUFFER_SIZE) &&
((IS_LETTER(CUR)) || (IS_DIGIT(CUR)))) {
((IS_LETTER(CUR)) || (IS_DIGIT(CUR)) ||
(CUR == ':') || (CUR == '_'))) {
if ((CUR >= 'A') && (CUR <= 'Z')) loc[i] = CUR + 0x20;
else loc[i] = CUR;
i++;
@ -2360,7 +2363,7 @@ failed:
if (atts[i] != NULL)
xmlFree((xmlChar *) atts[i]);
}
xmlFree(atts);
xmlFree((void *) atts);
}
if (name != NULL) xmlFree(name);
}
@ -2824,8 +2827,6 @@ htmlParseDocument(htmlParserCtxtPtr ctxt) {
*/
while ((CUR == '<') && (NXT(1) == '!') &&
(NXT(2) == '-') && (NXT(3) == '-')) {
if (ctxt->myDoc == NULL)
ctxt->myDoc = htmlNewDoc(NULL, NULL);
htmlParseComment(ctxt);
SKIP_BLANKS;
}