summaryrefslogtreecommitdiff
path: root/cop.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2015-10-17 13:15:06 +0100
committerDavid Mitchell <davem@iabyn.com>2016-02-03 09:18:30 +0000
commit0925dc7fc4dca2e6b5f629d00032568d5bcc2c5b (patch)
treefbebd929891630cd548efcebba584d11d89f1378 /cop.h
parent1bef65a2c897ceb4139a39df14a8514b260493bd (diff)
downloadperl-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.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/cop.h b/cop.h
index 252eeb93b0..ba9d4251a8 100644
--- a/cop.h
+++ b/cop.h
@@ -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