MCPcopy Create free account
hub / github.com/Kitware/VTK / htmlNodeInfoPop

Function htmlNodeInfoPop

ThirdParty/libxml2/vtklibxml2/HTMLparser.c:205–218  ·  view source on GitHub ↗

* htmlNodeInfoPop: * @ctxt: an HTML parser context * * Pops the top element name from the node info stack * * Returns 0 in case of error, the pointer to NodeInfo otherwise */

Source from the content-addressed store, hash-verified

203 * Returns 0 in case of error, the pointer to NodeInfo otherwise
204 */
205static htmlParserNodeInfo *
206htmlNodeInfoPop(htmlParserCtxtPtr ctxt)
207{
208 if (ctxt->nodeInfoNr <= 0)
209 return (NULL);
210 ctxt->nodeInfoNr--;
211 if (ctxt->nodeInfoNr < 0)
212 return (NULL);
213 if (ctxt->nodeInfoNr > 0)
214 ctxt->nodeInfo = &ctxt->nodeInfoTab[ctxt->nodeInfoNr - 1];
215 else
216 ctxt->nodeInfo = NULL;
217 return &ctxt->nodeInfoTab[ctxt->nodeInfoNr];
218}
219
220/*
221 * Macros for accessing the content. Those should be used only by the parser,

Callers 2

htmlParseEndTagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected