* nodePop: * @ctxt: an XML parser context * * DEPRECATED: Internal function, do not use. * * Pops the top element node from the node stack * * Returns the node just removed */
| 2059 | * Returns the node just removed |
| 2060 | */ |
| 2061 | xmlNodePtr |
| 2062 | nodePop(xmlParserCtxtPtr ctxt) |
| 2063 | { |
| 2064 | xmlNodePtr ret; |
| 2065 | |
| 2066 | if (ctxt == NULL) return(NULL); |
| 2067 | if (ctxt->nodeNr <= 0) |
| 2068 | return (NULL); |
| 2069 | ctxt->nodeNr--; |
| 2070 | if (ctxt->nodeNr > 0) |
| 2071 | ctxt->node = ctxt->nodeTab[ctxt->nodeNr - 1]; |
| 2072 | else |
| 2073 | ctxt->node = NULL; |
| 2074 | ret = ctxt->nodeTab[ctxt->nodeNr]; |
| 2075 | ctxt->nodeTab[ctxt->nodeNr] = NULL; |
| 2076 | return (ret); |
| 2077 | } |
| 2078 | |
| 2079 | /** |
| 2080 | * nameNsPush: |
no outgoing calls
no test coverage detected