1PCRE2_SET_COMPILE_RECURSION_LGiUbArRaDr(y3)FunctionPsCRMEa2n_uSaElT_COMPILE_RECURSION_GUARD(3)
2
3
4

NAME

6       PCRE2 - Perl-compatible regular expressions (revised API)
7

SYNOPSIS

9
10       #include <pcre2.h>
11
12       int pcre2_set_compile_recursion_guard(pcre2_compile_context *ccontext,
13         int (*guard_function)(uint32_t, void *), void *user_data);
14

DESCRIPTION

16
17       This  function  defines,  within  a compile context, a function that is
18       called whenever pcre2_compile() starts to compile a parenthesized  part
19       of  a  pattern.  The  first  argument to the function gives the current
20       depth of parenthesis nesting, and the second is user data that is  sup‐
21       plied  when  the function is set up. The callout function should return
22       zero if all is well, or non-zero to force an  error.  This  feature  is
23       provided  so  that  applications  can  check the available system stack
24       space, in order to avoid running  out.  The  result  of  pcre2_set_com‐
25       pile_recursion_guard() is always zero.
26
27       There is a complete description of the PCRE2 native API in the pcre2api
28       page and a description of the POSIX API in the pcre2posix page.
29
30
31
32PCRE2 10.00                     22 OctoberP2C0R1E42_SET_COMPILE_RECURSION_GUARD(3)
Impressum