mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-08-07 06:43:02 +03:00
- xpath.c: fixed "*" (unbelievable !) and a couple of warnings
Daniel
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
Mon Feb 19 10:59:41 CET 2001 Bjorn Reese <breese@users.sourceforge.net>
|
||||||
|
|
||||||
|
* xpath.c: fixed "*" (unbelievable !) and a couple of warnings
|
||||||
|
|
||||||
Sun Feb 18 17:52:37 MET 2001 Bjorn Reese <breese@users.sourceforge.net>
|
Sun Feb 18 17:52:37 MET 2001 Bjorn Reese <breese@users.sourceforge.net>
|
||||||
|
|
||||||
* xpath.c: fixed whitespace handling in xmlXPathStringEvalNumber,
|
* xpath.c: fixed whitespace handling in xmlXPathStringEvalNumber,
|
||||||
|
7
xpath.c
7
xpath.c
@@ -3309,7 +3309,7 @@ xmlXPathNodeCollectAndTest(xmlXPathParserContextPtr ctxt, xmlXPathAxisVal axis,
|
|||||||
#ifdef DEBUG_STEP
|
#ifdef DEBUG_STEP
|
||||||
n++;
|
n++;
|
||||||
#endif
|
#endif
|
||||||
addNode(ret, attr);
|
addNode(ret, (xmlNodePtr) attr);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((attr->ns != NULL) &&
|
if ((attr->ns != NULL) &&
|
||||||
@@ -3318,7 +3318,7 @@ xmlXPathNodeCollectAndTest(xmlXPathParserContextPtr ctxt, xmlXPathAxisVal axis,
|
|||||||
#ifdef DEBUG_STEP
|
#ifdef DEBUG_STEP
|
||||||
n++;
|
n++;
|
||||||
#endif
|
#endif
|
||||||
addNode(ret, attr);
|
addNode(ret, (xmlNodePtr) attr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -5149,6 +5149,9 @@ xmlXPathEvalPathExpr(xmlXPathParserContextPtr ctxt) {
|
|||||||
if ((CUR == '$') || (CUR == '(') || (IS_DIGIT(CUR)) ||
|
if ((CUR == '$') || (CUR == '(') || (IS_DIGIT(CUR)) ||
|
||||||
(CUR == '\'') || (CUR == '"')) {
|
(CUR == '\'') || (CUR == '"')) {
|
||||||
lc = 0;
|
lc = 0;
|
||||||
|
} else if (CUR == '*') {
|
||||||
|
/* relative or absolute location path */
|
||||||
|
lc = 1;
|
||||||
} else if (CUR == '/') {
|
} else if (CUR == '/') {
|
||||||
/* relative or absolute location path */
|
/* relative or absolute location path */
|
||||||
lc = 1;
|
lc = 1;
|
||||||
|
Reference in New Issue
Block a user