summaryrefslogtreecommitdiff
path: root/embed.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-08-08 23:57:01 -0700
committerFather Chrysostomos <sprout@cpan.org>2011-08-14 12:54:05 -0700
commitb66130dd0dcaf72b6e443ebde808ff3b8ff9c885 (patch)
treeb63612384ab492310823ce54c709401795d03e07 /embed.h
parentbe1b855bbb2f62dad5aa5efb8dc5bce980ad4086 (diff)
downloadperl-b66130dd0dcaf72b6e443ebde808ff3b8ff9c885.tar.gz
Move pp_-specific code out of core_prototype
Commit b8c38f0a2a65 refactored pp_prototype by moving much of its code to a new function in op.c, called core_prototype. This served two purposes: (1) to allow the code to be simplified, which required the use of static functions in op.c, and (2) to allow the &CORE::subs feature to share the same code. But some code was moved to core_prototype which, in hindsight, did not need to be moved, such as the ‘Can’t find an opnumber’ message. This commit moves that code back to pp_prototype, resulting in a sim- pler (and possibly faster, at least for &CORE::subs) core_prototype.
Diffstat (limited to 'embed.h')
-rw-r--r--embed.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed.h b/embed.h
index 1646565e22..7fc3b211b8 100644
--- a/embed.h
+++ b/embed.h
@@ -1008,7 +1008,7 @@
#define ck_trunc(a) Perl_ck_trunc(aTHX_ a)
#define ck_unpack(a) Perl_ck_unpack(aTHX_ a)
#define convert(a,b,c) Perl_convert(aTHX_ a,b,c)
-#define core_prototype(a,b,c,d,e) Perl_core_prototype(aTHX_ a,b,c,d,e)
+#define core_prototype(a,b,c,d) Perl_core_prototype(aTHX_ a,b,c,d)
#define create_eval_scope(a) Perl_create_eval_scope(aTHX_ a)
#define cv_ckproto_len(a,b,c,d) Perl_cv_ckproto_len(aTHX_ a,b,c,d)
#define cvgv_set(a,b) Perl_cvgv_set(aTHX_ a,b)