Permalink
Browse files

regcomp.c: Add #ifdefs for RE_TRACK_PATTERN_OFFSETS

This is supposed to be independent of DEBUGGING, but in fact regcomp.c
would not compile unless both were false or both true
  • Loading branch information...
khwilliamson committed Sep 15, 2018
1 parent 0af5036 commit 8251705ce3083952e12693af699e0dc4b0fe264b
Showing with 4 additions and 0 deletions.
  1. +4 −0 regcomp.c
@@ -3467,7 +3467,9 @@ S_make_trie(pTHX_ RExC_state_t *pRExC_state, regnode *startbranch,
) {
regnode *fix = convert;
U32 word = trie->wordcount;
#ifdef RE_TRACK_PATTERN_OFFSETS
mjd_nodelen++;
#endif
Set_Node_Offset_Length(convert, mjd_offset, state - 1);
while( ++fix < n ) {
Set_Node_Offset_Length(fix, 0, 0);
@@ -3541,7 +3543,9 @@ S_make_trie(pTHX_ RExC_state_t *pRExC_state, regnode *startbranch,
optimisation.
*/
while( optimize < jumper ) {
#ifdef RE_TRACK_PATTERN_OFFSETS
mjd_nodelen += Node_Length((optimize));
#endif
OP( optimize ) = OPTIMIZED;
Set_Node_Offset_Length(optimize,0,0);
optimize++;

0 comments on commit 8251705

Please sign in to comment.