implemented xmlXPathObjectCopy for external objects added
* xpath.c: implemented xmlXPathObjectCopy for external objects
* include/libxml/xpathInternals.h: added xmlXPathStackIsExternal
diff --git a/include/libxml/xpathInternals.h b/include/libxml/xpathInternals.h
index 77f2c50..b3e0afb 100644
--- a/include/libxml/xpathInternals.h
+++ b/include/libxml/xpathInternals.h
@@ -205,6 +205,19 @@
|| ((ctxt)->value->type == XPATH_XSLT_TREE)))
/**
+ * xmlXPathStackIsExternal:
+ * @ctxt: an XPath parser context
+ *
+ * Checks if the current value on the XPath stack is an external
+ * object.
+ *
+ * Returns true if the current object on the stack is an external
+ * object
+ */
+#define xmlXPathStackIsExternal(ctxt) \
+ ((ctxt->value != NULL) && (ctxt->value->type == XPATH_USERS))
+
+/**
* xmlXPathEmptyNodeSet:
* @ns: a node-set
*