diff options
author | Taylor Blau <me@ttaylorr.com> | 2022-01-06 14:50:12 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-01-06 13:14:55 -0800 |
commit | f2d275984d2b931b51f39d4019e78031a36cb2f0 (patch) | |
tree | 202aaf8fc8b07516953472ba588eb8fa33ae1c4b /delta-islands.c | |
parent | grep: use grep_not_expr() in compile_pattern_not() (diff) | |
download | tgif-f2d275984d2b931b51f39d4019e78031a36cb2f0.tar.xz |
grep: extract grep_binexp() from grep_or_expr()
When constructing an OR node, the grep.c code uses `grep_or_expr()` to
make a node, assign its kind, and set its left and right children. The
same is not done for AND nodes.
Prepare to introduce a new `grep_and_expr()` function which will share
code with the existing implementation of `grep_or_expr()` by introducing
a new function which compiles either kind of binary expression, and
reimplement `grep_or_expr()` in terms of it.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'delta-islands.c')
0 files changed, 0 insertions, 0 deletions