aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-05-26 11:48:29 +0000
committerEric Andersen <andersen@codepoet.org>2004-05-26 11:48:29 +0000
commitabc513a90f7f8f4bd4ce74fd7fa46f4a83899c91 (patch)
tree42a9e8b43b8c3e2c86d4f7cbfb2dbbccd754b039
parentdec7f81370071b3e4d080d14491f60ef0e5577b8 (diff)
downloadbusybox-w32-abc513a90f7f8f4bd4ce74fd7fa46f4a83899c91.tar.gz
busybox-w32-abc513a90f7f8f4bd4ce74fd7fa46f4a83899c91.tar.bz2
busybox-w32-abc513a90f7f8f4bd4ce74fd7fa46f4a83899c91.zip
Make the grep option values a bit less horrible
-rw-r--r--findutils/grep.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index 4e7e15920..ddc5cea9c 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -35,37 +35,37 @@
35 35
36/* options */ 36/* options */
37#define GREP_OPTS "lnqvscFiHhe:f:L" 37#define GREP_OPTS "lnqvscFiHhe:f:L"
38#define GREP_OPT_l 1 38#define GREP_OPT_l (1<<0)
39static char print_files_with_matches; 39static char print_files_with_matches;
40#define GREP_OPT_n 2 40#define GREP_OPT_n (1<<1)
41static char print_line_num; 41static char print_line_num;
42#define GREP_OPT_q 4 42#define GREP_OPT_q (1<<2)
43static char be_quiet; 43static char be_quiet;
44#define GREP_OPT_v 8 44#define GREP_OPT_v (1<<3)
45typedef char invert_search_t; 45typedef char invert_search_t;
46static invert_search_t invert_search; 46static invert_search_t invert_search;
47#define GREP_OPT_s 16 47#define GREP_OPT_s (1<<4)
48static char suppress_err_msgs; 48static char suppress_err_msgs;
49#define GREP_OPT_c 32 49#define GREP_OPT_c (1<<5)
50static char print_match_counts; 50static char print_match_counts;
51#define GREP_OPT_F 64 51#define GREP_OPT_F (1<<6)
52static char fgrep_flag; 52static char fgrep_flag;
53#define GREP_OPT_i 128 53#define GREP_OPT_i (1<<7)
54#define GREP_OPT_H 256 54#define GREP_OPT_H (1<<8)
55#define GREP_OPT_h 512 55#define GREP_OPT_h (1<<9)
56#define GREP_OPT_e 1024 56#define GREP_OPT_e (1<<10)
57#define GREP_OPT_f 2048 57#define GREP_OPT_f (1<<11)
58#define GREP_OPT_L 4096 58#define GREP_OPT_L (1<<12)
59static char print_files_without_matches; 59static char print_files_without_matches;
60#ifdef CONFIG_FEATURE_GREP_CONTEXT 60#ifdef CONFIG_FEATURE_GREP_CONTEXT
61#define GREP_OPT_CONTEXT "A:B:C" 61#define GREP_OPT_CONTEXT "A:B:C"
62#define GREP_OPT_A 8192 62#define GREP_OPT_A (1<<13)
63#define GREP_OPT_B 16384 63#define GREP_OPT_B (1<<14)
64#define GREP_OPT_C 32768 64#define GREP_OPT_C (1<<15)
65#define GREP_OPT_E 65536 65#define GREP_OPT_E (1<<16)
66#else 66#else
67#define GREP_OPT_CONTEXT "" 67#define GREP_OPT_CONTEXT ""
68#define GREP_OPT_E 8192 68#define GREP_OPT_E (1<<13)
69#endif 69#endif
70#ifdef CONFIG_FEATURE_GREP_EGREP_ALIAS 70#ifdef CONFIG_FEATURE_GREP_EGREP_ALIAS
71# define OPT_EGREP "E" 71# define OPT_EGREP "E"