diff options
author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | 2009-03-07 13:28:40 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-03-07 11:34:56 -0800 |
commit | d7eb527d731e2a71eaa4597417d879a15588d9ee (patch) | |
tree | fd5eba8c7dab01a9d9209bbc6c4e99d048a51818 /grep.h | |
parent | 252d560d215581637fcddd7a0a18f89204ecc8d1 (diff) | |
download | git-d7eb527d731e2a71eaa4597417d879a15588d9ee.tar.gz |
grep: remove grep_opt argument from match_expr_eval()
The only use of the struct grep_opt argument of match_expr_eval()
is to pass the option word_regexp to match_one_pattern(). By adding
a pattern flag for it we can reduce the number of function arguments
of these two functions, as a cleanup and preparation for adding more
in the next patch.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'grep.h')
-rw-r--r-- | grep.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -31,6 +31,7 @@ struct grep_pat { enum grep_header_field field; regex_t regexp; unsigned fixed:1; + unsigned word_regexp:1; }; enum grep_expr_node { |