diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-07-12 23:31:52 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-09-15 22:45:03 -0700 |
commit | 2a388207e072a645aa29f0b2b18f07d9a55cbf5e (patch) | |
tree | e5cc426ec00c7925570598b6dd420b6050d9598e /mg_raw.h | |
parent | 194774c2461cd523598d669111a3251e2ceb0147 (diff) | |
download | perl-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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", |