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

Function xmlXPathNewCache

ThirdParty/libxml2/vtklibxml2/xpath.c:1554–1566  ·  view source on GitHub ↗

* xmlXPathNewCache: * * Create a new object cache * * Returns the xmlXPathCache just allocated. */

Source from the content-addressed store, hash-verified

1552 * Returns the xmlXPathCache just allocated.
1553 */
1554static xmlXPathContextCachePtr
1555xmlXPathNewCache(void)
1556{
1557 xmlXPathContextCachePtr ret;
1558
1559 ret = (xmlXPathContextCachePtr) xmlMalloc(sizeof(xmlXPathContextCache));
1560 if (ret == NULL)
1561 return(NULL);
1562 memset(ret, 0 , sizeof(xmlXPathContextCache));
1563 ret->maxNodeset = 100;
1564 ret->maxMisc = 100;
1565 return(ret);
1566}
1567
1568static void
1569xmlXPathCacheFreeObjectList(xmlXPathObjectPtr list)

Callers 1

xmlXPathContextSetCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected