summaryrefslogtreecommitdiff
path: root/cop.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-01-20 21:50:31 +0000
committerNicholas Clark <nick@ccl4.org>2008-01-20 21:50:31 +0000
commitbafb2adc256d4363e483e0aed4b43fdcf2c57a9b (patch)
treeec956c6724ff74555a0770b1fabb55b6a0a374db /cop.h
parent8e6639977ceec4416fe89fd83cf666f06787f259 (diff)
downloadperl-bafb2adc256d4363e483e0aed4b43fdcf2c57a9b.tar.gz
In struct block_sub and block_format, access the members hasargs and
lval via macros CxHASARGS() and CxLVAL(), which will allow the storage location to be changed. p4raw-id: //depot/perl@33017
Diffstat (limited to 'cop.h')
-rw-r--r--cop.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/cop.h b/cop.h
index 209ee2a1cb..c03dfdcae9 100644
--- a/cop.h
+++ b/cop.h
@@ -364,7 +364,7 @@ struct block_format {
CopFILE((COP*)CvSTART((CV*)cx->blk_sub.cv)), \
CopLINE((COP*)CvSTART((CV*)cx->blk_sub.cv))); \
\
- if (cx->blk_sub.hasargs) { \
+ if (CxHASARGS(cx)) { \
POP_SAVEARRAY(); \
/* abandon @_ if it got reified */ \
if (AvREAL(cx->blk_sub.argarray)) { \
@@ -488,6 +488,8 @@ struct block_loop {
cx->blk_loop.itersave = NULL;
#endif
#define CxLABEL(c) (0 + (c)->blk_oldcop->cop_label)
+#define CxHASARGS(c) (0 + (c)->blk_sub.hasargs)
+#define CxLVAL(c) (0 + (c)->blk_sub.lval)
#ifdef USE_ITHREADS
# define PUSHLOOP_OP_NEXT /* No need to do anything. */