1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-11 12:58:16 +03:00

patch from Richard Jinks for .x float parsing. Daniel

* xpath.c: patch from Richard Jinks for .x float parsing.
Daniel
This commit is contained in:
Daniel Veillard 2002-04-10 11:30:41 +00:00
parent 46d6c44c8e
commit 01917aa1cb
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Wed Apr 10 13:29:49 CEST 2002 Daniel Veillard <daniel@veillard.com>
* xpath.c: patch from Richard Jinks for .x float parsing.
Tue Apr 9 18:09:31 CEST 2002 Daniel Veillard <daniel@veillard.com>
* parser.c: patch from Markus Henke when an encoding ain't recognized

View File

@ -7414,7 +7414,7 @@ xmlXPathCompPrimaryExpr(xmlXPathParserContextPtr ctxt) {
}
NEXT;
SKIP_BLANKS;
} else if (IS_DIGIT(CUR)) {
} else if (IS_DIGIT(CUR) || (CUR == '.' && IS_DIGIT(NXT(1)))) {
xmlXPathCompNumber(ctxt);
} else if ((CUR == '\'') || (CUR == '"')) {
xmlXPathCompLiteral(ctxt);
@ -7528,7 +7528,7 @@ xmlXPathCompPathExpr(xmlXPathParserContextPtr ctxt) {
SKIP_BLANKS;
if ((CUR == '$') || (CUR == '(') || (IS_DIGIT(CUR)) ||
(CUR == '\'') || (CUR == '"')) {
(CUR == '\'') || (CUR == '"') || (CUR == '.' && IS_DIGIT(NXT(1)))) {
lc = 0;
} else if (CUR == '*') {
/* relative or absolute location path */