* htmlnamePop: * @ctxt: an HTML parser context * * Pops the top element name from the name stack * * Returns the name just removed */
| 146 | * Returns the name just removed |
| 147 | */ |
| 148 | static const xmlChar * |
| 149 | htmlnamePop(htmlParserCtxtPtr ctxt) |
| 150 | { |
| 151 | const xmlChar *ret; |
| 152 | |
| 153 | if (ctxt->nameNr <= 0) |
| 154 | return (NULL); |
| 155 | ctxt->nameNr--; |
| 156 | if (ctxt->nameNr < 0) |
| 157 | return (NULL); |
| 158 | if (ctxt->nameNr > 0) |
| 159 | ctxt->name = ctxt->nameTab[ctxt->nameNr - 1]; |
| 160 | else |
| 161 | ctxt->name = NULL; |
| 162 | ret = ctxt->nameTab[ctxt->nameNr]; |
| 163 | ctxt->nameTab[ctxt->nameNr] = NULL; |
| 164 | return (ret); |
| 165 | } |
| 166 | |
| 167 | /** |
| 168 | * htmlNodeInfoPush: |
no outgoing calls
no test coverage detected