diff options
author | Karl Williamson <khw@cpan.org> | 2014-09-14 22:25:47 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2014-09-29 11:07:39 -0600 |
commit | ab4ad2b039e3f3ef88c73577588316a24010ffec (patch) | |
tree | f12ad2b71fc1a71f31daf9e2f871ae2aaf06fe1a /regcomp.c | |
parent | a6cd0feae31ef21ba4a856dce379d30fceab3849 (diff) | |
download | perl-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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); } |