Searched defs:history_max_len (Results 1 - 1 of 1) sorted by relevance

/illumos-gate/usr/src/boot/sys/boot/common/linenoise/
H A Dlinenoise.c117 static int history_max_len = LINENOISE_DEFAULT_HISTORY_MAX_LEN; variable
798 if (history_max_len == 0) return 0;
802 history = malloc(sizeof(char*)*history_max_len);
804 memset(history,0,(sizeof(char*)*history_max_len));
814 if (history_len == history_max_len) {
816 memmove(history,history+1,sizeof(char*)*(history_max_len-1));
850 history_max_len = len;
851 if (history_len > history_max_len)
852 history_len = history_max_len;

Completed in 78 milliseconds