Searched refs:history_max_len (Results 1 – 3 of 3) sorted by relevance
134 static int history_max_len = LINENOISE_DEFAULT_HISTORY_MAX_LEN; variable1179 if (history_max_len == 0) return 0; in linenoiseHistoryAdd()1183 history = malloc(sizeof(char*)*history_max_len); in linenoiseHistoryAdd()1185 memset(history,0,(sizeof(char*)*history_max_len)); in linenoiseHistoryAdd()1195 if (history_len == history_max_len) { in linenoiseHistoryAdd()1197 memmove(history,history+1,sizeof(char*)*(history_max_len-1)); in linenoiseHistoryAdd()1231 history_max_len = len; in linenoiseHistorySetMaxLen()1232 if (history_len > history_max_len) in linenoiseHistorySetMaxLen()1233 history_len = history_max_len; in linenoiseHistorySetMaxLen()
32679 .data.history_max_len
33531 .data.history_max_len