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

Function namePop

ThirdParty/libxml2/vtklibxml2/parser.c:2208–2223  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2206 * Returns the name just removed
2207 */
2208const xmlChar *
2209namePop(xmlParserCtxtPtr ctxt)
2210{
2211 const xmlChar *ret;
2212
2213 if ((ctxt == NULL) || (ctxt->nameNr <= 0))
2214 return (NULL);
2215 ctxt->nameNr--;
2216 if (ctxt->nameNr > 0)
2217 ctxt->name = ctxt->nameTab[ctxt->nameNr - 1];
2218 else
2219 ctxt->name = NULL;
2220 ret = ctxt->nameTab[ctxt->nameNr];
2221 ctxt->nameTab[ctxt->nameNr] = NULL;
2222 return (ret);
2223}
2224
2225static int spacePush(xmlParserCtxtPtr ctxt, int val) {
2226 if (ctxt->spaceNr >= ctxt->spaceMax) {

Callers 5

xmlParseEndTag1Function · 0.85
xmlParseContentInternalFunction · 0.85
xmlParseElementStartFunction · 0.85
xmlParseElementEndFunction · 0.85
xmlCtxtParseContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected