From 496be6838858455849f48b048b954f04809dd6e3 Mon Sep 17 00:00:00 2001 From: Thomas Broyer Date: Sun, 15 Jul 2001 22:59:18 +0000 Subject: [PATCH] exported xmlXPath{NAN,PINF,NINF} fixed xmlXPathNodeSetItem when passing * include/libxml/xpath.h: exported xmlXPath{NAN,PINF,NINF} fixed xmlXPathNodeSetItem when passing index=0 --- ChangeLog | 5 +++++ include/libxml/xpath.h | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fb093318..5765cd7c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Jul 16 00:17:15 CEST 2001 Thomas Broyer + + * include/libxml/xpath.h: exported xmlXPath{NAN,PINF,NINF} + fixed xmlXPathNodeSetItem when passing index=0 + Sun Jul 15 17:58:44 CEST 2001 Daniel Veillard * include/libxml/xmlwin32version.h.in: added xmlCheckVersion() 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)