Home
last modified time | relevance | path

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

/system/core/liblinenoise/
Dlinenoise.c90 static int history_len = 0; variable
110 for (j = 0; j < history_len; j++) in freeHistory()
239 history_len--; in linenoisePrompt()
242 history_len--; in linenoisePrompt()
296 if (history_len > 1) { in linenoisePrompt()
299 free(history[history_len-1-history_index]); in linenoisePrompt()
300 history[history_len-1-history_index] = strdup(buf); in linenoisePrompt()
306 } else if (history_index >= history_len) { in linenoisePrompt()
307 history_index = history_len-1; in linenoisePrompt()
310 strncpy(buf,history[history_len-1-history_index],buflen); in linenoisePrompt()
[all …]