Searched refs:histmask (Results 1 – 2 of 2) sorted by relevance
/titanic_51/usr/src/lib/libshell/common/edit/ |
H A D | history.c | 65 int histmask; /* power of two mask for histcnt */ \ 71 #define hist_ind(hp,c) ((int)((c)&(hp)->histmask)) 235 int histmask, maxlines, hist_start=0; in sh_histinit() local 309 for(histmask=16;histmask <= maxlines; histmask <<=1 ); in sh_histinit() 310 if(!(hp=new_of(History_t,(--histmask)*sizeof(off_t)))) in sh_histinit() 318 hp->histmask = histmask; in sh_histinit() 320 memset((char*)hp->histcmds,0,sizeof(off_t)*(hp->histmask+1)); in sh_histinit()
|
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/edit/ |
H A D | history.c | 65 int histmask; /* power of two mask for histcnt */ \ 71 #define hist_ind(hp,c) ((int)((c)&(hp)->histmask)) 234 int histmask, maxlines, hist_start=0; in sh_histinit() local 308 for(histmask=16;histmask <= maxlines; histmask <<=1 ); in sh_histinit() 309 if(!(hp=new_of(History_t,(--histmask)*sizeof(off_t)))) in sh_histinit() 317 hp->histmask = histmask; in sh_histinit() 319 memset((char*)hp->histcmds,0,sizeof(off_t)*(hp->histmask in sh_histinit() [all...] |