mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
fixed a bug in xmlXPathNodeTrailingSorted (for now it worked like the
* xpath.c: fixed a bug in xmlXPathNodeTrailingSorted (for now it worked like the set:leading() function) * include/libxml/xpathInternals.h: added xmlXPathNodeSetContains
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
Wed Aug 1 01:33:35 CEST 2001 Thomas Broyer <tbroyer@ltgt.net>
|
||||||
|
|
||||||
|
* xpath.c: fixed a bug in xmlXPathNodeTrailingSorted (for now it
|
||||||
|
worked like the set:leading() function)
|
||||||
|
* include/libxml/xpathInternals.h: added xmlXPathNodeSetContains
|
||||||
|
|
||||||
Tue Jul 31 18:24:34 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
Tue Jul 31 18:24:34 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
||||||
|
|
||||||
* nanohttp.c: protected an use of EAGAIN, Brian Stafford
|
* nanohttp.c: protected an use of EAGAIN, Brian Stafford
|
||||||
|
@ -349,6 +349,8 @@ void xmlXPathDebugDumpCompExpr(FILE *output,
|
|||||||
/**
|
/**
|
||||||
* NodeSet handling
|
* NodeSet handling
|
||||||
*/
|
*/
|
||||||
|
int xmlXPathNodeSetContains (xmlNodeSetPtr cur,
|
||||||
|
xmlNodePtr val);
|
||||||
xmlNodeSetPtr xmlXPathDifference (xmlNodeSetPtr nodes1,
|
xmlNodeSetPtr xmlXPathDifference (xmlNodeSetPtr nodes1,
|
||||||
xmlNodeSetPtr nodes2);
|
xmlNodeSetPtr nodes2);
|
||||||
xmlNodeSetPtr xmlXPathIntersection (xmlNodeSetPtr nodes1,
|
xmlNodeSetPtr xmlXPathIntersection (xmlNodeSetPtr nodes1,
|
||||||
|
2
xpath.c
2
xpath.c
@ -2186,7 +2186,7 @@ xmlXPathNodeTrailingSorted (xmlNodeSetPtr nodes, xmlNodePtr node) {
|
|||||||
return(ret);
|
return(ret);
|
||||||
|
|
||||||
l = xmlXPathNodeSetGetLength(nodes);
|
l = xmlXPathNodeSetGetLength(nodes);
|
||||||
for (i = 0; i < l; i++) {
|
for (i = l; i > 0; i--) {
|
||||||
cur = xmlXPathNodeSetItem(nodes, i);
|
cur = xmlXPathNodeSetItem(nodes, i);
|
||||||
if (cur == node)
|
if (cur == node)
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user