diff options
author | David Mitchell <davem@iabyn.com> | 2015-10-17 13:15:06 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2016-02-03 09:18:30 +0000 |
commit | 0925dc7fc4dca2e6b5f629d00032568d5bcc2c5b (patch) | |
tree | fbebd929891630cd548efcebba584d11d89f1378 /cop.h | |
parent | 1bef65a2c897ceb4139a39df14a8514b260493bd (diff) | |
download | perl-0925dc7fc4dca2e6b5f629d00032568d5bcc2c5b.tar.gz |
PUSHLOOP_PLAIN: don't set unused fields
Currently PUSHLOOP_PLAIN sets a whole unch of fields that it isn't going
to ue to NULL or 0, e.g. blk_loop.itersave.
Skip this and leave them wild. Make cx_dump() not try to dump them for
CXt_LOOP_PLAIN
Diffstat (limited to 'cop.h')
-rw-r--r-- | cop.h | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -809,11 +809,7 @@ struct block_loop { #define PUSHLOOP_PLAIN(cx) \ cx->blk_loop.my_op = cLOOP; \ - cx->blk_loop.state_u.ary.ary = NULL; \ - cx->blk_loop.state_u.ary.ix = 0; \ - cx->cx_old_savestack_ix = PL_savestack_ix; \ - cx->blk_loop.itervar_u.svp = NULL; \ - cx->blk_loop.itersave = NULL; + cx->cx_old_savestack_ix = PL_savestack_ix; #ifdef USE_ITHREADS # define PUSHLOOP_FOR_setpad(c) (c)->blk_loop.oldcomppad = PL_comppad |