mirror of
https://github.com/PCRE2Project/pcre2.git
synced 2025-10-20 12:55:08 +08:00
Update documentation for scan_substring; also some code trailing space tidies
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user