]> git.vpit.fr Git - perl/modules/re-engine-Hooks.git/blob - re_defs.h
Attach the callbacks to every regexps in a thread-safe way
[perl/modules/re-engine-Hooks.git] / re_defs.h
1 EXTERN_C void reh_call_comp_begin_hook(pTHX_ regexp *);
2 EXTERN_C void reh_call_comp_hook(pTHX_ regexp *, regnode *);
3 EXTERN_C void reh_call_exec_hook(pTHX_ regexp *, regnode *, regmatch_info *, regmatch_state *);
4
5 #define REH_CALL_COMP_BEGIN_HOOK(a)       reh_call_comp_begin_hook(aTHX_ (a))
6 #define REH_CALL_REGCOMP_HOOK(a, b)       reh_call_comp_hook(aTHX_ (a), (b))
7 #define REH_CALL_REGEXEC_HOOK(a, b, c, d) reh_call_exec_hook(aTHX_ (a), (b), (c), (d))
8