Lines Matching refs:history_length
83 int history_length;
97 state->length = history_length;
113 history_length = state->length;
124 history_offset = history_length;
155 if (pos > history_length || pos < 0 || !the_history)
175 return ((history_offset == history_length) || the_history == 0)
195 return (history_offset == history_length) ? (HIST_ENTRY *)NULL : the_history[++history_offset];
207 return (local_index >= history_length || local_index < 0 || the_history == 0)
270 if (history_stifled && (history_length == history_max_entries))
274 /* If the history is stifled, and history_length is zero,
276 if (history_length == 0)
284 for (i = 0; i < history_length; i++)
295 history_length = 1;
299 if (history_length == (history_size - 1))
305 history_length++;
311 the_history[history_length] = (HIST_ENTRY *)NULL;
312 the_history[history_length - 1] = temp;
322 hs = the_history[history_length - 1];
375 if (which < 0 || which >= history_length)
403 if (which < -2 || which >= history_length || history_length == 0 || the_history == 0)
415 for (i = 0; i < history_length; i++)
444 if (which < 0 || which >= history_length || history_length == 0 || the_history == 0)
449 for (i = which; i < history_length; i++)
452 history_length--;
467 if (history_length > max)
470 for (i = 0, j = history_length - max; i < j; i++)
474 for (j = 0, i = history_length - max; j < max; i++, j++)
477 history_length = j;
511 for (i = 0; i < history_length; i++)
517 history_offset = history_length = 0;