* xmlPopInput: * @ctxt: an XML parser context * * xmlPopInput: the current input pointed by ctxt->input came to an end * pop it and return the next char. * * Returns the current xmlChar in the parser context */
| 2534 | * Returns the current xmlChar in the parser context |
| 2535 | */ |
| 2536 | xmlChar |
| 2537 | xmlPopInput(xmlParserCtxtPtr ctxt) { |
| 2538 | xmlParserInputPtr input; |
| 2539 | |
| 2540 | if ((ctxt == NULL) || (ctxt->inputNr <= 1)) return(0); |
| 2541 | input = inputPop(ctxt); |
| 2542 | xmlFreeInputStream(input); |
| 2543 | if (*ctxt->input->cur == 0) |
| 2544 | xmlParserGrow(ctxt); |
| 2545 | return(CUR); |
| 2546 | } |
| 2547 | |
| 2548 | /** |
| 2549 | * xmlPushInput: |
no test coverage detected