PCRE_ASSIGN_JIT_STACK(3)Library Functions ManualPCRE_ASSIGN_JIT_STACK(3)PCRE - Perl-compatible regular expressions
#include <pcre.h>void pcre_assign_jit_stack(pcre_extra *extra,pcre_jit_callbackcallback, void *data);void pcre16_assign_jit_stack(pcre16_extra *extra,pcre16_jit_callbackcallback, void *data);void pcre32_assign_jit_stack(pcre32_extra *extra,pcre32_jit_callbackcallback, void *data);
This function provides control over the memory used as a stack at run-time by a call topcre[16|32]_exec()with a pattern that has been successfully compiled with JIT optimization. The arguments are: extra the data pointer returned bypcre[16|32]_study() callback a callback function data a JIT stack or a value to be passed to the callback function Ifcallback is NULL anddata is NULL, an internal 32K block on the machine stack is used. Ifcallback is NULL anddata is not NULL,data must be a valid JIT stack, the result of callingpcre[16|32]_jit_stack_alloc(). Ifcallback not NULL, it is called withdata as an argument at the start of matching, in order to set up a JIT stack. If the result is NULL, the internal 32K stack is used; otherwise the return value must be a valid JIT stack, the result of callingpcre[16|32]_jit_stack_alloc(). You may safely assign the same JIT stack to multiple patterns, as long as they are all matched in the same thread. In a multithread application, each thread must use its own JIT stack. For more details, see thepcrejitpage. There is a complete description of the PCRE native API in thepcreapipage and a description of the POSIX API in thepcreposix page.
This page is part of thePCRE (Perl Compatible Regular Expressions) project. Information about the project can be found at ⟨http://www.pcre.org/⟩. If you have a bug report for this manual page, see ⟨http://bugs.exim.org/enter_bug.cgi?product=PCRE⟩. This page was obtained from the tarball pcre-8.45.tar.gz fetched from ⟨ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/⟩ on 2021-08-27. If you discover any rendering problems in this HTML version of the page, or you believe there is a better or more up- to-date source for the page, or you have corrections or improvements to the information in this COLOPHON (which isnot part of the original manual page), send a mail to man-pages@man7.orgPCRE 8.30 24 June 2012 PCRE_ASSIGN_JIT_STACK(3)HTML rendering created 2021-08-27 byMichael Kerrisk, author ofThe Linux Programming Interface, maintainer of theLinuxman-pages project. For details of in-depthLinux/UNIX system programming training courses that I teach, lookhere. Hosting byjambit GmbH. | ![]() |