* inputPop: * @ctxt: an XML parser context * * Pops the top parser input from the input stack * * Returns the input just removed */
| 1986 | * Returns the input just removed |
| 1987 | */ |
| 1988 | xmlParserInputPtr |
| 1989 | inputPop(xmlParserCtxtPtr ctxt) |
| 1990 | { |
| 1991 | xmlParserInputPtr ret; |
| 1992 | |
| 1993 | if (ctxt == NULL) |
| 1994 | return(NULL); |
| 1995 | if (ctxt->inputNr <= 0) |
| 1996 | return (NULL); |
| 1997 | ctxt->inputNr--; |
| 1998 | if (ctxt->inputNr > 0) |
| 1999 | ctxt->input = ctxt->inputTab[ctxt->inputNr - 1]; |
| 2000 | else |
| 2001 | ctxt->input = NULL; |
| 2002 | ret = ctxt->inputTab[ctxt->inputNr]; |
| 2003 | ctxt->inputTab[ctxt->inputNr] = NULL; |
| 2004 | return (ret); |
| 2005 | } |
| 2006 | /** |
| 2007 | * nodePush: |
| 2008 | * @ctxt: an XML parser context |
no outgoing calls
no test coverage detected