diff options
author | Father Chrysostomos <sprout@cpan.org> | 2013-08-11 08:08:08 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2013-08-11 08:22:36 -0700 |
commit | 823ac2c8066d04cddd15f6235e1eae8c4c6e7c5e (patch) | |
tree | c21dcdc030c413467d0301dad50d4d9e577a8a08 /embedvar.h | |
parent | 1c75beb82e2bc71836b8b226cb4e976792d1967c (diff) | |
download | perl-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 'embedvar.h')
-rw-r--r-- | embedvar.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/embedvar.h b/embedvar.h index ef2fa686a8..3643bd132e 100644 --- a/embedvar.h +++ b/embedvar.h @@ -157,7 +157,6 @@ #define PL_hash_rand_bits (vTHX->Ihash_rand_bits) #define PL_hash_rand_bits_enabled (vTHX->Ihash_rand_bits_enabled) #define PL_hintgv (vTHX->Ihintgv) -#define PL_hints (vTHX->Ihints) #define PL_hv_fetch_ent_mh (vTHX->Ihv_fetch_ent_mh) #define PL_in_clean_all (vTHX->Iin_clean_all) #define PL_in_clean_objs (vTHX->Iin_clean_objs) |