From e0a73de458fc6a8b96ea80ab0485ce7bdabb4c8b Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Sun, 15 May 2011 13:54:19 +0100 Subject: Store a flag for container/value magic in PL_magic_data. Use this to replace S_is_container_magic() in mg.c with a direct lookup. --- mg_raw.h | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'mg_raw.h') diff --git a/mg_raw.h b/mg_raw.h index 363e189b18..aebd7775ab 100644 --- a/mg_raw.h +++ b/mg_raw.h @@ -14,7 +14,7 @@ "/* overload_elem 'a' %OVERLOAD hash element */" }, { 'c', "want_vtbl_ovrld", "/* overload_table 'c' Holds overload table (AMT) on stash */" }, - { 'B', "want_vtbl_regexp", + { 'B', "want_vtbl_regexp | PERL_MAGIC_VALUE_MAGIC", "/* bm 'B' Boyer-Moore (fast string search) */" }, { 'D', "want_vtbl_regdata", "/* regdata 'D' Regex match position data (@+ and @- vars) */" }, @@ -24,9 +24,9 @@ "/* env 'E' %ENV hash */" }, { 'e', "want_vtbl_envelem", "/* envelem 'e' %ENV hash element */" }, - { 'f', "want_vtbl_regdata", + { 'f', "want_vtbl_regdata | PERL_MAGIC_VALUE_MAGIC", "/* fm 'f' Formline ('compiled' format) */" }, - { 'g', "want_vtbl_mglob", + { 'g', "want_vtbl_mglob | PERL_MAGIC_VALUE_MAGIC", "/* regex_global 'g' m//g target / study()ed string */" }, { 'H', "want_vtbl_hints", "/* hints 'H' %^H hash */" }, @@ -36,55 +36,55 @@ "/* isa 'I' @ISA array */" }, { 'i', "want_vtbl_isaelem", "/* isaelem 'i' @ISA array element */" }, - { 'k', "want_vtbl_nkeys", + { 'k', "want_vtbl_nkeys | PERL_MAGIC_VALUE_MAGIC", "/* nkeys 'k' scalar(keys()) lvalue */" }, { 'L', "want_vtbl_dbline", "/* dbfile 'L' Debugger %_