Lines Matching refs:FLAG
95 if (!trim && FLAG(o)) return; in outline()
96 if (name && FLAG(H)) printf("%s%s%s%c", TT.purple, name, TT.cyan, dash); in outline()
97 if (FLAG(c)) { in outline()
100 } else if (lcount && FLAG(n)) numdash(lcount, dash); in outline()
101 if (bcount && FLAG(b)) numdash(bcount-1, dash); in outline()
103 if (FLAG(color)) xputsn(FLAG(o) ? TT.red : TT.grey); in outline()
119 if (!FLAG(r)) TT.tried++; in do_grep()
123 if (!FLAG(a) && !lseek(fd, 0, SEEK_CUR)) { in do_grep()
139 if (bin && FLAG(I)) return; in do_grep()
170 if (FLAG(F)) { in do_grep()
175 if (FLAG(x)) { in do_grep()
176 if ((FLAG(i) ? strcasecmp : strcmp)(seek->arg, line)) s = line; in do_grep()
182 if (FLAG(i)) s = strcasestr(line, seek->arg); in do_grep()
220 if (!rc && FLAG(x)) in do_grep()
223 if (!rc && FLAG(w)) { in do_grep()
240 if (FLAG(v)) { in do_grep()
241 if (FLAG(o)) { in do_grep()
263 if (FLAG(q)) { in do_grep()
267 if (FLAG(l)) { in do_grep()
274 if (!FLAG(c)) { in do_grep()
275 long bcount = 1 + offset + (start-line) + (FLAG(o) ? mm->rm_so : 0); in do_grep()
278 else if (FLAG(o)) in do_grep()
293 outline(FLAG(color) ? 0 : line, ':', name, lcount, bcount, ulen); in do_grep()
294 if (FLAG(color)) { in do_grep()
307 if (!FLAG(o) && FLAG(color)) break; in do_grep()
313 if (FLAG(color) && !FLAG(o)) { in do_grep()
350 if (FLAG(m) && mcount >= TT.m) break; in do_grep()
353 if (FLAG(c)) outline(0, ':', name, mcount, 0, 1); in do_grep()
398 if (!FLAG(F)) { in parse_regex()
405 if (FLAG(o) && !*al->arg) continue; in parse_regex()
408 (REG_EXTENDED*!!FLAG(E)) | (REG_ICASE*!!FLAG(i))); in parse_regex()
440 if (new->parent && !FLAG(h)) toys.optflags |= FLAG_H; in do_grep_r()
453 if (FLAG(color) && (!TT.color || !strcmp(TT.color, "auto")) && !isatty(1)) in grep_main()
456 if (FLAG(color)) { in grep_main()
470 TT.indelim = '\n' * !FLAG(z); in grep_main()
471 TT.outdelim = '\n' * !FLAG(Z); in grep_main()
486 if (!FLAG(h) && toys.optc>1) toys.optflags |= FLAG_H; in grep_main()
488 if (FLAG(s)) { in grep_main()
493 if (FLAG(r)) { in grep_main()
500 if (TT.tried >= toys.optc || (FLAG(q)&&TT.found)) toys.exitval = !TT.found; in grep_main()