Lines Matching refs:hislen

20 static int	hislen = 0;		// actual length of history tables  variable
28 return hislen; in get_hislen()
130 if (newlen != hislen) // history length changed in init_history()
141 newlen = hislen; in init_history()
160 else if (newlen > hislen) // array becomes bigger in init_history()
165 for ( ; i <= newlen - (hislen - hisidx[type]); ++i) in init_history()
167 for ( ; j < hislen; ++i, ++j) in init_history()
180 j = hislen - 1; in init_history()
190 hislen = newlen; in init_history()
240 i = hislen - 1; in in_history()
248 if (++i >= hislen) in in_history()
304 if (hislen == 0) // no history in add_to_history()
323 hisidx[HIST_SEARCH] = hislen - 1; in add_to_history()
329 if (++hisidx[histype] == hislen) in add_to_history()
357 if (hislen == 0 || histype < 0 || histype >= HIST_COUNT in get_history_idx()
377 if (hislen == 0 || histype < 0 || histype >= HIST_COUNT in calc_hist_idx()
389 i += hislen; in calc_hist_idx()
395 else if (-num <= hislen) in calc_hist_idx()
399 i += hislen; in calc_hist_idx()
430 if (hislen != 0 && histype >= 0 && histype < HIST_COUNT) in clr_history()
433 for (i = hislen; i--;) in clr_history()
462 if (hislen != 0 in del_history_entry()
490 last += hislen; in del_history_entry()
493 i += hislen; in del_history_entry()
524 j = (i + 1) % hislen; in del_history_idx()
530 i += hislen; in del_history_idx()
702 if (hislen == 0) in ex_history()
753 j = (-j > hislen) ? 0 : hist[(hislen+j+idx+1) % hislen].hisnum; in ex_history()
755 k = (-k > hislen) ? 0 : hist[(hislen+k+idx+1) % hislen].hisnum; in ex_history()
759 if (i == hislen) in ex_history()