summaryrefslogtreecommitdiff
path: root/grep.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-10-23 05:43:11 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-10-23 05:43:11 (GMT)
commite0ff2d4c7ec338e30ea5e0340cda7f5fe8a187dc (patch)
treefdcd0653f52fd14b9ec433a66dafcf8765bfd500 /grep.h
parentd45d771978c3d5bead096934cad16ddfb9fced37 (diff)
parent10da030ab757c38a01507bf18e2484698000b791 (diff)
downloadgit-e0ff2d4c7ec338e30ea5e0340cda7f5fe8a187dc.zip
git-e0ff2d4c7ec338e30ea5e0340cda7f5fe8a187dc.tar.gz
git-e0ff2d4c7ec338e30ea5e0340cda7f5fe8a187dc.tar.bz2
Merge branch 'cb/pcre2-chartables-leakfix'
Leakfix. * cb/pcre2-chartables-leakfix: grep: avoid leak of chartables in PCRE2 grep: make PCRE2 aware of custom allocator grep: make PCRE1 aware of custom allocator
Diffstat (limited to 'grep.h')
-rw-r--r--grep.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/grep.h b/grep.h
index 05dc1bb..811fd27 100644
--- a/grep.h
+++ b/grep.h
@@ -78,6 +78,7 @@ struct grep_pat {
pcre2_code *pcre2_pattern;
pcre2_match_data *pcre2_match_data;
pcre2_compile_context *pcre2_compile_context;
+ const uint8_t *pcre2_tables;
uint32_t pcre2_jit_on;
unsigned fixed:1;
unsigned is_fixed:1;
@@ -172,6 +173,7 @@ struct grep_opt {
void init_grep_defaults(struct repository *);
int grep_config(const char *var, const char *value, void *);
void grep_init(struct grep_opt *, struct repository *repo, const char *prefix);
+void grep_destroy(void);
void grep_commit_pattern_type(enum grep_pattern_type, struct grep_opt *opt);
void append_grep_pat(struct grep_opt *opt, const char *pat, size_t patlen, const char *origin, int no, enum grep_pat_token t);