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

Function nodePop

ThirdParty/libxml2/vtklibxml2/parser.c:2061–2077  ·  view source on GitHub ↗

* nodePop: * @ctxt: an XML parser context * * DEPRECATED: Internal function, do not use. * * Pops the top element node from the node stack * * Returns the node just removed */

Source from the content-addressed store, hash-verified

2059 * Returns the node just removed
2060 */
2061xmlNodePtr
2062nodePop(xmlParserCtxtPtr ctxt)
2063{
2064 xmlNodePtr ret;
2065
2066 if (ctxt == NULL) return(NULL);
2067 if (ctxt->nodeNr <= 0)
2068 return (NULL);
2069 ctxt->nodeNr--;
2070 if (ctxt->nodeNr > 0)
2071 ctxt->node = ctxt->nodeTab[ctxt->nodeNr - 1];
2072 else
2073 ctxt->node = NULL;
2074 ret = ctxt->nodeTab[ctxt->nodeNr];
2075 ctxt->nodeTab[ctxt->nodeNr] = NULL;
2076 return (ret);
2077}
2078
2079/**
2080 * nameNsPush:

Callers 9

xmlSAX2EndElementFunction · 0.85
xmlSAX2EndElementNsFunction · 0.85
htmlParseElementFunction · 0.85
htmlParseElementInternalFunction · 0.85
htmlParseTryOrFinishFunction · 0.85
xmlParseContentInternalFunction · 0.85
xmlParseElementStartFunction · 0.85
parser.cFile · 0.85
xmlCtxtParseContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected