Home
last modified time | relevance | path

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

/illumos-gate/usr/src/boot/common/linenoise/
H A Dlinenoise.c117 static int history_max_len = LINENOISE_DEFAULT_HISTORY_MAX_LEN; variable
799 if (history_max_len == 0) return 0; in linenoiseHistoryAdd()
803 history = malloc(sizeof(char*)*history_max_len); in linenoiseHistoryAdd()
805 memset(history,0,(sizeof(char*)*history_max_len)); in linenoiseHistoryAdd()
815 if (history_len == history_max_len) { in linenoiseHistoryAdd()
817 memmove(history,history+1,sizeof(char*)*(history_max_len-1)); in linenoiseHistoryAdd()
851 history_max_len = len; in linenoiseHistorySetMaxLen()
852 if (history_len > history_max_len) in linenoiseHistorySetMaxLen()
853 history_len = history_max_len; in linenoiseHistorySetMaxLen()