Re: [pcre-dev] PCRE2: PCRE2_INFO_JIT in docs, but not in pcr…

Top Page
Delete this message
Author: ph10
Date:  
To: Ralf Junker
CC: pcre-dev@exim.org
Subject: Re: [pcre-dev] PCRE2: PCRE2_INFO_JIT in docs, but not in pcre2.h
On Thu, 27 Nov 2014, Ralf Junker wrote:

> pcre2jit.html reads:
>
> "You can find out if JIT matching is available after compiling a pattern by
> calling pcre2_pattern_info() with the PCRE2_INFO_JIT option. A result of 1
> means that JIT compilation was successful. A result of 0 means that JIT
> support is not available, or the pattern was not processed by
> pcre2_jit_compile(), or the JIT compiler was not able to handle the pattern."
>
> I fail to find PCRE2_INFO_JIT in pcre2.h. Am I missing something? Or is this
> an omission in the docs or source code?


That's an error in the docs, incorrect editing of the PCRE1 document.
What it should be saying is that you can use PCRE2_INFO_JITSIZE. If the
result is non-zero, JIT compilation was successful. Thanks for noticing!

Philip

--
Philip Hazel