summaryrefslogtreecommitdiff
path: root/mg_raw.h
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_raw.h
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_raw.h')
-rw-r--r--mg_raw.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mg_raw.h b/mg_raw.h
index f577087434..3fd29920f1 100644
--- a/mg_raw.h
+++ b/mg_raw.h
@@ -12,6 +12,8 @@
"/* arylen '#' Array length ($#ary) */" },
{ '%', "magic_vtable_max | PERL_MAGIC_VALUE_MAGIC",
"/* rhash '%' extra data for restricted hashes */" },
+ { '&', "magic_vtable_max",
+ "/* proto '&' my sub prototype CV */" },
{ '.', "want_vtbl_pos | PERL_MAGIC_VALUE_MAGIC",
"/* pos '.' pos() lvalue */" },
{ ':', "magic_vtable_max | PERL_MAGIC_VALUE_MAGIC",