Lines Matching refs:cursor
131 hentry_t *cursor; /* Current element in the list */ member
217 h->cursor = h->list.next; in history_def_first()
218 if (h->cursor != &h->list) in history_def_first()
219 *ev = h->cursor->ev; in history_def_first()
237 h->cursor = h->list.prev; in history_def_last()
238 if (h->cursor != &h->list) in history_def_last()
239 *ev = h->cursor->ev; in history_def_last()
257 if (h->cursor == &h->list) { in history_def_next()
262 if (h->cursor->next == &h->list) { in history_def_next()
267 h->cursor = h->cursor->next; in history_def_next()
268 *ev = h->cursor->ev; in history_def_next()
282 if (h->cursor == &h->list) { in history_def_prev()
288 if (h->cursor->prev == &h->list) { in history_def_prev()
293 h->cursor = h->cursor->prev; in history_def_prev()
294 *ev = h->cursor->ev; in history_def_prev()
308 if (h->cursor != &h->list) in history_def_curr()
309 *ev = h->cursor->ev; in history_def_curr()
333 if (h->cursor == &h->list || h->cursor->ev.num != n) { in history_def_set()
334 for (h->cursor = h->list.next; h->cursor != &h->list; in history_def_set()
335 h->cursor = h->cursor->next) in history_def_set()
336 if (h->cursor->ev.num == n) in history_def_set()
339 if (h->cursor == &h->list) { in history_def_set()
360 for (h->cursor = h->list.prev; h->cursor != &h->list; in history_set_nth()
361 h->cursor = h->cursor->prev) in history_set_nth()
364 if (h->cursor == &h->list) { in history_set_nth()
381 HistEventPrivate *evp = (void *)&h->cursor->ev; in history_def_add()
383 if (h->cursor == &h->list) in history_def_add()
391 (void) Strncpy(s, h->cursor->ev.str, len); in history_def_add()
396 *ev = h->cursor->ev; in history_def_add()
410 ev->str = Strdup(h->cursor->ev.str); in history_deldata_nth()
411 ev->num = h->cursor->ev.num; in history_deldata_nth()
413 *data = h->cursor->data; in history_deldata_nth()
414 history_def_delete(h, ev, h->cursor); in history_deldata_nth()
430 ev->str = Strdup(h->cursor->ev.str); in history_def_del()
431 ev->num = h->cursor->ev.num; in history_def_del()
432 history_def_delete(h, ev, h->cursor); in history_def_del()
448 if (h->cursor == hp) { in history_def_delete()
449 h->cursor = hp->prev; in history_def_delete()
450 if (h->cursor == &h->list) in history_def_delete()
451 h->cursor = hp->next; in history_def_delete()
483 h->cursor = c; in history_def_insert()
538 h->cursor = &h->list; in history_def_init()
555 h->cursor = &h->list; in history_def_clear()
881 *d = ((history_t *)h->h_ref)->cursor->data; in history_next_evdata()
1110 ((history_t *)h->h_ref)->cursor->ev.str = s; in FUNW()
1111 ((history_t *)h->h_ref)->cursor->data = d; in FUNW()