Lines Matching defs:histlen
110 discardExcess(int histlen)
120 while (histCount > (unsigned)histlen && (np = Histlist.Hnext)) {
121 if (eventno - np->Href >= histlen || histlen == 0)
126 while (histCount > (unsigned)histlen && (np = histTail) != &Histlist) {
127 if (eventno - np->Href >= histlen || histlen == 0)
132 if (histCount - (histlen >> 4) <= (unsigned)histlen)
134 for (hp = &Histlist; histCount > (unsigned)histlen &&
136 if (eventno - np->Href >= histlen || histlen == 0)
148 int histlen = 0;
157 histlen = 0;
160 histlen = histlen * 10 + *cp++ - '0';
163 (void) enthist(++eventno, sp, 1, mflg, histlen);
164 discardExcess(histlen);
714 getHashTableSize(int histlen)
716 unsigned target = histlen * 2;
732 createHistHashTable(int histlen)
734 if (histlen == 0) {
738 if (histlen < 0) {
739 histlen = getn(varval(STRhistory));
740 if (histlen == 0)
742 assert(histlen > 0);
750 histlen > (int)histCount ? histlen : (int)histCount);
937 int histlen) /* -1 if unknown */
947 createHistHashTable(histlen);
966 createHistHashTable(histlen);
1034 if (lpHash && histlen != 0) /* erase & all modes use hash table */