Home | History | Annotate | Download | only in utils

Lines Matching full:item

73 /* Return TRUE iff an ARefList has no item */
80 /* Return the index of 'item' in the ARefList, or -1.
81 * This returns -1 if 'item' is NULL.
83 int areflist_indexOf(const ARefList* l, void* item);
85 /* Return TRUE iff an ARefList contains 'item' */
87 areflist_has(const ARefList* l, void* item)
89 return areflist_indexOf(l, item) >= 0;
92 /* Append 'item' to a list. An item can be added several
93 * times to the same list. Do nothing if 'item' is NULL. */
94 void areflist_add(ARefList* l, void* item);
96 /* Remove first instance of 'item' from an ARefList.
97 * Returns TRUE iff the item was found in the list. */
98 ABool areflist_delFirst(ARefList* l, void* item);
100 /* Remove all instances of 'item' from an ARefList.
101 * returns TRUE iff the item was found in the list */
102 ABool areflist_delAll(ARefList* l, void* item);
106 areflist_push(ARefList* l, void* item)
108 areflist_add(l, item);
111 /* Remove last item from an ARefList and return it.
202 #define AREFLIST_SET_ITERATED(item) \
203 ({ *__reflist_at = (item); \
204 if (item == NULL) _reflist->iteration |= 1; })