Lines Matching +defs:val +defs:list

154  * Returns the index of the node in its parent children list, -1
601 * @val: an initial xmlXPathObjectPtr, or NULL
603 * Create a new xmlLocationSetPtr of type double and of value @val
608 xmlXPtrLocationSetCreate(xmlXPathObjectPtr val) {
617 if (val != NULL) {
628 ret->locTab[ret->locNr++] = val;
636 * @val: a new xmlXPathObjectPtr
639 * If the location already exist in the set @val is freed.
642 xmlXPtrLocationSetAdd(xmlLocationSetPtr cur, xmlXPathObjectPtr val) {
645 if ((cur == NULL) || (val == NULL)) return;
651 if (xmlXPtrRangesEqual(cur->locTab[i], val)) {
652 xmlXPathFreeObject(val);
682 cur->locTab[cur->locNr++] = val;
715 * @val: an xmlXPathObjectPtr
720 xmlXPtrLocationSetDel(xmlLocationSetPtr cur, xmlXPathObjectPtr val) {
724 if (val == NULL) return;
730 if (cur->locTab[i] == val) break;
748 * @val: the index to remove
750 * Removes an entry from an existing LocationSet list.
753 xmlXPtrLocationSetRemove(xmlLocationSetPtr cur, int val) {
755 if (val >= cur->locNr) return;
757 for (;val < cur->locNr;val++)
758 cur->locTab[val] = cur->locTab[val + 1];
849 * @val: the LocationSet value
851 * Wrap the LocationSet @val in a new xmlXPathObjectPtr
856 xmlXPtrWrapLocationSet(xmlLocationSetPtr val) {
866 ret->user = (void *) val;
902 #define SKIP(val) ctxt->cur += (val)
903 #define NXT(val) ctxt->cur[(val)]
1419 * Build a node list tree copy of the range
1421 * Returns an xmlNodePtr list or NULL.
1427 xmlNodePtr list = NULL, last = NULL, parent = NULL, tmp;
1467 if (list == NULL)
1474 return(list);
1477 if (list == NULL)
1478 list = tmp;
1504 (list == NULL) /* looks superfluous but ... */ ) {
1517 last = list = tmp;
1521 list = tmp;
1532 list = tmp;
1561 if ((list == NULL) || ((last == NULL) && (parent == NULL))) {
1576 if ((list == NULL) || ((last == NULL) && (parent == NULL))) {
1582 return(list);
1589 * Build a node list tree copy of the XPointer result.
1592 * Returns an xmlNodePtr list or NULL.
1597 xmlNodePtr list = NULL, last = NULL;
1638 list = last = xmlCopyNode(set->nodeTab[i], 1);
1653 list = last = xmlXPtrBuildNodeList(set->locTab[i]);
1671 return(list);
2242 * Run the evaluation with a node list made of a single item
2810 * the list of location set corresponding to that search
2942 * Run the evaluation with a node list made of a single item