Lines Matching defs:hp
963 struct Hist *hp;
983 hp = Histlist.Hnext;
984 if (hp == NULL)
988 if ((hp->Hnext) == NULL) {
992 hp = hp->Hnext;
995 if (HistLit && hp->histline) {
996 copyn(InputBuf, hp->histline, INBUFSIZE);/*FIXBUF*/
1002 p = sprlex(&hp->Hlex);
1705 struct Hist *hp;
1715 hp = Histlist.Hnext;
1716 if (hp == NULL) { /* this is only if no history */
1721 hp = hp->Hnext;
1724 if (hp->histline) {
1725 copyn(InputBuf, hp->histline, INBUFSIZE);/*FIXBUF*/
1735 p = sprlex(&hp->Hlex);
1845 struct Hist *hp;
1868 hp = Histlist.Hnext;
1869 if (hp == NULL)
1875 hp = hp->Hnext;
1877 while (hp != NULL) {
1881 if (hp->histline == NULL)
1882 hp->histline = sprlex(&hp->Hlex);
1884 hl = hp->histline;
1886 hl = sprlex(&hp->Hlex);
1901 hp = hp->Hnext;
1920 struct Hist *hp;
1932 hp = Histlist.Hnext;
1933 if (hp == 0)
1938 for (h = 1; h < Hist_num && hp; h++) {
1940 if (hp->histline == NULL)
1941 hp->histline = sprlex(&hp->Hlex);
1943 hl = hp->histline;
1945 hl = sprlex(&hp->Hlex);
1956 hp = hp->Hnext;
2110 struct Hist *hp;
2119 hp = Histlist.Hnext;
2120 if (hp == NULL) { /* this is only if no history */
2124 wp = (hp->Hlex).prev;
2129 firstp = (hp->Hlex).next;
2151 struct Hist *hp;
2168 hp = Histlist.Hnext;
2175 for (i = 1; i < hist && hp != NULL; i++)
2176 hp = hp->Hnext;
2177 if (hp == NULL) /* "can't happen" */
2179 hbuf = expand_lex(&hp->Hlex, 0, INT_MAX);
2182 hp = hp->Hnext;
2199 if (hp == NULL)
2201 hbuf = expand_lex(&hp->Hlex, 0, INT_MAX);
2204 hp = hp->Hnext;