Update documentation for scan_substring; also some code trailing space tidies

This commit is contained in:
Philip Hazel
2024-08-30 17:31:55 +01:00
parent bb2b1d03fd
commit 7a0eda1f66
18 changed files with 537 additions and 266 deletions

View File

@@ -78,11 +78,11 @@ be used.
</P>
<P>
As of release 10.45 there is a more informative way to test for JIT support. If
<b>pcre2_compile_jit()</b> is called with a NULL first argument and the single
option PCRE2_JIT_TEST_ALLOC, it returns zero if JIT is available and has a
working allocator. Otherwise it returns PCRE2_ERROR_NOMEMORY if JIT is
available but cannot allocate executable memory, or PCRE2_ERROR_NULL if JIT
support is not compiled.
<b>pcre2_compile_jit()</b> is called with the single option PCRE2_JIT_TEST_ALLOC
it returns zero if JIT is available and has a working allocator. Otherwise it
returns PCRE2_ERROR_NOMEMORY if JIT is available but cannot allocate executable
memory, or PCRE2_ERROR_JIT_UNSUPPORTED if JIT support is not compiled. The
code argument is ignored, so it can be a NULL value.
</P>
<P>
A simple program does not need to check availability in order to use JIT when