Home | History | Annotate | Download | only in libxml2

Lines Matching defs:sto

3846 xmlSchemaFreeIDCStateObjList(xmlSchemaIDCStateObjPtr sto)
3849 while (sto != NULL) {
3850 next = sto->next;
3851 if (sto->history != NULL)
3852 xmlFree(sto->history);
3853 if (sto->xpathCtxt != NULL)
3854 xmlFreeStreamCtxt((xmlStreamCtxtPtr) sto->xpathCtxt);
3855 xmlFree(sto);
3856 sto = next;
22362 xmlSchemaIDCStateObjPtr sto;
22368 sto = vctxt->xpathStatePool;
22369 vctxt->xpathStatePool = sto->next;
22370 sto->next = NULL;
22375 sto = (xmlSchemaIDCStateObjPtr) xmlMalloc(sizeof(xmlSchemaIDCStateObj));
22376 if (sto == NULL) {
22381 memset(sto, 0, sizeof(xmlSchemaIDCStateObj));
22387 sto->next = vctxt->xpathStates;
22388 vctxt->xpathStates = sto;
22393 if (sto->xpathCtxt != NULL)
22394 xmlFreeStreamCtxt((xmlStreamCtxtPtr) sto->xpathCtxt);
22399 sto->xpathCtxt = (void *) xmlPatternGetStreamCtxt(
22401 if (sto->xpathCtxt == NULL) {
22406 sto->type = type;
22407 sto->depth = vctxt->depth;
22408 sto->matcher = matcher;
22409 sto->sel = sel;
22410 sto->nbHistory = 0;
22413 xmlGenericError(xmlGenericErrorContext, "IDC: STO push '%s'\n",
22414 sto->sel->xpath);
22433 xmlSchemaIDCStateObjPtr sto, head = NULL, first;
22455 sto = first;
22456 while (sto != head) {
22458 if (sto->type == XPATH_STATE_OBJ_TYPE_IDC_SELECTOR)
22460 sto->matcher->aidc->def->name, sto->sel->xpath);
22463 sto->matcher->aidc->def->name, sto->sel->xpath);
22466 res = xmlStreamPush((xmlStreamCtxtPtr) sto->xpathCtxt,
22469 res = xmlStreamPushAttr((xmlStreamCtxtPtr) sto->xpathCtxt,
22489 if (sto->history == NULL) {
22490 sto->history = (int *) xmlMalloc(5 * sizeof(int));
22491 if (sto->history == NULL) {
22496 sto->sizeHistory = 5;
22497 } else if (sto->sizeHistory <= sto->nbHistory) {
22498 sto->sizeHistory *= 2;
22499 sto->history = (int *) xmlRealloc(sto->history,
22500 sto->sizeHistory * sizeof(int));
22501 if (sto->history == NULL) {
22507 sto->history[sto->nbHistory++] = depth;
22514 if (sto->type == XPATH_STATE_OBJ_TYPE_IDC_SELECTOR) {
22524 sel = sto->matcher->aidc->def->fields;
22526 if (xmlSchemaIDCAddStateObject(vctxt, sto->matcher,
22531 } else if (sto->type == XPATH_STATE_OBJ_TYPE_IDC_FIELD) {
22551 if (sto->next == NULL) {
22556 sto = vctxt->xpathStates;
22558 sto = sto->next;
22610 xmlSchemaIDCStateObjPtr sto;
22615 sto = vctxt->xpathStates;
22617 res = xmlStreamPop((xmlStreamCtxtPtr) sto->xpathCtxt);
22620 sto = sto->next;
22621 } while (sto != NULL);
22640 xmlSchemaIDCStateObjPtr sto, nextsto;
22647 sto = vctxt->xpathStates;
22662 while (sto != NULL) {
22663 res = xmlStreamPop((xmlStreamCtxtPtr) sto->xpathCtxt);
22671 sto->sel->xpath);
22673 if (sto->nbHistory == 0)
22676 matchDepth = sto->history[sto->nbHistory -1];
22682 sto = sto->next;
22685 if (sto->type == XPATH_STATE_OBJ_TYPE_IDC_FIELD) {
22717 WXS_BASIC_CAST sto->matcher->aidc->def,
22720 sto->sel->xpath,
22721 xmlSchemaGetIDCDesignation(&str, sto->matcher->aidc->def));
22723 sto->nbHistory--;
22733 WXS_BASIC_CAST sto->matcher->aidc->def,
22736 sto->nbHistory--;
22739 xmlSchemaIDCMatcherPtr matcher = sto->matcher;
22761 pos = sto->depth - matcher->depth;
22762 idx = sto->sel->index;
22829 sto->sel->xpath,
22832 sto->nbHistory--;
22882 } else if (sto->type == XPATH_STATE_OBJ_TYPE_IDC_SELECTOR) {
22902 matcher = sto->matcher;
23097 sto->nbHistory--;
23103 if ((sto->nbHistory == 0) && (sto->depth == depth)) {
23105 xmlGenericError(xmlGenericErrorContext, "IDC: STO pop '%s'\n",
23106 sto->sel->xpath);
23108 if (vctxt->xpathStates != sto) {
23113 nextsto = sto->next;
23117 vctxt->xpathStates = sto->next;
23118 sto->next = vctxt->xpathStatePool;
23122 vctxt->xpathStatePool = sto;
23123 sto = nextsto;
23125 sto = sto->next;
23126 } /* while (sto != NULL) */