MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlXPathWrapNodeSet

Function xmlXPathWrapNodeSet

ThirdParty/libxml2/vtklibxml2/xpath.c:3470–3483  ·  view source on GitHub ↗

* xmlXPathWrapNodeSet: * @val: the NodePtr value * * Wrap the Nodeset @val in a new xmlXPathObjectPtr * * Returns the newly created object. * * In case of error the node set is destroyed and NULL is returned. */

Source from the content-addressed store, hash-verified

3468 * In case of error the node set is destroyed and NULL is returned.
3469 */
3470xmlXPathObjectPtr
3471xmlXPathWrapNodeSet(xmlNodeSetPtr val) {
3472 xmlXPathObjectPtr ret;
3473
3474 ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject));
3475 if (ret == NULL) {
3476 xmlXPathFreeNodeSet(val);
3477 return(NULL);
3478 }
3479 memset(ret, 0 , sizeof(xmlXPathObject));
3480 ret->type = XPATH_NODESET;
3481 ret->nodesetval = val;
3482 return(ret);
3483}
3484
3485/**
3486 * xmlXPathFreeNodeSetList:

Callers 1

xmlXPathCacheWrapNodeSetFunction · 0.85

Calls 1

xmlXPathFreeNodeSetFunction · 0.85

Tested by

no test coverage detected