* xmlXPathNewCache: * * Create a new object cache * * Returns the xmlXPathCache just allocated. */
| 1552 | * Returns the xmlXPathCache just allocated. |
| 1553 | */ |
| 1554 | static xmlXPathContextCachePtr |
| 1555 | xmlXPathNewCache(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 | |
| 1568 | static void |
| 1569 | xmlXPathCacheFreeObjectList(xmlXPathObjectPtr list) |
no outgoing calls
no test coverage detected