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

Function xmlXPtrWrapLocationSet

ThirdParty/libxml2/vtklibxml2/xpointer.c:817–830  ·  view source on GitHub ↗

* xmlXPtrWrapLocationSet: * @val: the LocationSet value * * Wrap the LocationSet @val in a new xmlXPathObjectPtr * * Returns the newly created object. */

Source from the content-addressed store, hash-verified

815 * Returns the newly created object.
816 */
817xmlXPathObjectPtr
818xmlXPtrWrapLocationSet(xmlLocationSetPtr val) {
819 xmlXPathObjectPtr ret;
820
821 ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject));
822 if (ret == NULL) {
823 xmlXPtrErrMemory("allocating locationset");
824 return(NULL);
825 }
826 memset(ret, 0, sizeof(xmlXPathObject));
827 ret->type = XPATH_LOCATIONSET;
828 ret->user = (void *) val;
829 return(ret);
830}
831#endif /* LIBXML_XPTR_LOCS_ENABLED */
832
833/************************************************************************

Callers 6

xmlXPtrEndPointFunctionFunction · 0.70
xmlXPtrRangeFunctionFunction · 0.70

Calls 1

xmlXPtrErrMemoryFunction · 0.85

Tested by

no test coverage detected