This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Expunge study magic
authorFather Chrysostomos <sprout@cpan.org>
Thu, 24 May 2012 21:04:02 +0000 (14:04 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 30 May 2012 06:55:22 +0000 (23:55 -0700)
I’m running out of synonyms for ‘remove’.

mg.c
mg_names.c
mg_raw.h
mg_vtable.h
pod/perlguts.pod
regen/mg_vtable.pl

diff --git a/mg.c b/mg.c
index 855671b..4424bfe 100644 (file)
--- a/mg.c
+++ b/mg.c
@@ -2432,9 +2432,6 @@ Perl_magic_setregexp(pTHX_ SV *sv, MAGIC *mg)
     } else if (type == PERL_MAGIC_bm) {
        SvTAIL_off(sv);
        SvVALID_off(sv);
-    } else if (type == PERL_MAGIC_study) {
-       if (!isGV_with_GP(sv))
-           SvSCREAM_off(sv);
     } else {
        assert(type == PERL_MAGIC_fm);
     }
index 62ba922..51a4962 100644 (file)
@@ -20,7 +20,6 @@
        { PERL_MAGIC_env,            "env(E)" },
        { PERL_MAGIC_envelem,        "envelem(e)" },
        { PERL_MAGIC_fm,             "fm(f)" },
-       { PERL_MAGIC_study,          "study(G)" },
        { PERL_MAGIC_regex_global,   "regex_global(g)" },
        { PERL_MAGIC_hints,          "hints(H)" },
        { PERL_MAGIC_hintselem,      "hintselem(h)" },
index b6a48a4..76cf42f 100644 (file)
--- a/mg_raw.h
+++ b/mg_raw.h
@@ -34,8 +34,6 @@
       "/* envelem 'e' %ENV hash element */" },
     { 'f', "want_vtbl_regdata | PERL_MAGIC_READONLY_ACCEPTABLE | PERL_MAGIC_VALUE_MAGIC",
       "/* fm 'f' Formline ('compiled' format) */" },
-    { 'G', "want_vtbl_regexp | PERL_MAGIC_READONLY_ACCEPTABLE | PERL_MAGIC_VALUE_MAGIC",
-      "/* study 'G' study()ed string */" },
     { 'g', "want_vtbl_mglob | PERL_MAGIC_READONLY_ACCEPTABLE | PERL_MAGIC_VALUE_MAGIC",
       "/* regex_global 'g' m//g target */" },
     { 'H', "want_vtbl_hints",
index f6d9104..d2379f2 100644 (file)
@@ -27,7 +27,6 @@
 #define PERL_MAGIC_env            'E' /* %ENV hash */
 #define PERL_MAGIC_envelem        'e' /* %ENV hash element */
 #define PERL_MAGIC_fm             'f' /* Formline ('compiled' format) */
-#define PERL_MAGIC_study          'G' /* study()ed string */
 #define PERL_MAGIC_regex_global   'g' /* m//g target */
 #define PERL_MAGIC_hints          'H' /* %^H hash */
 #define PERL_MAGIC_hintselem      'h' /* %^H hash element */
index 4fe4fd5..b9f2ed3 100644 (file)
@@ -1071,7 +1071,6 @@ will be lost.
  e  PERL_MAGIC_envelem        vtbl_envelem   %ENV hash element
  f  PERL_MAGIC_fm             vtbl_regdata   Formline 
                                              ('compiled' format)
- G  PERL_MAGIC_study          vtbl_regexp    study()ed string
  g  PERL_MAGIC_regex_global   vtbl_mglob     m//g target
  H  PERL_MAGIC_hints          vtbl_hints     %^H hash
  h  PERL_MAGIC_hintselem      vtbl_hintselem %^H hash element
index b4ed0c6..5d0710f 100644 (file)
@@ -42,8 +42,6 @@ my %mg =
                  desc => '%ENV hash element' },
      fm => { char => 'f', vtable => 'regdata', value_magic => 1,
             readonly_acceptable => 1, desc => "Formline ('compiled' format)" },
-     study => { char => 'G', vtable => 'regexp', value_magic => 1,
-               readonly_acceptable => 1, desc => 'study()ed string' },
      regex_global => { char => 'g', vtable => 'mglob', value_magic => 1,
                       readonly_acceptable => 1, desc => 'm//g target' },
      hints => { char => 'H', vtable => 'hints', desc => '%^H hash' },