Minor code tidy.

This commit is contained in:
Philip.Hazel 2017-06-16 18:04:41 +00:00
parent c92bfc3d21
commit 69eab9cfe7
1 changed files with 13 additions and 0 deletions

View File

@ -4053,6 +4053,8 @@ for (fn = pattern_files; fn != NULL; fn = fn->next)
/* Unless JIT has been explicitly disabled, arrange a stack for it to use. */ /* Unless JIT has been explicitly disabled, arrange a stack for it to use. */
#ifdef NEVER
#ifdef SUPPORT_PCRE2GREP_JIT #ifdef SUPPORT_PCRE2GREP_JIT
if (use_jit) if (use_jit)
jit_stack = pcre2_jit_stack_create(32*1024, 1024*1024, NULL); jit_stack = pcre2_jit_stack_create(32*1024, 1024*1024, NULL);
@ -4065,6 +4067,17 @@ for (j = 1, cp = patterns; cp != NULL; j++, cp = cp->next)
pcre2_jit_stack_assign(match_context, NULL, jit_stack); pcre2_jit_stack_assign(match_context, NULL, jit_stack);
#endif #endif
} }
#endif
#ifdef SUPPORT_PCRE2GREP_JIT
if (use_jit)
{
jit_stack = pcre2_jit_stack_create(32*1024, 1024*1024, NULL);
if (jit_stack != NULL )
pcre2_jit_stack_assign(match_context, NULL, jit_stack);
}
#endif
/* If there are include or exclude patterns read from the command line, compile /* If there are include or exclude patterns read from the command line, compile
them. -F, -w, and -x do not apply, so the third argument of compile_pattern is them. -F, -w, and -x do not apply, so the third argument of compile_pattern is