summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-02-20 10:40:59 +0000
committerNicholas Clark <nick@ccl4.org>2006-02-20 10:40:59 +0000
commitaed2304a0354e5cd0ca22ed008e1922f54b0f438 (patch)
tree1138ff6e0aa651adb9234639339fd66c3cfbf793 /pp_ctl.c
parent7c60e4340985406f3dd47ad08209883de1b8aa3b (diff)
downloadperl-aed2304a0354e5cd0ca22ed008e1922f54b0f438.tar.gz
Add a new CvISXSUB() macro, for abstracting the test as to whether a
PVCV is perl or XS. p4raw-id: //depot/perl@27241
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 725920f296..80113a49a8 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -1763,7 +1763,7 @@ PP(pp_dbstate)
hasargs = 0;
SPAGAIN;
- if (CvXSUB(cv)) {
+ if (CvISXSUB(cv)) {
CvDEPTH(cv)++;
PUSHMARK(SP);
(void)(*CvXSUB(cv))(aTHX_ cv);
@@ -2352,7 +2352,7 @@ PP(pp_goto)
PAD_SVl(0) = (SV*)(cx->blk_sub.argarray = av);
}
}
- else if (CvXSUB(cv)) { /* put GvAV(defgv) back onto stack */
+ else if (CvISXSUB(cv)) { /* put GvAV(defgv) back onto stack */
AV* const av = GvAV(PL_defgv);
items = AvFILLp(av) + 1;
EXTEND(SP, items+1); /* @_ could have been extended. */
@@ -2369,7 +2369,7 @@ PP(pp_goto)
/* Now do some callish stuff. */
SAVETMPS;
SAVEFREESV(cv); /* later, undo the 'avoid premature free' hack */
- if (CvXSUB(cv)) {
+ if (CvISXSUB(cv)) {
OP* retop = cx->blk_sub.retop;
if (reified) {
I32 index;