• Home
  • Raw
  • Download

Lines Matching refs:sto

3895 xmlSchemaFreeIDCStateObjList(xmlSchemaIDCStateObjPtr sto)  in xmlSchemaFreeIDCStateObjList()  argument
3898 while (sto != NULL) { in xmlSchemaFreeIDCStateObjList()
3899 next = sto->next; in xmlSchemaFreeIDCStateObjList()
3900 if (sto->history != NULL) in xmlSchemaFreeIDCStateObjList()
3901 xmlFree(sto->history); in xmlSchemaFreeIDCStateObjList()
3902 if (sto->xpathCtxt != NULL) in xmlSchemaFreeIDCStateObjList()
3903 xmlFreeStreamCtxt((xmlStreamCtxtPtr) sto->xpathCtxt); in xmlSchemaFreeIDCStateObjList()
3904 xmlFree(sto); in xmlSchemaFreeIDCStateObjList()
3905 sto = next; in xmlSchemaFreeIDCStateObjList()
22434 xmlSchemaIDCStateObjPtr sto; in xmlSchemaIDCAddStateObject() local
22440 sto = vctxt->xpathStatePool; in xmlSchemaIDCAddStateObject()
22441 vctxt->xpathStatePool = sto->next; in xmlSchemaIDCAddStateObject()
22442 sto->next = NULL; in xmlSchemaIDCAddStateObject()
22447 sto = (xmlSchemaIDCStateObjPtr) xmlMalloc(sizeof(xmlSchemaIDCStateObj)); in xmlSchemaIDCAddStateObject()
22448 if (sto == NULL) { in xmlSchemaIDCAddStateObject()
22453 memset(sto, 0, sizeof(xmlSchemaIDCStateObj)); in xmlSchemaIDCAddStateObject()
22459 sto->next = vctxt->xpathStates; in xmlSchemaIDCAddStateObject()
22460 vctxt->xpathStates = sto; in xmlSchemaIDCAddStateObject()
22465 if (sto->xpathCtxt != NULL) in xmlSchemaIDCAddStateObject()
22466 xmlFreeStreamCtxt((xmlStreamCtxtPtr) sto->xpathCtxt); in xmlSchemaIDCAddStateObject()
22471 sto->xpathCtxt = (void *) xmlPatternGetStreamCtxt( in xmlSchemaIDCAddStateObject()
22473 if (sto->xpathCtxt == NULL) { in xmlSchemaIDCAddStateObject()
22478 sto->type = type; in xmlSchemaIDCAddStateObject()
22479 sto->depth = vctxt->depth; in xmlSchemaIDCAddStateObject()
22480 sto->matcher = matcher; in xmlSchemaIDCAddStateObject()
22481 sto->sel = sel; in xmlSchemaIDCAddStateObject()
22482 sto->nbHistory = 0; in xmlSchemaIDCAddStateObject()
22486 sto->sel->xpath); in xmlSchemaIDCAddStateObject()
22505 xmlSchemaIDCStateObjPtr sto, head = NULL, first; in xmlSchemaXPathEvaluate() local
22527 sto = first; in xmlSchemaXPathEvaluate()
22528 while (sto != head) { in xmlSchemaXPathEvaluate()
22530 if (sto->type == XPATH_STATE_OBJ_TYPE_IDC_SELECTOR) in xmlSchemaXPathEvaluate()
22532 sto->matcher->aidc->def->name, sto->sel->xpath); in xmlSchemaXPathEvaluate()
22535 sto->matcher->aidc->def->name, sto->sel->xpath); in xmlSchemaXPathEvaluate()
22538 res = xmlStreamPush((xmlStreamCtxtPtr) sto->xpathCtxt, in xmlSchemaXPathEvaluate()
22541 res = xmlStreamPushAttr((xmlStreamCtxtPtr) sto->xpathCtxt, in xmlSchemaXPathEvaluate()
22561 if (sto->history == NULL) { in xmlSchemaXPathEvaluate()
22562 sto->history = (int *) xmlMalloc(5 * sizeof(int)); in xmlSchemaXPathEvaluate()
22563 if (sto->history == NULL) { in xmlSchemaXPathEvaluate()
22568 sto->sizeHistory = 5; in xmlSchemaXPathEvaluate()
22569 } else if (sto->sizeHistory <= sto->nbHistory) { in xmlSchemaXPathEvaluate()
22570 sto->sizeHistory *= 2; in xmlSchemaXPathEvaluate()
22571 sto->history = (int *) xmlRealloc(sto->history, in xmlSchemaXPathEvaluate()
22572 sto->sizeHistory * sizeof(int)); in xmlSchemaXPathEvaluate()
22573 if (sto->history == NULL) { in xmlSchemaXPathEvaluate()
22579 sto->history[sto->nbHistory++] = depth; in xmlSchemaXPathEvaluate()
22586 if (sto->type == XPATH_STATE_OBJ_TYPE_IDC_SELECTOR) { in xmlSchemaXPathEvaluate()
22596 sel = sto->matcher->aidc->def->fields; in xmlSchemaXPathEvaluate()
22598 if (xmlSchemaIDCAddStateObject(vctxt, sto->matcher, in xmlSchemaXPathEvaluate()
22603 } else if (sto->type == XPATH_STATE_OBJ_TYPE_IDC_FIELD) { in xmlSchemaXPathEvaluate()
22623 if (sto->next == NULL) { in xmlSchemaXPathEvaluate()
22628 sto = vctxt->xpathStates; in xmlSchemaXPathEvaluate()
22630 sto = sto->next; in xmlSchemaXPathEvaluate()
22682 xmlSchemaIDCStateObjPtr sto; in xmlSchemaXPathPop() local
22687 sto = vctxt->xpathStates; in xmlSchemaXPathPop()
22689 res = xmlStreamPop((xmlStreamCtxtPtr) sto->xpathCtxt); in xmlSchemaXPathPop()
22692 sto = sto->next; in xmlSchemaXPathPop()
22693 } while (sto != NULL); in xmlSchemaXPathPop()
22712 xmlSchemaIDCStateObjPtr sto, nextsto; in xmlSchemaXPathProcessHistory() local
22719 sto = vctxt->xpathStates; in xmlSchemaXPathProcessHistory()
22734 while (sto != NULL) { in xmlSchemaXPathProcessHistory()
22735 res = xmlStreamPop((xmlStreamCtxtPtr) sto->xpathCtxt); in xmlSchemaXPathProcessHistory()
22743 sto->sel->xpath); in xmlSchemaXPathProcessHistory()
22745 if (sto->nbHistory == 0) in xmlSchemaXPathProcessHistory()
22748 matchDepth = sto->history[sto->nbHistory -1]; in xmlSchemaXPathProcessHistory()
22754 sto = sto->next; in xmlSchemaXPathProcessHistory()
22757 if (sto->type == XPATH_STATE_OBJ_TYPE_IDC_FIELD) { in xmlSchemaXPathProcessHistory()
22789 WXS_BASIC_CAST sto->matcher->aidc->def, in xmlSchemaXPathProcessHistory()
22792 sto->sel->xpath, in xmlSchemaXPathProcessHistory()
22793 xmlSchemaGetIDCDesignation(&str, sto->matcher->aidc->def)); in xmlSchemaXPathProcessHistory()
22795 sto->nbHistory--; in xmlSchemaXPathProcessHistory()
22805 WXS_BASIC_CAST sto->matcher->aidc->def, in xmlSchemaXPathProcessHistory()
22808 sto->nbHistory--; in xmlSchemaXPathProcessHistory()
22811 xmlSchemaIDCMatcherPtr matcher = sto->matcher; in xmlSchemaXPathProcessHistory()
22833 pos = sto->depth - matcher->depth; in xmlSchemaXPathProcessHistory()
22834 idx = sto->sel->index; in xmlSchemaXPathProcessHistory()
22901 sto->sel->xpath, in xmlSchemaXPathProcessHistory()
22904 sto->nbHistory--; in xmlSchemaXPathProcessHistory()
22954 } else if (sto->type == XPATH_STATE_OBJ_TYPE_IDC_SELECTOR) { in xmlSchemaXPathProcessHistory()
22974 matcher = sto->matcher; in xmlSchemaXPathProcessHistory()
23169 sto->nbHistory--; in xmlSchemaXPathProcessHistory()
23175 if ((sto->nbHistory == 0) && (sto->depth == depth)) { in xmlSchemaXPathProcessHistory()
23178 sto->sel->xpath); in xmlSchemaXPathProcessHistory()
23180 if (vctxt->xpathStates != sto) { in xmlSchemaXPathProcessHistory()
23185 nextsto = sto->next; in xmlSchemaXPathProcessHistory()
23189 vctxt->xpathStates = sto->next; in xmlSchemaXPathProcessHistory()
23190 sto->next = vctxt->xpathStatePool; in xmlSchemaXPathProcessHistory()
23194 vctxt->xpathStatePool = sto; in xmlSchemaXPathProcessHistory()
23195 sto = nextsto; in xmlSchemaXPathProcessHistory()
23197 sto = sto->next; in xmlSchemaXPathProcessHistory()