From bafb2adc256d4363e483e0aed4b43fdcf2c57a9b Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Sun, 20 Jan 2008 21:50:31 +0000 Subject: 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 --- pp_hot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pp_hot.c') diff --git a/pp_hot.c b/pp_hot.c index ad9e0ea5fc..95a757d5d5 100644 --- a/pp_hot.c +++ b/pp_hot.c @@ -2505,7 +2505,7 @@ PP(pp_leavesublv) TAINT_NOT; - if (cx->blk_sub.lval & OPpENTERSUB_INARGS) { + if (CxLVAL(cx) & OPpENTERSUB_INARGS) { /* We are an argument to a function or grep(). * This kind of lvalueness was legal before lvalue * subroutines too, so be backward compatible: @@ -2532,7 +2532,7 @@ PP(pp_leavesublv) } } } - else if (cx->blk_sub.lval) { /* Leave it as it is if we can. */ + else if (CxLVAL(cx)) { /* Leave it as it is if we can. */ /* Here we go for robustness, not for speed, so we change all * the refcounts so the caller gets a live guy. Cannot set * TEMP, so sv_2mortal is out of question. */ -- cgit v1.2.1