• Home
  • Raw
  • Download

Lines Matching refs:histptr

277 				    (unsigned long)(histptr - hp));  in c_fc()
360 if (histptr >= history && last_line != hist_source->line) { in hist_execute()
362 afree(*histptr, APERM); in hist_execute()
363 histptr--; in hist_execute()
370 cmd = *histptr; in hist_execute()
395 hp = histptr + (n < 0 ? n : (n - hist_source->line)); in hist_get()
403 } else if ((size_t)hp > (size_t)histptr) { in hist_get()
410 } else if (!allow_cur && hp == histptr) { in hist_get()
418 if ((n = findhist(histptr - history - 1, str, false, in hist_get()
431 if (histptr < history || (!allow_cur && histptr == history)) { in hist_get_newest()
435 return (allow_cur ? histptr : histptr - 1); in hist_get_newest()
442 if (histptr <= history) { in hist_get_oldest()
465 int last = histptr - history; in histnum()
468 current = histptr; in histnum()
486 int maxhist = histptr - history; in findhist()
494 for (; hp >= history && hp <= histptr; hp += incr) in findhist()
511 int cursize = histptr - history; in sethistsize()
515 memmove(history, histptr - n + 1, n * sizeof(char *)); in sethistsize()
522 histptr = history + cursize; in sethistsize()
554 histptr = history - 1; in sethistfile()
572 histptr = history - 1; in init_histvec()
642 histptr >= history && in histsave()
643 !strcmp(c, *histptr) in histsave()
679 hp = histptr; in histsave()
688 histptr = hp; in histsave()
816 if (lines > histsize && histptr >= history) { in hist_persist_init()
839 while (hp < histptr) { in hist_persist_init()
841 hist_source->line - (histptr - hp), *hp)) in hist_persist_init()
933 if (histptr >= history && lno - 1 != s->line) { in histload()
937 if (lno >= s->line - (histptr - history) && lno <= s->line) { in histload()
938 hp = &histptr[lno - s->line]; in histload()