Lines Matching refs:vstateTab
270 if ((ctxt->vstateMax == 0) || (ctxt->vstateTab == NULL)) {
272 ctxt->vstateTab = (xmlValidState *) xmlMalloc(ctxt->vstateMax *
273 sizeof(ctxt->vstateTab[0]));
274 if (ctxt->vstateTab == NULL) {
283 tmp = (xmlValidState *) xmlRealloc(ctxt->vstateTab,
284 2 * ctxt->vstateMax * sizeof(ctxt->vstateTab[0]));
290 ctxt->vstateTab = tmp;
292 ctxt->vstate = &ctxt->vstateTab[ctxt->vstateNr];
293 ctxt->vstateTab[ctxt->vstateNr].elemDecl = elemDecl;
294 ctxt->vstateTab[ctxt->vstateNr].node = node;
299 ctxt->vstateTab[ctxt->vstateNr].exec =
302 ctxt->vstateTab[ctxt->vstateNr].exec = NULL;
318 elemDecl = ctxt->vstateTab[ctxt->vstateNr].elemDecl;
319 ctxt->vstateTab[ctxt->vstateNr].elemDecl = NULL;
320 ctxt->vstateTab[ctxt->vstateNr].node = NULL;
322 xmlRegFreeExecCtxt(ctxt->vstateTab[ctxt->vstateNr].exec);
324 ctxt->vstateTab[ctxt->vstateNr].exec = NULL;
326 ctxt->vstate = &ctxt->vstateTab[ctxt->vstateNr - 1];
377 if (ctxt->vstateTab == NULL) {
379 ctxt->vstateTab = (xmlValidState *) xmlMalloc(
380 ctxt->vstateMax * sizeof(ctxt->vstateTab[0]));
381 if (ctxt->vstateTab == NULL) {
389 tmp = (xmlValidState *) xmlRealloc(ctxt->vstateTab,
390 2 * ctxt->vstateMax * sizeof(ctxt->vstateTab[0]));
396 ctxt->vstateTab = tmp;
397 ctxt->vstate = &ctxt->vstateTab[0];
402 if ((i >= 0) && (ctxt->vstateTab[i].cont == cont) &&
403 (ctxt->vstateTab[i].node == node) &&
404 (ctxt->vstateTab[i].depth == depth) &&
405 (ctxt->vstateTab[i].occurs == occurs) &&
406 (ctxt->vstateTab[i].state == state))
408 ctxt->vstateTab[ctxt->vstateNr].cont = cont;
409 ctxt->vstateTab[ctxt->vstateNr].node = node;
410 ctxt->vstateTab[ctxt->vstateNr].depth = depth;
411 ctxt->vstateTab[ctxt->vstateNr].occurs = occurs;
412 ctxt->vstateTab[ctxt->vstateNr].state = state;
420 ctxt->vstate = &ctxt->vstateTab[0];
421 ctxt->vstate->cont = ctxt->vstateTab[ctxt->vstateNr].cont;
422 ctxt->vstate->node = ctxt->vstateTab[ctxt->vstateNr].node;
423 ctxt->vstate->depth = ctxt->vstateTab[ctxt->vstateNr].depth;
424 ctxt->vstate->occurs = ctxt->vstateTab[ctxt->vstateNr].occurs;
425 ctxt->vstate->state = ctxt->vstateTab[ctxt->vstateNr].state;
610 xmlValidDebugState(&ctxt->vstateTab[j]);
898 if (cur->vstateTab != NULL)
899 xmlFree(cur->vstateTab);
5241 ctxt->vstateTab = (xmlValidState *) xmlMalloc(
5242 ctxt->vstateMax * sizeof(ctxt->vstateTab[0]));
5243 if (ctxt->vstateTab == NULL) {
5253 ctxt->vstate = &ctxt->vstateTab[0];
5342 ctxt->vstate = &ctxt->vstateTab[0];
5403 if (ctxt->vstateTab != NULL) {
5404 xmlFree(ctxt->vstateTab);
5405 ctxt->vstateTab = NULL;