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

Function xmlXIncludeNewContext

ThirdParty/libxml2/vtklibxml2/xinclude.c:243–259  ·  view source on GitHub ↗

* xmlXIncludeNewContext: * @doc: an XML Document * * Creates a new XInclude context * * Returns the new set */

Source from the content-addressed store, hash-verified

241 * Returns the new set
242 */
243xmlXIncludeCtxtPtr
244xmlXIncludeNewContext(xmlDocPtr doc) {
245 xmlXIncludeCtxtPtr ret;
246
247 if (doc == NULL)
248 return(NULL);
249 ret = (xmlXIncludeCtxtPtr) xmlMalloc(sizeof(xmlXIncludeCtxt));
250 if (ret == NULL)
251 return(NULL);
252 memset(ret, 0, sizeof(xmlXIncludeCtxt));
253 ret->doc = doc;
254 ret->incNr = 0;
255 ret->incMax = 0;
256 ret->incTab = NULL;
257 ret->nbErrors = 0;
258 return(ret);
259}
260
261/**
262 * xmlXIncludeFreeContext:

Callers 4

xmlTextReaderReadFunction · 0.85
errParseTestFunction · 0.85

Calls

no outgoing calls

Tested by 1

errParseTestFunction · 0.68