Lines Matching refs:hist_add_idx
76 static int hist_add_idx; variable
83 #define add_idx_minus_one() ((hist_add_idx == 0) ? hist_max : hist_add_idx-1)
90 hist_add_idx = 0; in hist_init()
102 strcpy(hist_list[hist_add_idx], line); in cread_add_to_hist()
104 if (++hist_add_idx >= HIST_MAX) in cread_add_to_hist()
105 hist_add_idx = 0; in cread_add_to_hist()
107 if (hist_add_idx > hist_max) in cread_add_to_hist()
108 hist_max = hist_add_idx; in cread_add_to_hist()
125 if (hist_cur == hist_add_idx) { in hist_prev()
142 if (hist_cur == hist_add_idx) in hist_next()
148 if (hist_cur == hist_add_idx) in hist_next()
164 i = hist_add_idx + 1; in cread_print_hist_list()
168 if (i == hist_add_idx) in cread_print_hist_list()
500 hist_cur = hist_add_idx; in cread_line()