/[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 678 by ph10, Sun Aug 28 15:23:03 2011 UTC revision 691 by ph10, Sun Sep 11 14:31:21 2011 UTC
# Line 0  Line 1 
1    <html>
2    <head>
3    <title>pcre_assign_jit_stack specification</title>
4    </head>
5    <body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
6    <h1>pcre_assign_jit_stack man page</h1>
7    <p>
8    Return to the <a href="index.html">PCRE index page</a>.
9    </p>
10    <p>
11    This page is part of the PCRE HTML documentation. It was generated automatically
12    from the original man page. If there is any nonsense in it, please consult the
13    man page, in case the conversion went wrong.
14    <br>
15    <br><b>
16    SYNOPSIS
17    </b><br>
18    <P>
19    <b>#include &#60;pcre.h&#62;</b>
20    </P>
21    <P>
22    <b>void pcre_assign_jit_stack(pcre_extra *<i>extra</i>, </b>
23    <b>pcre_jit_callback <i>callback</i>, void *<i>data</i>);</b>
24    </P>
25    <br><b>
26    DESCRIPTION
27    </b><br>
28    <P>
29    This function provides control over the memory used as a stack at runtime by a
30    call to <b>pcre_exec()</b> with a pattern that has been successfully compiled
31    with JIT optimization. The arguments are:
32    <pre>
33      extra     the data pointer returned by <b>pcre_study()</b>
34      callback  a callback function
35      data      a JIT stack or a value to be passed to the callback
36                  function
37    </PRE>
38    </P>
39    <P>
40    If <i>callback</i> is NULL and <i>data</i> is NULL, an internal 32K block on
41    the machine stack is used.
42    </P>
43    <P>
44    If <i>callback</i> is NULL and <i>data</i> is not NULL, <i>data</i> must
45    be a valid JIT stack, the result of calling <b>pcre_jit_stack_alloc()</b>.
46    </P>
47    <P>
48    If <i>callback</i> not NULL, it is called with <i>data</i> as an argument at
49    the start of matching, in order to set up a JIT stack. If the result is NULL,
50    the internal 32K stack is used; otherwise the return value must be a valid JIT
51    stack, the result of calling <b>pcre_jit_stack_alloc()</b>.
52    </P>
53    <P>
54    You may safely assign the same JIT stack to multiple patterns, as long as they
55    are all matched in the same thread. In a multithread application, each thread
56    must use its own JIT stack. For more details, see the
57    <a href="pcrejit.html"><b>pcrejit</b></a>
58    page.
59    </P>
60    <P>
61    There is a complete description of the PCRE native API in the
62    <a href="pcreapi.html"><b>pcreapi</b></a>
63    page and a description of the POSIX API in the
64    <a href="pcreposix.html"><b>pcreposix</b></a>
65    page.
66    <p>
67    Return to the <a href="index.html">PCRE index page</a>.
68    </p>

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

  ViewVC Help
Powered by ViewVC 1.1.5