Lines Matching refs:histptr
279 hist_source->line - (int)(histptr - hp));
376 if (histptr >= history && last_line != hist_source->line) {
378 afree(*histptr, APERM);
379 histptr--;
425 hp = histptr + (n < 0 ? n : (n - hist_source->line));
433 } else if ((ptrdiff_t)hp > (ptrdiff_t)histptr) {
440 } else if (!allow_cur && hp == histptr) {
448 if ((n = findhist(histptr - history - 1, 0, str, anchored)) < 0)
460 if (histptr < history || (!allow_cur && histptr == history)) {
464 return (allow_cur ? histptr : histptr - 1);
471 if (histptr <= history) {
494 int last = histptr - history;
497 current = histptr;
515 int maxhist = histptr - history;
523 for (; hp >= history && hp <= histptr; hp += incr)
538 int cursize = histptr - history;
542 memmove(history, histptr - n + 1, n * sizeof(char *));
549 histptr = history + cursize;
580 histptr = history - 1;
597 histptr = history - 1;
642 if (ignoredups && !strcmp(c, *histptr)
657 hp = histptr;
666 histptr = hp;
752 if (lines > histsize && histptr >= history) {
774 while (hp < histptr) {
776 s->line - (histptr - hp), *hp))
852 if (histptr >= history && lno - 1 != s->line) {
856 if (lno >= s->line - (histptr - history) && lno <= s->line) {
857 hp = &histptr[lno - s->line];