version 1.1.1.1, 2012/02/21 23:05:52
|
version 1.1.1.3, 2012/10/09 09:19:17
|
Line 22 SYNOPSIS
|
Line 22 SYNOPSIS
|
<b>void pcre_assign_jit_stack(pcre_extra *<i>extra</i>,</b> |
<b>void pcre_assign_jit_stack(pcre_extra *<i>extra</i>,</b> |
<b>pcre_jit_callback <i>callback</i>, void *<i>data</i>);</b> |
<b>pcre_jit_callback <i>callback</i>, void *<i>data</i>);</b> |
</P> |
</P> |
|
<P> |
|
<b>void pcre16_assign_jit_stack(pcre16_extra *<i>extra</i>,</b> |
|
<b>pcre16_jit_callback <i>callback</i>, void *<i>data</i>);</b> |
|
</P> |
<br><b> |
<br><b> |
DESCRIPTION |
DESCRIPTION |
</b><br> |
</b><br> |
<P> |
<P> |
This function provides control over the memory used as a stack at runtime by a | This function provides control over the memory used as a stack at run-time by a |
call to <b>pcre_exec()</b> with a pattern that has been successfully compiled | call to <b>pcre[16]_exec()</b> with a pattern that has been successfully |
with JIT optimization. The arguments are: | compiled with JIT optimization. The arguments are: |
<pre> |
<pre> |
extra the data pointer returned by <b>pcre_study()</b> | extra the data pointer returned by <b>pcre[16]_study()</b> |
callback a callback function |
callback a callback function |
data a JIT stack or a value to be passed to the callback |
data a JIT stack or a value to be passed to the callback |
function |
function |
Line 42 the machine stack is used.
|
Line 46 the machine stack is used.
|
</P> |
</P> |
<P> |
<P> |
If <i>callback</i> is NULL and <i>data</i> is not NULL, <i>data</i> must |
If <i>callback</i> is NULL and <i>data</i> is not NULL, <i>data</i> must |
be a valid JIT stack, the result of calling <b>pcre_jit_stack_alloc()</b>. | be a valid JIT stack, the result of calling <b>pcre[16]_jit_stack_alloc()</b>. |
</P> |
</P> |
<P> |
<P> |
If <i>callback</i> not NULL, it is called with <i>data</i> as an argument at |
If <i>callback</i> not NULL, it is called with <i>data</i> as an argument at |
the start of matching, in order to set up a JIT stack. If the result is NULL, |
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 |
the internal 32K stack is used; otherwise the return value must be a valid JIT |
stack, the result of calling <b>pcre_jit_stack_alloc()</b>. | stack, the result of calling <b>pcre[16]_jit_stack_alloc()</b>. |
</P> |
</P> |
<P> |
<P> |
You may safely assign the same JIT stack to multiple patterns, as long as they |
You may safely assign the same JIT stack to multiple patterns, as long as they |