diff options
author | Keith Cascio <keith@cs.ucla.edu> | 2009-02-16 19:26:49 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-03-04 00:56:51 -0800 |
commit | 628d5c2b707db207e47c42ca112b182aa171cfaa (patch) | |
tree | 095c322365931430834e43be0be3ed17a9d8786a /diff.h | |
parent | 0823ab4783654c82732996efd2710055885f3101 (diff) | |
download | git-628d5c2b707db207e47c42ca112b182aa171cfaa.tar.gz git-628d5c2b707db207e47c42ca112b182aa171cfaa.tar.xz |
Use DIFF_XDL_SET/DIFF_OPT_SET instead of raw bit-masking
Signed-off-by: Keith Cascio <keith@cs.ucla.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.h')
-rw-r--r-- | diff.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -69,6 +69,9 @@ typedef void (*diff_format_fn_t)(struct diff_queue_struct *q, #define DIFF_OPT_TST(opts, flag) ((opts)->flags & DIFF_OPT_##flag) #define DIFF_OPT_SET(opts, flag) ((opts)->flags |= DIFF_OPT_##flag) #define DIFF_OPT_CLR(opts, flag) ((opts)->flags &= ~DIFF_OPT_##flag) +#define DIFF_XDL_TST(opts, flag) ((opts)->xdl_opts & XDF_##flag) +#define DIFF_XDL_SET(opts, flag) ((opts)->xdl_opts |= XDF_##flag) +#define DIFF_XDL_CLR(opts, flag) ((opts)->xdl_opts &= ~XDF_##flag) struct diff_options { const char *filter; |