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:
parent
46d6c44c8e
commit
01917aa1cb
@ -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
|
||||
|
4
xpath.c
4
xpath.c
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user