Home
last modified time | relevance | path

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

/f-stack/app/redis-5.0.5/deps/linenoise/
H A Dlinenoise.c131 static int history_max_len = LINENOISE_DEFAULT_HISTORY_MAX_LEN; variable
1103 if (history_max_len == 0) return 0; in linenoiseHistoryAdd()
1107 history = malloc(sizeof(char*)*history_max_len); in linenoiseHistoryAdd()
1109 memset(history,0,(sizeof(char*)*history_max_len)); in linenoiseHistoryAdd()
1119 if (history_len == history_max_len) { in linenoiseHistoryAdd()
1121 memmove(history,history+1,sizeof(char*)*(history_max_len-1)); in linenoiseHistoryAdd()
1155 history_max_len = len; in linenoiseHistorySetMaxLen()
1156 if (history_len > history_max_len) in linenoiseHistorySetMaxLen()
1157 history_len = history_max_len; in linenoiseHistorySetMaxLen()