1PCRE2_SET_RECURSION_MEMORY_MLAiNbArGaErMyENFTu(n3cP)tCiRoEn2s_SMEaTn_uRaElCURSION_MEMORY_MANAGEMENT(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_recursion_memory_management(
13         pcre2_match_context *mcontext,
14         void *(*private_malloc)(PCRE2_SIZE, void *),
15         void (*private_free)(void *, void *), void *memory_data);
16

DESCRIPTION

18
19       This  function  sets the match context fields for custom memory manage‐
20       ment when PCRE2 is compiled to use the heap instead of the system stack
21       for  recursive function calls while matching. When PCRE2 is compiled to
22       use the stack (the default) this function does nothing. The first argu‐
23       ment  is a match context, the second and third specify the memory allo‐
24       cation and freeing functions, and the final argument is an opaque value
25       that  is  passed  to  them whenever they are called. The result of this
26       function is always zero.
27
28       There is a complete description of the PCRE2 native API in the pcre2api
29       page and a description of the POSIX API in the pcre2posix page.
30
31
32
33PCRE2 10.00                     24 OctoPbCeRrE22_0S1E4T_RECURSION_MEMORY_MANAGEMENT(3)
Impressum