Lines Matching refs:cursor

167 	hentry_t *cursor;	/* Current element in the list	*/  member
253 h->cursor = h->list.next; in history_def_first()
254 if (h->cursor != &h->list) in history_def_first()
255 *ev = h->cursor->ev; in history_def_first()
273 h->cursor = h->list.prev; in history_def_last()
274 if (h->cursor != &h->list) in history_def_last()
275 *ev = h->cursor->ev; in history_def_last()
293 if (h->cursor == &h->list) { in history_def_next()
298 if (h->cursor->next == &h->list) { in history_def_next()
303 h->cursor = h->cursor->next; in history_def_next()
304 *ev = h->cursor->ev; in history_def_next()
318 if (h->cursor == &h->list) { in history_def_prev()
324 if (h->cursor->prev == &h->list) { in history_def_prev()
329 h->cursor = h->cursor->prev; in history_def_prev()
330 *ev = h->cursor->ev; in history_def_prev()
344 if (h->cursor != &h->list) in history_def_curr()
345 *ev = h->cursor->ev; in history_def_curr()
369 if (h->cursor == &h->list || h->cursor->ev.num != n) { in history_def_set()
370 for (h->cursor = h->list.next; h->cursor != &h->list; in history_def_set()
371 h->cursor = h->cursor->next) in history_def_set()
372 if (h->cursor->ev.num == n) in history_def_set()
375 if (h->cursor == &h->list) { in history_def_set()
396 for (h->cursor = h->list.prev; h->cursor != &h->list; in history_set_nth()
397 h->cursor = h->cursor->prev) in history_set_nth()
400 if (h->cursor == &h->list) { in history_set_nth()
417 HistEventPrivate *evp = (void *)&h->cursor->ev; in history_def_add()
419 if (h->cursor == &h->list) in history_def_add()
434 *ev = h->cursor->ev; in history_def_add()
448 ev->str = Strdup(h->cursor->ev.str); in history_deldata_nth()
449 ev->num = h->cursor->ev.num; in history_deldata_nth()
451 *data = h->cursor->data; in history_deldata_nth()
452 history_def_delete(h, ev, h->cursor); in history_deldata_nth()
468 ev->str = Strdup(h->cursor->ev.str); in history_def_del()
469 ev->num = h->cursor->ev.num; in history_def_del()
470 history_def_delete(h, ev, h->cursor); in history_def_del()
486 if (h->cursor == hp) { in history_def_delete()
487 h->cursor = hp->prev; in history_def_delete()
488 if (h->cursor == &h->list) in history_def_delete()
489 h->cursor = hp->next; in history_def_delete()
521 h->cursor = c; in history_def_insert()
576 h->cursor = &h->list; in history_def_init()
593 h->cursor = &h->list; in history_def_clear()
932 *d = ((history_t *)h->h_ref)->cursor->data; in history_next_evdata()
1170 ((history_t *)h->h_ref)->cursor->ev.str = s; in FUNW()
1171 ((history_t *)h->h_ref)->cursor->data = d; in FUNW()