X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Fre-engine-Hooks.git;a=blobdiff_plain;f=lib%2Fre%2Fengine%2FHooks.pm;h=97da688e29e21f3c1e1e2a61ef7927eea2a1dad5;hp=43683e5dc123d4f5d3cb06c85586d1ca00385f19;hb=3873fbc39d250734131e096da47add0cf601d194;hpb=d2b7e04fb8d40639a353ea53a1957b9872373c8b diff --git a/lib/re/engine/Hooks.pm b/lib/re/engine/Hooks.pm index 43683e5..97da688 100644 --- a/lib/re/engine/Hooks.pm +++ b/lib/re/engine/Hooks.pm @@ -32,7 +32,7 @@ In your XS file : #include "re_engine_hooks.h" - STATIC void dri_comp_hook(pTHX_ regexp *rx, regnode *node) { + STATIC void dri_comp_node_hook(pTHX_ regexp *rx, regnode *node) { ... } @@ -46,8 +46,8 @@ In your XS file : BOOT: { reh_config cfg; - cfg.comp = dri_comp_hook; - cfg.exec = dri_exec_hook; + cfg.comp_node = dri_comp_node_hook; + cfg.exec_node = dri_exec_node_hook; reh_register("Devel::Regexp::Instrument", &cfg); } @@ -96,19 +96,19 @@ This module provides a version of the perl regexp engine that can call user-defi The C API is made available through the F header file. -=head2 C +=head2 C -The typedef for the regexp compilation phase hook. +The typedef for the regexp node compilation phase hook. Currently evaluates to : - typedef void (*reh_comp_hook)(pTHX_ regexp *, regnode *); + typedef void (*reh_comp_node_hook)(pTHX_ regexp *, regnode *); =head2 C -The typedef for the regexp execution phase hook. +The typedef for the regexp node_execution phase hook. Currently evaluates to : - typedef void (*reh_exec_hook)(pTHX_ regexp *, regnode *, regmatch_info *, regmatch_state *); + typedef void (*reh_exec_node_hook)(pTHX_ regexp *, regnode *, regmatch_info *, regmatch_state *); =head2 C @@ -119,16 +119,16 @@ It has the following members : =item * -C +C -A function pointer of type C that will be called each time a regnode is compiled. +A function pointer of type C that will be called each time a regnode is compiled. Allowed to be C if you don't want to call anything for this phase. =item * -C +C -A function pointer of type C that will be called each time a regnode is executed. +A function pointer of type C that will be called each time a regnode is executed. Allowed to be C if you don't want to call anything for this phase. =back