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

Function vstateVPop

ThirdParty/libxml2/vtklibxml2/valid.c:255–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255static int
256vstateVPop(xmlValidCtxtPtr ctxt) {
257 xmlElementPtr elemDecl;
258
259 if (ctxt->vstateNr < 1) return(-1);
260 ctxt->vstateNr--;
261 elemDecl = ctxt->vstateTab[ctxt->vstateNr].elemDecl;
262 ctxt->vstateTab[ctxt->vstateNr].elemDecl = NULL;
263 ctxt->vstateTab[ctxt->vstateNr].node = NULL;
264 if ((elemDecl != NULL) && (elemDecl->etype == XML_ELEMENT_TYPE_ELEMENT)) {
265 xmlRegFreeExecCtxt(ctxt->vstateTab[ctxt->vstateNr].exec);
266 }
267 ctxt->vstateTab[ctxt->vstateNr].exec = NULL;
268 if (ctxt->vstateNr >= 1)
269 ctxt->vstate = &ctxt->vstateTab[ctxt->vstateNr - 1];
270 else
271 ctxt->vstate = NULL;
272 return(ctxt->vstateNr);
273}
274
275#else /* not LIBXML_REGEXP_ENABLED */
276/*

Callers 2

xmlValidateElementTypeFunction · 0.85
xmlValidatePopElementFunction · 0.85

Calls 1

xmlRegFreeExecCtxtFunction · 0.85

Tested by

no test coverage detected