diff options
author | Zefram <zefram@fysh.org> | 2009-08-21 01:49:14 +0200 |
---|---|---|
committer | Vincent Pit <perl@profvince.com> | 2009-08-21 13:33:59 +0200 |
commit | f747ebd621ca5f8cd5605b35b81db4ac486f68f9 (patch) | |
tree | e412ad370ee591c40096e9d87a3aa30ac7b6b269 /perl.h | |
parent | a8ae8fee103e29c80450bb74b87866088a24b4a1 (diff) | |
download | perl-f747ebd621ca5f8cd5605b35b81db4ac486f68f9.tar.gz |
Add clear magic to %^H so that the HE chain is reset when you empty it.
This fixes [perl #68590] : %^H not lexical enough.
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -4645,7 +4645,8 @@ enum { /* pass one of these to get_vtbl */ want_vtbl_utf8, want_vtbl_symtab, want_vtbl_arylen_p, - want_vtbl_hintselem + want_vtbl_hintselem, + want_vtbl_hints }; @@ -4950,7 +4951,6 @@ MGVTBL_SET( 0 ); -/* For now, hints magic will also use vtbl_sig, because it is all 0 */ MGVTBL_SET( PL_vtbl_sig, 0, @@ -5315,6 +5315,18 @@ MGVTBL_SET( 0 ); +MGVTBL_SET( + PL_vtbl_hints, + 0, + 0, + 0, + MEMBER_TO_FPTR(Perl_magic_clearhints), + 0, + 0, + 0, + 0 +); + #include "overload.h" END_EXTERN_C |