| 253 | } |
| 254 | |
| 255 | static int |
| 256 | vstateVPop(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 | /* |
no test coverage detected