X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Fre-engine-Hooks.git;a=blobdiff_plain;f=t%2Fre-engine-Hooks-TestDist%2FTestDist.xs;h=0005b019b09b36074583c0b279d01a8f74934ffc;hp=4e1d5119daa6fab681e9e069f3c3b3423cc64ed7;hb=3873fbc39d250734131e096da47add0cf601d194;hpb=d2b7e04fb8d40639a353ea53a1957b9872373c8b diff --git a/t/re-engine-Hooks-TestDist/TestDist.xs b/t/re-engine-Hooks-TestDist/TestDist.xs index 4e1d511..0005b01 100644 --- a/t/re-engine-Hooks-TestDist/TestDist.xs +++ b/t/re-engine-Hooks-TestDist/TestDist.xs @@ -22,33 +22,33 @@ STATIC SV *reht_foo_var; av_push((AV *) SvRV(V), sv); \ } } while (0) -STATIC void reht_foo_comp(pTHX_ regexp *rx, regnode *node) { +STATIC void reht_foo_comp_node(pTHX_ regexp *rx, regnode *node) { REHT_PUSH_NODE_NAME(reht_foo_var, "c:"); } -STATIC void reht_foo_exec(pTHX_ regexp *rx, regnode *node, regmatch_info *reginfo, regmatch_state *st) { +STATIC void reht_foo_exec_node(pTHX_ regexp *rx, regnode *node, regmatch_info *reginfo, regmatch_state *st) { REHT_PUSH_NODE_NAME(reht_foo_var, "e:"); } STATIC SV *reht_bar_var; -STATIC void reht_bar_comp(pTHX_ regexp *rx, regnode *node) { +STATIC void reht_bar_comp_node(pTHX_ regexp *rx, regnode *node) { REHT_PUSH_NODE_NAME(reht_bar_var, "c:"); } -STATIC void reht_bar_exec(pTHX_ regexp *rx, regnode *node, regmatch_info *reginfo, regmatch_state *st) { +STATIC void reht_bar_exec_node(pTHX_ regexp *rx, regnode *node, regmatch_info *reginfo, regmatch_state *st) { REHT_PUSH_NODE_NAME(reht_bar_var, "e:"); } STATIC SV *reht_custom_var; -STATIC void reht_custom_comp(pTHX_ regexp *rx, regnode *node) { +STATIC void reht_custom_comp_node(pTHX_ regexp *rx, regnode *node) { const char *node_name; node_name = PL_reg_name[OP(node)]; } -STATIC void reht_custom_exec(pTHX_ regexp *rx, regnode *node, regmatch_info *reginfo, regmatch_state *st) { +STATIC void reht_custom_exec_node(pTHX_ regexp *rx, regnode *node, regmatch_info *reginfo, regmatch_state *st) { STRLEN node_namelen; const char *node_name; @@ -81,24 +81,24 @@ BOOT: { { reh_config foo_cfg; - foo_cfg.comp = reht_foo_comp; - foo_cfg.exec = reht_foo_exec; + foo_cfg.comp_node = reht_foo_comp_node; + foo_cfg.exec_node = reht_foo_exec_node; reh_register(__PACKAGE__ "::foo", &foo_cfg); reht_foo_var = NULL; } { reh_config bar_cfg; - bar_cfg.comp = reht_bar_comp; - bar_cfg.exec = reht_bar_exec; + bar_cfg.comp_node = reht_bar_comp_node; + bar_cfg.exec_node = reht_bar_exec_node; reh_register(__PACKAGE__ "::bar", &bar_cfg); reht_bar_var = NULL; } { reh_config custom_cfg; - custom_cfg.comp = reht_custom_comp; - custom_cfg.exec = reht_custom_exec; + custom_cfg.comp_node = reht_custom_comp_node; + custom_cfg.exec_node = reht_custom_exec_node; reh_register(__PACKAGE__ "::custom", &custom_cfg); reht_custom_var = NULL; }