summaryrefslogtreecommitdiff
path: root/cop.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2015-12-26 11:39:30 +0000
committerDavid Mitchell <davem@iabyn.com>2016-02-03 09:19:18 +0000
commitfd9b7244731b18bb1794c4ff6540e4040e51879b (patch)
treecafd34f6763a5bbb13041545bfaa905b62363fc8 /cop.h
parent47878d9caf766872f9956edf713aa65c5b6383aa (diff)
downloadperl-fd9b7244731b18bb1794c4ff6540e4040e51879b.tar.gz
PUSHBLOCK: don't use implicit args
Make gimme a parameter of PUSHBLOCK() rather than just assuming that there's a 'gimme' var in scope.
Diffstat (limited to 'cop.h')
-rw-r--r--cop.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/cop.h b/cop.h
index f58e89c2ce..1fa485eb73 100644
--- a/cop.h
+++ b/cop.h
@@ -961,7 +961,7 @@ struct block {
__FILE__, __LINE__));
/* Enter a block. */
-#define PUSHBLOCK(cx,t,sp, saveix) \
+#define PUSHBLOCK(cx, t, gimme, sp, saveix) \
CXINC, \
cx = CX_CUR(), \
cx->cx_type = t, \
@@ -1343,8 +1343,8 @@ See L<perlcall/LIGHTWEIGHT CALLBACKS>.
multicall_oldcatch = CATCH_GET; \
CATCH_SET(TRUE); \
PUSHSTACKi(PERLSI_MULTICALL); \
- PUSHBLOCK(cx, (CXt_SUB|CXp_MULTICALL|flags), PL_stack_sp, \
- PL_savestack_ix); \
+ PUSHBLOCK(cx, (CXt_SUB|CXp_MULTICALL|flags), gimme, \
+ PL_stack_sp, PL_savestack_ix); \
PUSHSUB(cx); \
SAVEOP(); \
saveix_floor = PL_savestack_ix; \