• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/libedit/

Lines Matching defs:list

14  *    notice, this list of conditions and the following disclaimer.
16 * notice, this list of conditions and the following disclaimer in the
109 history_vfun_t h_clear; /* Clear the history list */
165 hentry_t list; /* Fake list header element */
166 hentry_t *cursor; /* Current element in the list */
214 STR("empty list"),
252 h->cursor = h->list.next;
253 if (h->cursor != &h->list)
272 h->cursor = h->list.prev;
273 if (h->cursor != &h->list)
292 if (h->cursor == &h->list) {
297 if (h->cursor->next == &h->list) {
317 if (h->cursor == &h->list) {
323 if (h->cursor->prev == &h->list) {
343 if (h->cursor != &h->list)
368 if (h->cursor == &h->list || h->cursor->ev.num != n) {
369 for (h->cursor = h->list.next; h->cursor != &h->list;
374 if (h->cursor == &h->list) {
395 for (h->cursor = h->list.prev; h->cursor != &h->list;
399 if (h->cursor == &h->list) {
418 if (h->cursor == &h->list)
457 * Delete element hp of the h list
475 * Delete element hp of the h list
483 if (hp == &h->list)
487 if (h->cursor == &h->list)
499 * Insert element with string str in the h list
515 c->next = h->list.next;
516 c->prev = &h->list;
517 h->list.next->prev = c;
518 h->list.next = c;
538 if ((h->flags & H_UNIQUE) != 0 && h->list.next != &h->list &&
539 Strcmp(h->list.next->ev.str, str) == 0)
547 * This way we don't have to check for the empty list.
550 history_def_delete(h, ev, h->list.prev);
572 h->list.next = h->list.prev = &h->list;
573 h->list.ev.str = NULL;
574 h->list.ev.num = 0;
575 h->cursor = &h->list;
590 while (h->list.prev != &h->list)
591 history_def_delete(h, ev, h->list.prev);
592 h->cursor = &h->list;