/[pcre]/code/trunk/doc/html/pcre_assign_jit_stack.html
ViewVC logotype

Diff of /code/trunk/doc/html/pcre_assign_jit_stack.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1193 by ph10, Sat Jun 2 11:03:06 2012 UTC revision 1194 by ph10, Wed Oct 31 17:42:29 2012 UTC
# Line 26  SYNOPSIS Line 26  SYNOPSIS
26  <b>void pcre16_assign_jit_stack(pcre16_extra *<i>extra</i>,</b>  <b>void pcre16_assign_jit_stack(pcre16_extra *<i>extra</i>,</b>
27  <b>pcre16_jit_callback <i>callback</i>, void *<i>data</i>);</b>  <b>pcre16_jit_callback <i>callback</i>, void *<i>data</i>);</b>
28  </P>  </P>
29    <P>
30    <b>void pcre32_assign_jit_stack(pcre32_extra *<i>extra</i>,</b>
31    <b>pcre32_jit_callback <i>callback</i>, void *<i>data</i>);</b>
32    </P>
33  <br><b>  <br><b>
34  DESCRIPTION  DESCRIPTION
35  </b><br>  </b><br>
36  <P>  <P>
37  This function provides control over the memory used as a stack at run-time by a  This function provides control over the memory used as a stack at run-time by a
38  call to <b>pcre[16]_exec()</b> with a pattern that has been successfully  call to <b>pcre[16|32]_exec()</b> with a pattern that has been successfully
39  compiled with JIT optimization. The arguments are:  compiled with JIT optimization. The arguments are:
40  <pre>  <pre>
41    extra     the data pointer returned by <b>pcre[16]_study()</b>    extra     the data pointer returned by <b>pcre[16|32]_study()</b>
42    callback  a callback function    callback  a callback function
43    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
44                function                function
# Line 46  the machine stack is used. Line 50  the machine stack is used.
50  </P>  </P>
51  <P>  <P>
52  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
53  be a valid JIT stack, the result of calling <b>pcre[16]_jit_stack_alloc()</b>.  be a valid JIT stack, the result of calling <b>pcre[16|32]_jit_stack_alloc()</b>.
54  </P>  </P>
55  <P>  <P>
56  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
57  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,
58  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
59  stack, the result of calling <b>pcre[16]_jit_stack_alloc()</b>.  stack, the result of calling <b>pcre[16|32]_jit_stack_alloc()</b>.
60  </P>  </P>
61  <P>  <P>
62  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

Legend:
Removed from v.1193  
changed lines
  Added in v.1194

  ViewVC Help
Powered by ViewVC 1.1.5