Lines Matching refs:histptr
277 (unsigned long)(histptr - hp));
360 if (histptr >= history && last_line != hist_source->line) {
362 afree(*histptr, APERM);
363 histptr--;
368 /* now *histptr == cmd without all trailing newlines */
370 cmd = *histptr;
395 hp = histptr + (n < 0 ? n : (n - hist_source->line));
403 } else if ((size_t)hp > (size_t)histptr) {
410 } else if (!allow_cur && hp == histptr) {
418 if ((n = findhist(histptr - history - 1, str, false,
431 if (histptr < history || (!allow_cur && histptr == history)) {
435 return (allow_cur ? histptr : histptr - 1);
442 if (histptr <= history) {
465 int last = histptr - history;
468 current = histptr;
486 int maxhist = histptr - history;
494 for (; hp >= history && hp <= histptr; hp += incr)
511 int cursize = histptr - history;
515 memmove(history, histptr - n + 1, n * sizeof(char *));
522 histptr = history + cursize;
554 histptr = history - 1;
572 histptr = history - 1;
642 histptr >= history &&
643 !strcmp(c, *histptr)
679 hp = histptr;
688 histptr = hp;
816 if (lines > histsize && histptr >= history) {
839 while (hp < histptr) {
841 hist_source->line - (histptr - hp), *hp))
933 if (histptr >= history && lno - 1 != s->line) {
937 if (lno >= s->line - (histptr - history) && lno <= s->line) {
938 hp = &histptr[lno - s->line];