1
0
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:
Thomas Broyer
2001-07-31 23:30:37 +00:00
parent ba6db03c40
commit f186c8259a
3 changed files with 9 additions and 1 deletions

View File

@ -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>
* nanohttp.c: protected an use of EAGAIN, Brian Stafford

View File

@ -349,6 +349,8 @@ void xmlXPathDebugDumpCompExpr(FILE *output,
/**
* NodeSet handling
*/
int xmlXPathNodeSetContains (xmlNodeSetPtr cur,
xmlNodePtr val);
xmlNodeSetPtr xmlXPathDifference (xmlNodeSetPtr nodes1,
xmlNodeSetPtr nodes2);
xmlNodeSetPtr xmlXPathIntersection (xmlNodeSetPtr nodes1,

View File

@ -2186,7 +2186,7 @@ xmlXPathNodeTrailingSorted (xmlNodeSetPtr nodes, xmlNodePtr node) {
return(ret);
l = xmlXPathNodeSetGetLength(nodes);
for (i = 0; i < l; i++) {
for (i = l; i > 0; i--) {
cur = xmlXPathNodeSetItem(nodes, i);
if (cur == node)
break;