Home | History | Annotate | Download | only in src

Lines Matching defs:hp

93 	char **hfirst, **hlast, **hp, *editor = NULL;
184 hp = first ? hist_get(first, false, false) :
186 if (!hp)
190 strdupx(line, *hp, ATEMP);
201 for (s = *hp; (s1 = strstr(s, pat)) &&
272 for (hp = rflag ? hlast : hfirst;
273 hp >= hfirst && hp <= hlast; hp += rflag ? -1 : 1) {
277 (unsigned long)(histptr - hp));
280 s = *hp;
300 for (hp = rflag ? hlast : hfirst;
301 hp >= hfirst && hp <= hlast; hp += rflag ? -1 : 1)
302 shf_fprintf(shf, Tf_sN, *hp);
391 char **hp = NULL;
395 hp = histptr + (n < 0 ? n : (n - hist_source->line));
396 if ((size_t)hp < (size_t)history) {
398 hp = hist_get_oldest();
401 hp = NULL;
403 } else if ((size_t)hp > (size_t)histptr) {
405 hp = hist_get_newest(allow_cur);
408 hp = NULL;
410 } else if (!allow_cur && hp == histptr) {
412 hp = NULL;
421 hp = &history[n];
423 return (hp);
484 char **hp;
492 hp = &history[start];
493 for (; hp >= history && hp <= histptr; hp += incr)
494 if ((anchored && strncmp(*hp, str, len) == 0) ||
495 (!anchored && strstr(*hp, str)))
496 return (hp - history);
609 char **hp, *c;
676 hp = histptr;
678 if (++hp >= history + histsize) {
681 for (hp = history; hp < history + histsize - 1; hp++)
682 hp[0] = hp[1];
684 *hp = c;
685 histptr = hp;
776 char *nhname, **hp;
795 hp = history;
796 while (hp < histptr) {
798 s->line - (histptr - hp), *hp))
800 ++hp;
876 char **hp;
879 hp = &histptr[lno - s->line];
880 afree(*hp, APERM);
881 strdupx(*hp, (char *)(base + 4), APERM);