Lines Matching refs:history
141 * Code for line history.
164 #include <history.h>
803 * Substitute the currently edited line with the next or previous history
810 if (h->history.len <= 1) return;
817 // Update the current history entry before
819 bc_vec_replaceAt(&h->history, h->history.len - 1 - h->idx, &dup);
830 else if (h->idx >= h->history.len) {
831 h->idx = h->history.len - 1;
835 str = *((char**) bc_vec_item(&h->history, h->history.len - 1 - h->idx));
1090 // The latest history entry is always our current buffer, that
1119 * This function is the core of the line editing capability of bc history.
1160 bc_vec_pop(&h->history);
1356 if (h->history.len) {
1358 char *s = *((char**) bc_vec_item_rev(&h->history, 0));
1372 bc_vec_push(&h->history, &line);
1379 if (h->history.len) {
1381 char *s = *((char**) bc_vec_item_rev(&h->history, 0));
1386 bc_vec_push(&h->history, &line);
1400 bc_vec_init(&h->history, sizeof(char*), bc_history_string_free);
1420 bc_vec_free(&h->history);
1426 * This special mode is used by bc history in order to print scan codes