* xmlRelaxNGIncludePop: * @ctxt: the parser context * * Pops the top include from the include stack * * Returns the include just removed */
| 1496 | * Returns the include just removed |
| 1497 | */ |
| 1498 | static xmlRelaxNGIncludePtr |
| 1499 | xmlRelaxNGIncludePop(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: |
no outgoing calls
no test coverage detected