Index: gnome-xml/xpath.h =================================================================== RCS file: /cvs/gnome/gnome-xml/xpath.h,v retrieving revision 1.36 diff -u -r1.36 xpath.h --- gnome-xml/xpath.h 2001/04/27 17:12:56 1.36 +++ gnome-xml/xpath.h 2001/05/14 22:14:00 @@ -266,6 +266,15 @@ /** * Objects and Nodesets handling */ + /* These macros may later turn into functions */ +#define xmlXPathNodeSetGetLength(ns) ((ns) ? (ns)->nodeNr : 0) +#define xmlXPathNodeSetItem(ns, index) \ + (((ns) && + ((index) > 0) && ((index) <= (ns)->nodeNr)) ? + (ns)->nodeTab[(index)] + : NULL) + + void xmlXPathFreeObject (xmlXPathObjectPtr obj); xmlNodeSetPtr xmlXPathNodeSetCreate (xmlNodePtr val); void xmlXPathFreeNodeSetList (xmlXPathObjectPtr obj);