MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / htmlnamePop

Function htmlnamePop

Externals/LibXML/HTMLparser.c:189–206  ·  view source on GitHub ↗

* htmlnamePop: * @ctxt: an HTML parser context * * Pops the top element name from the name stack * * Returns the name just removed */

Source from the content-addressed store, hash-verified

187 * Returns the name just removed
188 */
189static const xmlChar *
190htmlnamePop(htmlParserCtxtPtr ctxt)
191{
192 const xmlChar *ret;
193
194 if (ctxt->nameNr <= 0)
195 return (NULL);
196 ctxt->nameNr--;
197 if (ctxt->nameNr < 0)
198 return (NULL);
199 if (ctxt->nameNr > 0)
200 ctxt->name = ctxt->nameTab[ctxt->nameNr - 1];
201 else
202 ctxt->name = NULL;
203 ret = ctxt->nameTab[ctxt->nameNr];
204 ctxt->nameTab[ctxt->nameNr] = NULL;
205 return (ret);
206}
207
208/*
209 * Macros for accessing the content. Those should be used only by the parser,

Callers 6

htmlAutoCloseOnCloseFunction · 0.85
htmlAutoCloseOnEndFunction · 0.85
htmlAutoCloseFunction · 0.85
htmlParseEndTagFunction · 0.85
htmlParseElementFunction · 0.85
htmlParseTryOrFinishFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected