1PCRE_ASSIGN_JIT_STACK(3) Library Functions Manual PCRE_ASSIGN_JIT_STACK(3)
2
3
4
6 PCRE - Perl-compatible regular expressions
7
9
10 #include <pcre.h>
11
12 void pcre_assign_jit_stack(pcre_extra *extra,
13 pcre_jit_callback callback, void *data);
14
15 void pcre16_assign_jit_stack(pcre16_extra *extra,
16 pcre16_jit_callback callback, void *data);
17
18 void pcre32_assign_jit_stack(pcre32_extra *extra,
19 pcre32_jit_callback callback, void *data);
20
22
23 This function provides control over the memory used as a stack at run-
24 time by a call to pcre[16|32]_exec() with a pattern that has been suc‐
25 cessfully compiled with JIT optimization. The arguments are:
26
27 extra the data pointer returned by pcre[16|32]_study()
28 callback a callback function
29 data a JIT stack or a value to be passed to the callback
30 function
31
32 If callback is NULL and data is NULL, an internal 32K block on the
33 machine stack is used.
34
35 If callback is NULL and data is not NULL, data must be a valid JIT
36 stack, the result of calling pcre[16|32]_jit_stack_alloc().
37
38 If callback not NULL, it is called with data as an argument at the
39 start of matching, in order to set up a JIT stack. If the result is
40 NULL, the internal 32K stack is used; otherwise the return value must
41 be a valid JIT stack, the result of calling
42 pcre[16|32]_jit_stack_alloc().
43
44 You may safely assign the same JIT stack to multiple patterns, as long
45 as they are all matched in the same thread. In a multithread applica‐
46 tion, each thread must use its own JIT stack. For more details, see the
47 pcrejit page.
48
49 There is a complete description of the PCRE native API in the pcreapi
50 page and a description of the POSIX API in the pcreposix page.
51
52
53
54PCRE 8.30 24 June 2012 PCRE_ASSIGN_JIT_STACK(3)