Lines Matching full:histptr
213 hist_source->line - (int)(histptr - hp));
378 hp = histptr + (n < 0 ? n : (n - hist_source->line));
386 } else if ((ptrdiff_t)hp > (ptrdiff_t)histptr) {
393 } else if (!allow_cur && hp == histptr) {
401 if ((n = findhist(histptr - history - 1, 0, str, anchored)) < 0)
413 if (histptr < history || (!allow_cur && histptr == history)) {
417 return (allow_cur ? histptr : histptr - 1);
424 if (histptr <= history) {
439 if (histptr >= history && last_line != hist_source->line) {
441 afree(*histptr, APERM);
442 histptr--;
459 int last = histptr - history;
462 current = histptr;
479 int maxhist = histptr - history;
487 for (; hp >= history && hp <= histptr; hp += incr)
498 int maxhist = histptr - history;
523 int cursize = histptr - history;
527 memmove(history, histptr - n, n * sizeof(char *));
534 histptr = history + cursize;
566 histptr = history - 1;
583 histptr = history - 1;
631 if (ignoredups && !strcmp(c, *histptr)
646 hp = histptr;
654 histptr = hp;
917 if (histptr >= history && lno-1 != s->line) {
939 if (lno >= s->line - (histptr - history) && lno <= s->line) {
940 hp = &histptr[lno - s->line];