summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-08-11 08:08:08 -0700
committerFather Chrysostomos <sprout@cpan.org>2013-08-11 08:22:36 -0700
commit823ac2c8066d04cddd15f6235e1eae8c4c6e7c5e (patch)
treec21dcdc030c413467d0301dad50d4d9e577a8a08 /mg.c
parent1c75beb82e2bc71836b8b226cb4e976792d1967c (diff)
downloadperl-823ac2c8066d04cddd15f6235e1eae8c4c6e7c5e.tar.gz
Make PL_hints an alias for PL_compiling.cop_hints
PL_hints stores the hints at compile time that get copied into the cop_hints field of each COP (in newSTATEOP). Since perl-5.8.0-8053-gd5ec298, COPs have stored all the hints. Before that, COPs used to store only some of the hints. The hints were copied here and there into PL_compiling, a static COP-shaped buf- fer used during compilation, so that things like constant folding would see the correct hints. a0ed51b3 back in 1998 did that. Now that COPs can store all the hints, we can just use PL_compiling.cop_hints to avoid having to copy them from PL_hints from time to time. This simplifies the code and avoids creating bugs like those that a547fd219 and 1c75beb82 fixed.
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mg.c b/mg.c
index b4c06923ee..0ce58ab5d2 100644
--- a/mg.c
+++ b/mg.c
@@ -2590,7 +2590,6 @@ Perl_magic_set(pTHX_ SV *sv, MAGIC *mg)
break;
case '\010': /* ^H */
PL_hints = SvIV(sv);
- CopHINTS_set(&PL_compiling, PL_hints);
break;
case '\011': /* ^I */ /* NOT \t in EBCDIC */
Safefree(PL_inplace);