diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2017-02-07 14:53:24 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2017-02-07 14:55:17 -0800 |
commit | 6e9836442e63dbbc710d3bfe5e48103aeded4605 (patch) | |
tree | e147a90dccd1f78311c8ef3dbc9d3533270fc962 /src/pcresearch.c | |
parent | 56ff98148f4a59246deed3e73b7c94804764820a (diff) | |
download | grep-6e9836442e63dbbc710d3bfe5e48103aeded4605.tar.gz |
Do not assume PCRE 8.20 or later
Problem reported by Zube (Bug#25647)
* NEWS: Document this.
* src/pcresearch.c (struct pcre.com.jit_stack):
Declare only if PCRE_STUDY_JIT_COMPILE.
Diffstat (limited to 'src/pcresearch.c')
-rw-r--r-- | src/pcresearch.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pcresearch.c b/src/pcresearch.c index 703498c3..43f91d08 100644 --- a/src/pcresearch.c +++ b/src/pcresearch.c @@ -42,15 +42,14 @@ struct pcre_comp pcre_extra *extra; # if PCRE_STUDY_JIT_COMPILE - /* Maximum size of the JIT stack. */ + /* The JIT stack and its maximum size. */ + pcre_jit_stack *jit_stack; int jit_stack_size; # endif /* Table, indexed by ! (flag & PCRE_NOTBOL), of whether the empty string matches when that flag is used. */ int empty_match[2]; - - pcre_jit_stack *jit_stack; }; |