summaryrefslogtreecommitdiff
path: root/scope.c
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 /scope.c
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 'scope.c')
-rw-r--r--scope.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/scope.c b/scope.c
index b5925f7684..c2722f948d 100644
--- a/scope.c
+++ b/scope.c
@@ -1053,7 +1053,7 @@ Perl_cx_dump(pTHX_ PERL_CONTEXT *cx)
PerlIO_printf(Perl_debug_log, "BLK_FORMAT.DFOUTGV = 0x%"UVxf"\n",
PTR2UV(cx->blk_format.dfoutgv));
PerlIO_printf(Perl_debug_log, "BLK_FORMAT.HASARGS = %d\n",
- (int)cx->blk_format.hasargs);
+ (int)CxHASARGS(cx));
PerlIO_printf(Perl_debug_log, "BLK_FORMAT.RETOP = 0x%"UVxf"\n",
PTR2UV(cx->blk_format.retop));
break;
@@ -1063,9 +1063,8 @@ Perl_cx_dump(pTHX_ PERL_CONTEXT *cx)
PerlIO_printf(Perl_debug_log, "BLK_SUB.OLDDEPTH = %ld\n",
(long)cx->blk_sub.olddepth);
PerlIO_printf(Perl_debug_log, "BLK_SUB.HASARGS = %d\n",
- (int)cx->blk_sub.hasargs);
- PerlIO_printf(Perl_debug_log, "BLK_SUB.LVAL = %d\n",
- (int)cx->blk_sub.lval);
+ (int)CxHASARGS(cx));
+ PerlIO_printf(Perl_debug_log, "BLK_SUB.LVAL = %d\n", (int)CxLVAL(cx));
PerlIO_printf(Perl_debug_log, "BLK_SUB.RETOP = 0x%"UVxf"\n",
PTR2UV(cx->blk_sub.retop));
break;