summaryrefslogtreecommitdiff
path: root/mg_names.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-07-12 23:31:52 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-09-15 22:45:03 -0700
commit2a388207e072a645aa29f0b2b18f07d9a55cbf5e (patch)
treee5cc426ec00c7925570598b6dd420b6050d9598e /mg_names.c
parent194774c2461cd523598d669111a3251e2ceb0147 (diff)
downloadperl-2a388207e072a645aa29f0b2b18f07d9a55cbf5e.tar.gz
Add proto magic type
This will be used for storing the prototype CV of a ‘my’ sub. The clone needs to occupy the pad entry so that padcv ops will be able to find it. That means the clone has to displace its prototype. In case the same sub is called recursively, we still need to be able to access the prototype.
Diffstat (limited to 'mg_names.c')
-rw-r--r--mg_names.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mg_names.c b/mg_names.c
index 51a49626f5..73dc3f9502 100644
--- a/mg_names.c
+++ b/mg_names.c
@@ -9,6 +9,7 @@
{ PERL_MAGIC_sv, "sv(\\0)" },
{ PERL_MAGIC_arylen, "arylen(#)" },
{ PERL_MAGIC_rhash, "rhash(%)" },
+ { PERL_MAGIC_proto, "proto(&)" },
{ PERL_MAGIC_pos, "pos(.)" },
{ PERL_MAGIC_symtab, "symtab(:)" },
{ PERL_MAGIC_backref, "backref(<)" },