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_vtable.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_vtable.h')
-rw-r--r-- | mg_vtable.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mg_vtable.h b/mg_vtable.h index 2490394895..8526fc5ffd 100644 --- a/mg_vtable.h +++ b/mg_vtable.h @@ -15,6 +15,7 @@ #define PERL_MAGIC_sv '\0' /* Special scalar variable */ #define PERL_MAGIC_arylen '#' /* Array length ($#ary) */ #define PERL_MAGIC_rhash '%' /* extra data for restricted hashes */ +#define PERL_MAGIC_proto '&' /* my sub prototype CV */ #define PERL_MAGIC_pos '.' /* pos() lvalue */ #define PERL_MAGIC_symtab ':' /* extra data for symbol tables */ #define PERL_MAGIC_backref '<' /* for weak ref data */ |