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 /intrpvar.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 'intrpvar.h')
-rw-r--r-- | intrpvar.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/intrpvar.h b/intrpvar.h index 299ac0f7eb..61028f29da 100644 --- a/intrpvar.h +++ b/intrpvar.h @@ -540,8 +540,6 @@ PERLVAR(I, padix, I32) /* max used index in current "register" pad */ PERLVAR(I, padix_floor, I32) /* how low may inner block reset padix */ -PERLVAR(I, hints, U32) /* pragma-tic compile-time flags */ - #ifdef USE_LOCALE_COLLATE PERLVAR(I, collation_name, char *) /* Name of current collation */ PERLVAR(I, collxfrm_base, Size_t) /* Basic overhead in *xfrm() */ |