Searched refs:hist_add_idx (Results 1 – 1 of 1) sorted by relevance
76 static int hist_add_idx; variable83 #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()[all …]