summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-09-01 15:05:10 +0000
committerNicholas Clark <nick@ccl4.org>2006-09-01 15:05:10 +0000
commit006bba40b64d69fcc85f3e7a0fe4b845e93164c0 (patch)
treec750def4369bc917d9b2fdc096f32e338dc79bdc /pp_ctl.c
parent78c72037c327e2cd8ede6cf098324435a670ca67 (diff)
downloadperl-006bba40b64d69fcc85f3e7a0fe4b845e93164c0.tar.gz
Access cx->blk_sub.hasargs via a pair of macros (as it's about to
move) p4raw-id: //depot/perl@28772
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index acc7d57a35..5efbdc5b2c 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -1641,11 +1641,11 @@ PP(pp_caller)
SV * const sv = newSV(0);
gv_efullname3(sv, cvgv, NULL);
PUSHs(sv_2mortal(sv));
- PUSHs(sv_2mortal(newSViv((I32)cx->blk_sub.hasargs)));
+ PUSHs(sv_2mortal(newSViv((I32)CX_SUB_HASARGS_GET(cx))));
}
else {
PUSHs(sv_2mortal(newSVpvs("(unknown)")));
- PUSHs(sv_2mortal(newSViv((I32)cx->blk_sub.hasargs)));
+ PUSHs(sv_2mortal(newSViv((I32)CX_SUB_HASARGS_GET(cx))));
}
}
else {
@@ -1678,7 +1678,7 @@ PP(pp_caller)
PUSHs(&PL_sv_undef);
PUSHs(&PL_sv_undef);
}
- if (CxTYPE(cx) == CXt_SUB && cx->blk_sub.hasargs
+ if (CxTYPE(cx) == CXt_SUB && CX_SUB_HASARGS_GET(cx)
&& CopSTASH_eq(PL_curcop, PL_debstash))
{
AV * const ary = cx->blk_sub.argarray;
@@ -2348,7 +2348,7 @@ PP(pp_goto)
}
else if (CxMULTICALL(cx))
DIE(aTHX_ "Can't goto subroutine from a sort sub (or similar callback)");
- if (CxTYPE(cx) == CXt_SUB && cx->blk_sub.hasargs) {
+ if (CxTYPE(cx) == CXt_SUB && CX_SUB_HASARGS_GET(cx)) {
/* put @_ back onto stack */
AV* av = cx->blk_sub.argarray;
@@ -2410,7 +2410,7 @@ PP(pp_goto)
PL_in_eval = cx->blk_eval.old_in_eval;
PL_eval_root = cx->blk_eval.old_eval_root;
cx->cx_type = CXt_SUB;
- cx->blk_sub.hasargs = 0;
+ CX_SUB_HASARGS_SET(cx, 0);
}
cx->blk_sub.cv = cv;
cx->blk_sub.olddepth = CvDEPTH(cv);
@@ -2425,7 +2425,7 @@ PP(pp_goto)
}
SAVECOMPPAD();
PAD_SET_CUR_NOSAVE(padlist, CvDEPTH(cv));
- if (cx->blk_sub.hasargs)
+ if (CX_SUB_HASARGS_GET(cx))
{
AV* const av = (AV*)PAD_SVl(0);