summaryrefslogtreecommitdiff
path: root/cop.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2010-09-08 12:41:14 +0100
committerDavid Mitchell <davem@iabyn.com>2010-09-08 14:48:29 +0100
commitd873ee11fec56c8f6e86858fdb41e2a540ada0ea (patch)
treecb1b8f07a14927f9a558fe016abe6254c41e5795 /cop.h
parentd57ce4dfca04719829a488a820a1248efb7e81a7 (diff)
downloadperl-d873ee11fec56c8f6e86858fdb41e2a540ada0ea.tar.gz
eliminate targoffset from struct block_loop
This value is also available via via cx->blk_loop.my_op->op_targ
Diffstat (limited to 'cop.h')
-rw-r--r--cop.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/cop.h b/cop.h
index e6b9bcb847..4c269a72de 100644
--- a/cop.h
+++ b/cop.h
@@ -448,9 +448,7 @@ struct block_loop {
I32 resetsp;
LOOP * my_op; /* My op, that contains redo, next and last ops. */
#ifdef USE_ITHREADS
- PAD *oldcomppad; /* Also used for the GV, if targoffset is 0 */
- /* This is also accesible via cx->blk_loop.my_op->op_targ */
- PADOFFSET targoffset;
+ PAD *oldcomppad; /* Also used for the GV, if my_op->op_targ is 0 */
#else
SV ** itervar;
#endif
@@ -474,11 +472,11 @@ struct block_loop {
# define CxITERVAR(c) \
((c)->blk_loop.oldcomppad \
? (CxPADLOOP(c) \
- ? &CX_CURPAD_SV( (c)->blk_loop, (c)->blk_loop.targoffset ) \
+ ? &CX_CURPAD_SV( (c)->blk_loop, (c)->blk_loop.my_op->op_targ) \
: &GvSV((GV*)(c)->blk_loop.oldcomppad)) \
: (SV**)NULL)
# define CX_ITERDATA_SET(cx,idata,o) \
- if ((cx->blk_loop.targoffset = (o))) \
+ if (cx->blk_loop.my_op->op_targ) \
CX_CURPAD_SAVE(cx->blk_loop); \
else \
cx->blk_loop.oldcomppad = (idata);
@@ -701,7 +699,7 @@ struct context {
/* private flags for CXt_LOOP */
#define CXp_FOR_DEF 0x10 /* foreach using $_ */
#ifdef USE_ITHREADS
-# define CxPADLOOP(c) ((c)->blk_loop.targoffset)
+# define CxPADLOOP(c) ((c)->blk_loop.my_op->op_targ)
#endif
/* private flags for CXt_SUBST */