diff options
author | Thomas Broyer <tbroyer@src.gnome.org> | 2001-10-07 16:41:52 +0000 |
---|---|---|
committer | Thomas Broyer <tbroyer@src.gnome.org> | 2001-10-07 16:41:52 +0000 |
commit | 47334c09f4373e4cff71334e60a623fee73a525f (patch) | |
tree | 49611a62678a106ae1c2f1f8a4e7bd61859531a4 /include | |
parent | ac941e32125d5d8a96fe504329c0b17c58ecbd04 (diff) | |
download | libxml2-47334c09f4373e4cff71334e60a623fee73a525f.tar.gz |
implemented xmlXPathObjectCopy for external objects added
* xpath.c: implemented xmlXPathObjectCopy for external objects
* include/libxml/xpathInternals.h: added xmlXPathStackIsExternal
Diffstat (limited to 'include')
-rw-r--r-- | include/libxml/xpathInternals.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/libxml/xpathInternals.h b/include/libxml/xpathInternals.h index 77f2c505..b3e0afbe 100644 --- a/include/libxml/xpathInternals.h +++ b/include/libxml/xpathInternals.h @@ -205,6 +205,19 @@ void * xmlXPathPopExternal (xmlXPathParserContextPtr ctxt); || ((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 * |