summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-08-25 14:33:03 -0700
committerFather Chrysostomos <sprout@cpan.org>2011-08-25 14:33:03 -0700
commitbf0571fdfef93e57e5d288048145a1610dd40938 (patch)
tree14ef3a17b36cd36d65289dd4a85e1fd7713b823e /pp_hot.c
parent0b19d81a098d6a9b895996d374ca0adc621f1590 (diff)
downloadperl-bf0571fdfef93e57e5d288048145a1610dd40938.tar.gz
&CORE::foo() for @ and $@ prototypes, except unlink
This commit allows the CORE subroutines for functions with @ and $@ prototypes to be called through references and via amper- sand syntax. unlink is not included in this commit, as it requires special casing due to its use of implicit $_. Since these functions require a pushmark, and since it has to come between two things that pp_coreargs does, it’s easiest to flag the coreargs op (with the OPpCOREARGS_PUSHMARK flag added in the previous commit) and call pp_pushmark directly from pp_coreargs.
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pp_hot.c b/pp_hot.c
index fbe195f324..b75b263682 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -74,6 +74,7 @@ PP(pp_null)
return NORMAL;
}
+/* This is sometimes called directly by pp_coreargs. */
PP(pp_pushmark)
{
dVAR;