Lines Matching refs:list

12  *    notice, this list of conditions and the following disclaimer.
14 * notice, this list of conditions and the following disclaimer in the
71 history_vfun_t h_clear; /* Clear the history list */
126 hentry_t list; /* Fake list header element */
127 hentry_t *cursor; /* Current element in the list */
175 "empty list",
213 h->cursor = h->list.next;
214 if (h->cursor != &h->list)
233 h->cursor = h->list.prev;
234 if (h->cursor != &h->list)
253 if (h->cursor == &h->list) {
258 if (h->cursor->next == &h->list) {
278 if (h->cursor == &h->list) {
284 if (h->cursor->prev == &h->list) {
304 if (h->cursor != &h->list)
329 if (h->cursor == &h->list || h->cursor->ev.num != n) {
330 for (h->cursor = h->list.next; h->cursor != &h->list;
335 if (h->cursor == &h->list) {
356 for (h->cursor = h->list.prev; h->cursor != &h->list;
360 if (h->cursor == &h->list) {
379 if (h->cursor == &h->list)
415 * Delete element hp of the h list
433 * Delete element hp of the h list
441 if (hp == &h->list)
445 if (h->cursor == &h->list)
457 * Insert element with string str in the h list
472 h->cursor->next = h->list.next;
473 h->cursor->prev = &h->list;
474 h->list.next->prev = h->cursor;
475 h->list.next = h->cursor;
494 if ((h->flags & H_UNIQUE) != 0 && h->list.next != &h->list &&
495 strcmp(h->list.next->ev.str, str) == 0)
503 * This way we don't have to check for the empty list.
506 history_def_delete(h, ev, h->list.prev);
528 h->list.next = h->list.prev = &h->list;
529 h->list.ev.str = NULL;
530 h->list.ev.num = 0;
531 h->cursor = &h->list;
546 while (h->list.prev != &h->list)
547 history_def_delete(h, ev, h->list.prev);