void pcre_assign_jit_stack(pcre_extra *extra, " pcre_jit_callback callback, void *data);" void pcre16_assign_jit_stack(pcre16_extra *extra, " pcre16_jit_callback callback, void *data);" void pcre32_assign_jit_stack(pcre32_extra *extra, " pcre32_jit_callback callback, void *data);".
If callback is NULL and data is NULL, an internal 32K block on the machine stack is used.
If callback is NULL and data is not NULL, data must be a valid JIT stack, the result of calling pcre[16|32]_jit_stack_alloc().
If callback not NULL, it is called with data as an argument at the start of matching, in order to set up a JIT stack. If the result is NULL, the internal 32K stack is used; otherwise the return value must be a valid JIT stack, the result of calling pcre[16|32]_jit_stack_alloc().
You may safely assign the same JIT stack to multiple patterns, as long as they
are all matched in the same thread. In a multithread application, each thread
must use its own JIT stack. For more details, see the
HREF
pcrejit
page.
There is a complete description of the PCRE native API in the
HREF
pcreapi
page and a description of the POSIX API in the
HREF
pcreposix
page.