Lines Matching refs:pairs
46 int pairs;
77 unsigned *pairs = (void *)toybuf; in cut_line() local
84 for (i=0; i<TT.pairs; i++) { in cut_line()
85 unsigned start = pairs[2*i], end = pairs[(2*i)+1], count; in cut_line()
183 unsigned *pairs = (void *)toybuf, i; in get_range() local
186 if (TT.pairs == sizeof(toybuf)/sizeof(int)) perror_exit("select limit"); in get_range()
187 pairs += 2*TT.pairs++; in get_range()
189 pairs[1] = UINT_MAX; in get_range()
196 pairs[i] = ll; in get_range()
200 if (!i) pairs[1] = pairs[0]; in get_range()
202 if (pairs[0]>pairs[1]) return str; in get_range()
230 if (!TT.pairs) error_exit("no selections"); in cut_main()
235 unsigned *pairs = (void *)toybuf; in cut_main() local
237 qsort(toybuf, TT.pairs, 8, (void *)compar); in cut_main()
238 for (to = 0, from = 2; from/2 < TT.pairs; from += 2) { in cut_main()
239 if (pairs[from] > pairs[to+1]) { in cut_main()
241 memcpy(pairs+to, pairs+from, 2*sizeof(unsigned)); in cut_main()
242 } else if (pairs[from+1] > pairs[to+1]) pairs[to+1] = pairs[from+1]; in cut_main()
244 TT.pairs = (to/2)+1; in cut_main()