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

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

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

revision 683 by ph10, Tue Sep 6 10:37:15 2011 UTC revision 691 by ph10, Sun Sep 11 14:31:21 2011 UTC
# Line 7  PCRE - Perl-compatible regular expressio Line 7  PCRE - Perl-compatible regular expressio
7  .B #include <pcre.h>  .B #include <pcre.h>
8  .PP  .PP
9  .SM  .SM
10  .B void pcre_assign_jit_stack(pcre_extra *\fIextra\fP,  .B void pcre_assign_jit_stack(pcre_extra *\fIextra\fP,
11  .ti +5n  .ti +5n
12  .B pcre_jit_callback \fIcallback\fP, void *\fIdata\fP);  .B pcre_jit_callback \fIcallback\fP, void *\fIdata\fP);
13  .  .
# Line 20  with JIT optimization. The arguments are Line 20  with JIT optimization. The arguments are
20  .sp  .sp
21    extra     the data pointer returned by \fBpcre_study()\fP    extra     the data pointer returned by \fBpcre_study()\fP
22    callback  a callback function    callback  a callback function
23    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
24                function                function
25  .P  .P
26  If \fIcallback\fP is NULL and \fIdata\fP is NULL, an internal 32K block on  If \fIcallback\fP is NULL and \fIdata\fP is NULL, an internal 32K block on
# Line 30  If \fIcallback\fP is NULL and \fIdata\fP Line 30  If \fIcallback\fP is NULL and \fIdata\fP
30  be a valid JIT stack, the result of calling \fBpcre_jit_stack_alloc()\fP.  be a valid JIT stack, the result of calling \fBpcre_jit_stack_alloc()\fP.
31  .P  .P
32  If \fIcallback\fP not NULL, it is called with \fIdata\fP as an argument at  If \fIcallback\fP not NULL, it is called with \fIdata\fP as an argument at
33  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,
34  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
35  stack, the result of calling \fBpcre_jit_stack_alloc()\fP.  stack, the result of calling \fBpcre_jit_stack_alloc()\fP.
36  .P  .P
37  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
38  are all matched in the same thread. In a multithread application, each thread  are all matched in the same thread. In a multithread application, each thread
39  must use its own JIT stack. For more details, see the  must use its own JIT stack. For more details, see the
40  .\" HREF  .\" HREF
41  \fBpcrejit\fP  \fBpcrejit\fP

Legend:
Removed from v.683  
changed lines
  Added in v.691

  ViewVC Help
Powered by ViewVC 1.1.5