summaryrefslogtreecommitdiff
path: root/include/libxml
diff options
context:
space:
mode:
authorThomas Broyer <tbroyer@src.gnome.org>2001-07-15 22:59:18 +0000
committerThomas Broyer <tbroyer@src.gnome.org>2001-07-15 22:59:18 +0000
commit496be6838858455849f48b048b954f04809dd6e3 (patch)
tree56543d03d6e6c8e4651f9c2a7a977a8f2ac9f969 /include/libxml
parent05dec3443909fa6176fbbdd69b32b60ead7cc0ce (diff)
downloadlibxml2-496be6838858455849f48b048b954f04809dd6e3.tar.gz
exported xmlXPath{NAN,PINF,NINF} fixed xmlXPathNodeSetItem when passing
* include/libxml/xpath.h: exported xmlXPath{NAN,PINF,NINF} fixed xmlXPathNodeSetItem when passing index=0
Diffstat (limited to 'include/libxml')
-rw-r--r--include/libxml/xpath.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/libxml/xpath.h b/include/libxml/xpath.h
index 7a1ec75a..87a6118b 100644
--- a/include/libxml/xpath.h
+++ b/include/libxml/xpath.h
@@ -283,11 +283,15 @@ typedef void (*xmlXPathFunction) (xmlXPathParserContextPtr ctxt, int nargs);
* Objects and Nodesets handling
*/
+LIBXML_DLL_IMPORT extern double xmlXPathNAN;
+LIBXML_DLL_IMPORT extern double xmlXPathPINF;
+LIBXML_DLL_IMPORT extern double xmlXPathNINF;
+
/* These macros may later turn into functions */
#define xmlXPathNodeSetGetLength(ns) ((ns) ? (ns)->nodeNr : 0)
#define xmlXPathNodeSetItem(ns, index) \
((((ns) != NULL) && \
- ((index) > 0) && ((index) <= (ns)->nodeNr)) ? \
+ ((index) >= 0) && ((index) < (ns)->nodeNr)) ? \
(ns)->nodeTab[(index)] \
: NULL)