]> git.vpit.fr Git - perl/modules/re-engine-Hooks.git/blob - re_engine_hooks.h
Correct two prototypes on 5.20
[perl/modules/re-engine-Hooks.git] / re_engine_hooks.h
1 /* This file is part of the re::engine::Hooks Perl module.
2  * See http://search.cpan.org/dist/re-engine-Hooks/ */
3
4 #ifndef RE_ENGINE_HOOKS_H
5 #define RE_ENGINE_HOOKS_H 1
6
7 typedef void (*reh_comp_node_hook)(pTHX_ regexp *, regnode *);
8 typedef void (*reh_exec_node_hook)(pTHX_ regexp *, regnode *, regmatch_info *, regmatch_state *);
9
10 typedef struct {
11  reh_comp_node_hook comp_node;
12  reh_exec_node_hook exec_node;
13 } reh_config;
14
15 void reh_register(pTHX_ const char *, reh_config *);
16 #define reh_register(K, C) reh_register(aTHX_ (K), (C))
17
18 #endif /* RE_ENGINE_HOOKS_H */
19