* namePop: * @ctxt: an XML parser context * * DEPRECATED: Internal function, do not use. * * Pops the top element name from the name stack * * Returns the name just removed */
| 2206 | * Returns the name just removed |
| 2207 | */ |
| 2208 | const xmlChar * |
| 2209 | namePop(xmlParserCtxtPtr ctxt) |
| 2210 | { |
| 2211 | const xmlChar *ret; |
| 2212 | |
| 2213 | if ((ctxt == NULL) || (ctxt->nameNr <= 0)) |
| 2214 | return (NULL); |
| 2215 | ctxt->nameNr--; |
| 2216 | if (ctxt->nameNr > 0) |
| 2217 | ctxt->name = ctxt->nameTab[ctxt->nameNr - 1]; |
| 2218 | else |
| 2219 | ctxt->name = NULL; |
| 2220 | ret = ctxt->nameTab[ctxt->nameNr]; |
| 2221 | ctxt->nameTab[ctxt->nameNr] = NULL; |
| 2222 | return (ret); |
| 2223 | } |
| 2224 | |
| 2225 | static int spacePush(xmlParserCtxtPtr ctxt, int val) { |
| 2226 | if (ctxt->spaceNr >= ctxt->spaceMax) { |
no outgoing calls
no test coverage detected