1 /* This file is part of the re::engine::Hooks Perl module.
2 * See http://search.cpan.org/dist/re-engine-Hooks/ */
4 #ifndef RE_ENGINE_HOOKS_H
5 #define RE_ENGINE_HOOKS_H 1
7 typedef void (*reh_comp_hook)(pTHX_ regexp *, regnode *);
8 typedef void (*reh_exec_hook)(pTHX_ regexp *, regnode *, regmatch_info *, regmatch_state *);
10 void reh_register(pTHX_ const char *key, reh_comp_hook comp, reh_exec_hook exec);
11 #define reh_register(K, C, E) reh_register(aTHX_ (K), (C), (E))
13 #endif /* RE_ENGINE_HOOKS_H */