X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=src%2F5011000%2Fregcomp.c;h=53c8ba1b57f58721ce2052e5c8a686af0d4bf431;hb=f609ee10b4b981c6c131936a39d13108d608a4fc;hp=497219f4653e19f7f23ad588c8e743ade8047405;hpb=be51951333b8f0da55af1243a039e74bb15dedcd;p=perl%2Fmodules%2Fre-engine-Hooks.git diff --git a/src/5011000/regcomp.c b/src/5011000/regcomp.c index 497219f..53c8ba1 100644 --- a/src/5011000/regcomp.c +++ b/src/5011000/regcomp.c @@ -2138,6 +2138,7 @@ S_make_trie(pTHX_ RExC_state_t *pRExC_state, regnode *startbranch, regnode *firs Set_Node_Offset_Length(convert,mjd_offset,mjd_nodelen); }); } /* end node insert */ + REH_CALL_COMP_NODE_HOOK(pRExC_state->rx, convert); RExC_rxi->data->data[ data_slot + 1 ] = (void*)widecharmap; #ifdef DEBUGGING RExC_rxi->data->data[ data_slot + TRIE_WORDS_OFFSET ] = (void*)trie_words; @@ -4162,7 +4163,7 @@ Perl_reginitcolors(pTHX) #ifndef PERL_IN_XSUB_RE -#define RE_ENGINE_PTR &PL_core_reg_engine +#define RE_ENGINE_PTR &reh_regexp_engine #else extern const struct regexp_engine my_reg_engine; #define RE_ENGINE_PTR &my_reg_engine @@ -8583,7 +8584,7 @@ S_reg_node(pTHX_ RExC_state_t *pRExC_state, U8 op) NODE_ALIGN_FILL(ret); ptr = ret; FILL_ADVANCE_NODE(ptr, op); - REH_CALL_REGCOMP_HOOK(pRExC_state->rx, (ptr) - 1); + REH_CALL_COMP_NODE_HOOK(pRExC_state->rx, (ptr) - 1); #ifdef RE_TRACK_PATTERN_OFFSETS if (RExC_offsets) { /* MJD */ MJD_OFFSET_DEBUG(("%s:%d: (op %s) %s %"UVuf" (len %"UVuf") (max %"UVuf").\n", @@ -8639,7 +8640,7 @@ S_reganode(pTHX_ RExC_state_t *pRExC_state, U8 op, U32 arg) NODE_ALIGN_FILL(ret); ptr = ret; FILL_ADVANCE_NODE_ARG(ptr, op, arg); - REH_CALL_REGCOMP_HOOK(pRExC_state->rx, (ptr) - 2); + REH_CALL_COMP_NODE_HOOK(pRExC_state->rx, (ptr) - 2); #ifdef RE_TRACK_PATTERN_OFFSETS if (RExC_offsets) { /* MJD */ MJD_OFFSET_DEBUG(("%s(%d): (op %s) %s %"UVuf" <- %"UVuf" (max %"UVuf").\n", @@ -8756,7 +8757,7 @@ S_reginsert(pTHX_ RExC_state_t *pRExC_state, U8 op, regnode *opnd, U32 depth) #endif src = NEXTOPER(place); FILL_ADVANCE_NODE(place, op); - REH_CALL_REGCOMP_HOOK(pRExC_state->rx, (place) - 1); + REH_CALL_COMP_NODE_HOOK(pRExC_state->rx, (place) - 1); Zero(src, offset, regnode); }