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

Function nodeVPop

ThirdParty/libxml2/vtklibxml2/valid.c:403–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401 return (ctxt->nodeNr++);
402}
403static xmlNodePtr
404nodeVPop(xmlValidCtxtPtr ctxt)
405{
406 xmlNodePtr ret;
407
408 if (ctxt->nodeNr <= 0)
409 return (NULL);
410 ctxt->nodeNr--;
411 if (ctxt->nodeNr > 0)
412 ctxt->node = ctxt->nodeTab[ctxt->nodeNr - 1];
413 else
414 ctxt->node = NULL;
415 ret = ctxt->nodeTab[ctxt->nodeNr];
416 ctxt->nodeTab[ctxt->nodeNr] = NULL;
417 return (ret);
418}
419
420/* TODO: use hash table for accesses to elem and attribute definitions */
421

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected