]> git.ipfire.org Git - thirdparty/git.git/commit - grep.c
grep: refactor and simplify PCRE1 support
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Sun, 25 Aug 2019 18:22:23 +0000 (11:22 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Aug 2019 18:37:02 +0000 (11:37 -0700)
commitff61681b46760f6a64353018760bccc14c90f8e9
treecd0c70dec90b31375b91176f77f3e8dd32969aeb
parent8991da6a3864d93d860afe4c510b4fdbf0da6363
grep: refactor and simplify PCRE1 support

The code used both a macro and a variable to keep track if JIT
support was desired and relied on the fact that a non JIT
enabled library will ignore a request for JIT compilation
(as defined by the second parameter of the call to pcre_study)

Cleanup the multiple levels of macros used and call pcre_study
with the right parameter after JIT support has been confirmed
and unless it was requested to be disabled with NO_LIBPCRE1_JIT

Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
grep.c
grep.h