diff: remove DIFF_OPT_TST macro
commit3b69daed861daec1923c369d59c97e46eb3c3d7b
authorBrandon Williams <bmwill@google.com>
Tue, 31 Oct 2017 18:19:08 +0000 (31 11:19 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Nov 2017 02:50:03 +0000 (1 11:50 +0900)
treebc66d274c0b97aa27526320778387e557dc22dbe
parent25567af8056d992c9a51815db4b3a3e9417a2969
diff: remove DIFF_OPT_TST macro

Remove the `DIFF_OPT_TST` macro and instead access the flags directly.
This conversion is done using the following semantic patch:

@@
expression E;
identifier fld;
@@
- DIFF_OPT_TST(&E, fld)
+ E.flags.fld

@@
type T;
T *ptr;
identifier fld;
@@
- DIFF_OPT_TST(ptr, fld)
+ ptr->flags.fld

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
17 files changed:
blame.c
builtin/am.c
builtin/blame.c
builtin/diff.c
builtin/log.c
builtin/rev-list.c
combine-diff.c
diff-lib.c
diff-no-index.c
diff.c
diff.h
diffcore-pickaxe.c
diffcore-rename.c
log-tree.c
revision.c
submodule.c
tree-diff.c