Lines Matching refs:range
50 int range[2], incr, index2, indx= -1;
89 range[++indx] = flag;
139 range[++flag] = (int)strtol(arg, (char**)0, 10);
141 range[flag] += (hist_max(hp)-1);
148 if((range[++flag] = location.hist_command) < 0)
154 /* set default starting range */
163 range[0] = flag;
167 if(range[0]<index2)
168 range[0] = index2;
170 /* set default termination range */
171 range[1] = ((lflag && !edit)?hist_max(hp)-1:range[0]);
172 if(range[1]>=(flag=(hist_max(hp) - !lflag)))
173 range[1] = flag;
175 if(range[1]<index2 || range[0]>=flag)
176 errormsg(SH_DICT,ERROR_exit(1),e_badrange,range[0],range[1]);
177 if(edit && *edit=='-' && range[0]!=range[1])
179 /* now list commands from range[rflag] to range[1-rflag] */
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;