Home
last modified time | relevance | path

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

/system/core/liblinenoise/
Dlinenoise.c89 static int history_max_len = 100; variable
414 if (history_max_len == 0) return 0; in linenoiseHistoryAdd()
416 history = malloc(sizeof(char*)*history_max_len); in linenoiseHistoryAdd()
418 memset(history,0,(sizeof(char*)*history_max_len)); in linenoiseHistoryAdd()
422 if (history_len == history_max_len) { in linenoiseHistoryAdd()
423 memmove(history,history+1,sizeof(char*)*(history_max_len-1)); in linenoiseHistoryAdd()
441 memcpy(new,history+(history_max_len-tocopy), sizeof(char*)*tocopy); in linenoiseHistorySetMaxLen()
445 history_max_len = len; in linenoiseHistorySetMaxLen()
446 if (history_len > history_max_len) in linenoiseHistorySetMaxLen()
447 history_len = history_max_len; in linenoiseHistorySetMaxLen()