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

Function valuePop

ThirdParty/libxml2/vtklibxml2/xpath.c:2047–2063  ·  view source on GitHub ↗

* valuePop: * @ctxt: an XPath evaluation context * * Pops the top XPath object from the value stack * * Returns the XPath object just removed */

Source from the content-addressed store, hash-verified

2045 * Returns the XPath object just removed
2046 */
2047xmlXPathObjectPtr
2048valuePop(xmlXPathParserContextPtr ctxt)
2049{
2050 xmlXPathObjectPtr ret;
2051
2052 if ((ctxt == NULL) || (ctxt->valueNr <= 0))
2053 return (NULL);
2054
2055 ctxt->valueNr--;
2056 if (ctxt->valueNr > 0)
2057 ctxt->value = ctxt->valueTab[ctxt->valueNr - 1];
2058 else
2059 ctxt->value = NULL;
2060 ret = ctxt->valueTab[ctxt->valueNr];
2061 ctxt->valueTab[ctxt->valueNr] = NULL;
2062 return (ret);
2063}
2064/**
2065 * valuePush:
2066 * @ctxt: an XPath evaluation context

Callers 15

xmlXPathPopBooleanFunction · 0.85
xmlXPathPopNumberFunction · 0.85
xmlXPathPopStringFunction · 0.85
xmlXPathPopNodeSetFunction · 0.85
xmlXPathPopExternalFunction · 0.85
xmlXPathEqualValuesFunction · 0.85
xmlXPathNotEqualValuesFunction · 0.85
xmlXPathCompareValuesFunction · 0.85
xmlXPathAddValuesFunction · 0.85
xmlXPathSubValuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected