Lines Matching refs:cursor
170 hentry_t *cursor; /* Current element in the list */ member
256 h->cursor = h->list.next; in history_def_first()
257 if (h->cursor != &h->list) in history_def_first()
258 *ev = h->cursor->ev; in history_def_first()
276 h->cursor = h->list.prev; in history_def_last()
277 if (h->cursor != &h->list) in history_def_last()
278 *ev = h->cursor->ev; in history_def_last()
296 if (h->cursor == &h->list) { in history_def_next()
301 if (h->cursor->next == &h->list) { in history_def_next()
306 h->cursor = h->cursor->next; in history_def_next()
307 *ev = h->cursor->ev; in history_def_next()
321 if (h->cursor == &h->list) { in history_def_prev()
327 if (h->cursor->prev == &h->list) { in history_def_prev()
332 h->cursor = h->cursor->prev; in history_def_prev()
333 *ev = h->cursor->ev; in history_def_prev()
347 if (h->cursor != &h->list) in history_def_curr()
348 *ev = h->cursor->ev; in history_def_curr()
372 if (h->cursor == &h->list || h->cursor->ev.num != n) { in history_def_set()
373 for (h->cursor = h->list.next; h->cursor != &h->list; in history_def_set()
374 h->cursor = h->cursor->next) in history_def_set()
375 if (h->cursor->ev.num == n) in history_def_set()
378 if (h->cursor == &h->list) { in history_def_set()
399 for (h->cursor = h->list.prev; h->cursor != &h->list; in history_set_nth()
400 h->cursor = h->cursor->prev) in history_set_nth()
403 if (h->cursor == &h->list) { in history_set_nth()
420 HistEventPrivate *evp = (void *)&h->cursor->ev; in history_def_add()
422 if (h->cursor == &h->list) in history_def_add()
437 *ev = h->cursor->ev; in history_def_add()
451 ev->str = Strdup(h->cursor->ev.str); in history_deldata_nth()
452 ev->num = h->cursor->ev.num; in history_deldata_nth()
454 *data = h->cursor->data; in history_deldata_nth()
455 history_def_delete(h, ev, h->cursor); in history_deldata_nth()
471 ev->str = Strdup(h->cursor->ev.str); in history_def_del()
472 ev->num = h->cursor->ev.num; in history_def_del()
473 history_def_delete(h, ev, h->cursor); in history_def_del()
489 if (h->cursor == hp) { in history_def_delete()
490 h->cursor = hp->prev; in history_def_delete()
491 if (h->cursor == &h->list) in history_def_delete()
492 h->cursor = hp->next; in history_def_delete()
524 h->cursor = c; in history_def_insert()
579 h->cursor = &h->list; in history_def_init()
596 h->cursor = &h->list; in history_def_clear()
935 *d = ((history_t *)h->h_ref)->cursor->data; in history_next_evdata()
1173 ((history_t *)h->h_ref)->cursor->ev.str = s; in FUNW()
1174 ((history_t *)h->h_ref)->cursor->data = d; in FUNW()