mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
- Push mode for the HTML parser (new calls)
- Improved the memory debugger to provide content informations - cleanups, last known mem leak killed Daniel
This commit is contained in:
11
parser.c
11
parser.c
@ -7180,7 +7180,7 @@ xmlParseTry(xmlParserCtxtPtr ctxt) {
|
||||
xmlParsePI(ctxt);
|
||||
} else if ((cur == '<') && (next == '!') &&
|
||||
(in->cur[2] == '-') && (in->cur[3] == '-')) {
|
||||
if (xmlParseLookupSequence(ctxt, '-', '>', 0) < 0)
|
||||
if (xmlParseLookupSequence(ctxt, '-', '-', '>') < 0)
|
||||
goto done;
|
||||
#ifdef DEBUG_PUSH
|
||||
fprintf(stderr, "PP: Parsing Comment\n");
|
||||
@ -7238,7 +7238,7 @@ xmlParseTry(xmlParserCtxtPtr ctxt) {
|
||||
xmlParsePI(ctxt);
|
||||
} else if ((cur == '<') && (next == '!') &&
|
||||
(in->cur[2] == '-') && (in->cur[3] == '-')) {
|
||||
if (xmlParseLookupSequence(ctxt, '-', '>', 0) < 0)
|
||||
if (xmlParseLookupSequence(ctxt, '-', '-', '>') < 0)
|
||||
goto done;
|
||||
#ifdef DEBUG_PUSH
|
||||
fprintf(stderr, "PP: Parsing Comment\n");
|
||||
@ -7275,7 +7275,7 @@ xmlParseTry(xmlParserCtxtPtr ctxt) {
|
||||
ctxt->instate = XML_PARSER_EPILOG;
|
||||
} else if ((cur == '<') && (next == '!') &&
|
||||
(in->cur[2] == '-') && (in->cur[3] == '-')) {
|
||||
if (xmlParseLookupSequence(ctxt, '-', '>', 0) < 0)
|
||||
if (xmlParseLookupSequence(ctxt, '-', '-', '>') < 0)
|
||||
goto done;
|
||||
#ifdef DEBUG_PUSH
|
||||
fprintf(stderr, "PP: Parsing Comment\n");
|
||||
@ -7425,7 +7425,7 @@ xmlParseTry(xmlParserCtxtPtr ctxt) {
|
||||
xmlParsePI(ctxt);
|
||||
} else if ((cur == '<') && (next == '!') &&
|
||||
(in->cur[2] == '-') && (in->cur[3] == '-')) {
|
||||
if (xmlParseLookupSequence(ctxt, '-', '>', 0) < 0)
|
||||
if (xmlParseLookupSequence(ctxt, '-', '-', '>') < 0)
|
||||
goto done;
|
||||
#ifdef DEBUG_PUSH
|
||||
fprintf(stderr, "PP: Parsing Comment\n");
|
||||
@ -7531,7 +7531,7 @@ xmlParseTry(xmlParserCtxtPtr ctxt) {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case XML_PARSER_END_TAG: {
|
||||
case XML_PARSER_END_TAG:
|
||||
if (avail < 2)
|
||||
goto done;
|
||||
if (xmlParseLookupSequence(ctxt, '>', 0, 0) < 0)
|
||||
@ -7549,7 +7549,6 @@ xmlParseTry(xmlParserCtxtPtr ctxt) {
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
}
|
||||
case XML_PARSER_DTD: {
|
||||
/*
|
||||
* Sorry but progressive parsing of the internal subset
|
||||
|
Reference in New Issue
Block a user