summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2014-09-14 22:25:47 -0600
committerKarl Williamson <khw@cpan.org>2014-09-29 11:07:39 -0600
commitab4ad2b039e3f3ef88c73577588316a24010ffec (patch)
treef12ad2b71fc1a71f31daf9e2f871ae2aaf06fe1a /regcomp.c
parenta6cd0feae31ef21ba4a856dce379d30fceab3849 (diff)
downloadperl-ab4ad2b039e3f3ef88c73577588316a24010ffec.tar.gz
regcomp.c: Move some statements
These statements are moved to after the debugging code so that the two functions are essentially identical before them. This will allow the two to be combined in a future commit. I verified by testing that the debugging info was not affected.
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/regcomp.c b/regcomp.c
index 2b6993891c..350fdd533a 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -15438,8 +15438,6 @@ S_reg_node(pTHX_ RExC_state_t *pRExC_state, U8 op)
op, (void*)RExC_emit, (void*)RExC_emit_bound);
NODE_ALIGN_FILL(ret);
- ptr = ret;
- FILL_ADVANCE_NODE(ptr, op);
#ifdef RE_TRACK_PATTERN_OFFSETS
if (RExC_offsets) { /* MJD */
MJD_OFFSET_DEBUG(
@@ -15454,6 +15452,8 @@ S_reg_node(pTHX_ RExC_state_t *pRExC_state, U8 op)
Set_Node_Offset(RExC_emit, RExC_parse + (op == END));
}
#endif
+ ptr = ret;
+ FILL_ADVANCE_NODE(ptr, op);
RExC_emit = ptr;
return(ret);
}
@@ -15494,8 +15494,6 @@ S_reganode(pTHX_ RExC_state_t *pRExC_state, U8 op, U32 arg)
op, (void*)RExC_emit, (void*)RExC_emit_bound);
NODE_ALIGN_FILL(ret);
- ptr = ret;
- FILL_ADVANCE_NODE_ARG(ptr, op, arg);
#ifdef RE_TRACK_PATTERN_OFFSETS
if (RExC_offsets) { /* MJD */
MJD_OFFSET_DEBUG(
@@ -15511,6 +15509,8 @@ S_reganode(pTHX_ RExC_state_t *pRExC_state, U8 op, U32 arg)
Set_Cur_Node_Offset;
}
#endif
+ ptr = ret;
+ FILL_ADVANCE_NODE_ARG(ptr, op, arg);
RExC_emit = ptr;
return(ret);
}