Lines Matching refs:hp
1124 static void get_previous_history(struct history **hp, struct history *p)
1126 if ((*hp)->s)
1127 free((*hp)->s);
1128 (*hp)->s = xstrdup(command_ps);
1129 *hp = p;
1132 static inline void get_next_history(struct history **hp)
1134 get_previous_history(hp, (*hp)->n);
1167 struct history *hp = his_end;
1268 if (hp && hp->n && hp->n->s) {
1269 get_next_history(&hp);
1277 if (hp && hp->p) {
1278 get_previous_history(&hp, hp->p);
1310 if (hp && hp->p) {
1311 get_previous_history(&hp, hp->p);
1319 if (hp && hp->n && hp->n->s) {
1320 get_next_history(&hp);
1330 len = strlen(strcpy(command, hp->s));