mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-08-01 10:06:59 +03:00
More bugfixes due to DocBook:
- xpath.c: bug fix when context size is 0 - parser.c: I like Norm's Dtd because they still manage to break the parser occasionally Daniel
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
Sat Feb 17 14:18:42 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
||||||
|
|
||||||
|
* xpath.c: bug fix when context size is 0
|
||||||
|
* parser.c: I like Norm's Dtd because they still manage to break
|
||||||
|
the parser occasionally
|
||||||
|
|
||||||
Fri Feb 16 14:20:35 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
Fri Feb 16 14:20:35 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
||||||
|
|
||||||
* xpath.c: xmlXPathEqualNodeSetFloat the arg is really a double now
|
* xpath.c: xmlXPathEqualNodeSetFloat the arg is really a double now
|
||||||
|
2
parser.c
2
parser.c
@ -4221,6 +4221,8 @@ xmlParseElementDecl(xmlParserCtxtPtr ctxt) {
|
|||||||
ctxt->disableSAX = 1;
|
ctxt->disableSAX = 1;
|
||||||
return(-1);
|
return(-1);
|
||||||
}
|
}
|
||||||
|
while ((RAW == 0) && (ctxt->inputNr > 1))
|
||||||
|
xmlPopInput(ctxt);
|
||||||
if (!IS_BLANK(CUR)) {
|
if (!IS_BLANK(CUR)) {
|
||||||
ctxt->errNo = XML_ERR_SPACE_REQUIRED;
|
ctxt->errNo = XML_ERR_SPACE_REQUIRED;
|
||||||
if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL))
|
if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL))
|
||||||
|
2
xpath.c
2
xpath.c
@ -3374,7 +3374,7 @@ xmlXPathRoot(xmlXPathParserContextPtr ctxt) {
|
|||||||
void
|
void
|
||||||
xmlXPathLastFunction(xmlXPathParserContextPtr ctxt, int nargs) {
|
xmlXPathLastFunction(xmlXPathParserContextPtr ctxt, int nargs) {
|
||||||
CHECK_ARITY(0);
|
CHECK_ARITY(0);
|
||||||
if (ctxt->context->contextSize > 0) {
|
if (ctxt->context->contextSize >= 0) {
|
||||||
valuePush(ctxt, xmlXPathNewFloat((double) ctxt->context->contextSize));
|
valuePush(ctxt, xmlXPathNewFloat((double) ctxt->context->contextSize));
|
||||||
#ifdef DEBUG_EXPR
|
#ifdef DEBUG_EXPR
|
||||||
xmlGenericError(xmlGenericErrorContext,
|
xmlGenericError(xmlGenericErrorContext,
|
||||||
|
Reference in New Issue
Block a user