Lines Matching refs:flag
46 register int flag,fdo;
62 while((flag = optget(argv,sh_opthist))) switch(flag)
87 if((flag = hist_max(hp) - opt_info.num-1) < 0)
88 flag = 1;
89 range[++indx] = flag;
109 flag = hist_expand(arg,&replace);
110 if(!(flag & HIST_ERROR))
121 flag = indx;
122 while(flag<1 && (arg=argv[1]))
139 range[++flag] = (int)strtol(arg, (char**)0, 10);
141 range[flag] += (hist_max(hp)-1);
148 if((range[++flag] = location.hist_command) < 0)
152 if(flag <0)
157 flag = hist_max(hp)-16;
158 if(flag<1)
159 flag = 1;
162 flag = hist_max(hp)-2;
163 range[0] = flag;
164 flag = 0;
169 if(flag==0)
172 if(range[1]>=(flag=(hist_max(hp) - !lflag)))
173 range[1] = flag;
175 if(range[1]<index2 || range[0]>=flag)
181 flag = rflag>0;
182 if(range[1-flag] < range[flag])
202 sfprintf(outfile,"%d\t",range[flag]);
205 hist_list(shp->gd->hist_ptr,outfile,hist_tell(shp->gd->hist_ptr,range[flag]),0,arg);
208 if(range[flag] == range[1-flag])
210 range[flag] += incr;