Home
last modified time | relevance | path

Searched refs:history_len (Results 1 – 1 of 1) sorted by relevance

/illumos-gate/usr/src/boot/common/linenoise/
H A Dlinenoise.c118 static int history_len = 0; variable
529 if (history_len > 1) { in linenoiseEditHistoryNext()
532 free(history[history_len - 1 - l->history_index]); in linenoiseEditHistoryNext()
533 history[history_len - 1 - l->history_index] = strdup(l->buf); in linenoiseEditHistoryNext()
539 } else if (l->history_index >= history_len) { in linenoiseEditHistoryNext()
540 l->history_index = history_len-1; in linenoiseEditHistoryNext()
543 strncpy(l->buf,history[history_len - 1 - l->history_index],l->buflen); in linenoiseEditHistoryNext()
645 history_len--; in linenoiseEdit()
646 free(history[history_len]); in linenoiseEdit()
809 if (history_len && !strcmp(history[history_len-1], line)) return 0; in linenoiseHistoryAdd()
[all …]