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

Function xmlRelaxNGIncludePop

ThirdParty/libxml2/vtklibxml2/relaxng.c:1498–1513  ·  view source on GitHub ↗

* xmlRelaxNGIncludePop: * @ctxt: the parser context * * Pops the top include from the include stack * * Returns the include just removed */

Source from the content-addressed store, hash-verified

1496 * Returns the include just removed
1497 */
1498static xmlRelaxNGIncludePtr
1499xmlRelaxNGIncludePop(xmlRelaxNGParserCtxtPtr ctxt)
1500{
1501 xmlRelaxNGIncludePtr ret;
1502
1503 if (ctxt->incNr <= 0)
1504 return (NULL);
1505 ctxt->incNr--;
1506 if (ctxt->incNr > 0)
1507 ctxt->inc = ctxt->incTab[ctxt->incNr - 1];
1508 else
1509 ctxt->inc = NULL;
1510 ret = ctxt->incTab[ctxt->incNr];
1511 ctxt->incTab[ctxt->incNr] = NULL;
1512 return (ret);
1513}
1514
1515/**
1516 * xmlRelaxNGRemoveRedefine:

Callers 1

xmlRelaxNGLoadIncludeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected