Home
last modified time | relevance | path

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

/external/u-boot/common/
Dcli_readline.c77 static int hist_cur = -1; variable
91 hist_cur = -1; in hist_init()
118 if (hist_cur < 0) in hist_prev()
121 old_cur = hist_cur; in hist_prev()
122 if (--hist_cur < 0) in hist_prev()
123 hist_cur = hist_max; in hist_prev()
125 if (hist_cur == hist_add_idx) { in hist_prev()
126 hist_cur = old_cur; in hist_prev()
129 ret = hist_list[hist_cur]; in hist_prev()
139 if (hist_cur < 0) in hist_next()
[all …]