diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-05-20 12:31:09 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-05-20 12:31:09 +0000 |
commit | c28fe1ecc160a002d731cdf38ff7215ad3cf2a19 (patch) | |
tree | 1e2f422e7ae0c64e5419784494fae185eb6e02eb /mg.c | |
parent | e22ae1e278fa878ce0da6700e97da49f0dacf636 (diff) | |
download | perl-c28fe1ecc160a002d731cdf38ff7215ad3cf2a19.tar.gz |
Rename cop_hints to cop_hints_hash
p4raw-id: //depot/perl@28252
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -2855,8 +2855,9 @@ S_unwind_handler_stack(pTHX_ const void *p) =for apidoc magic_sethint Triggered by a store to %^H, records the key/value pair to -C<PL_compiling.cop_hints>. It is assumed that hints aren't storing anything -that would need a deep copy. Maybe we should warn if we find a reference. +C<PL_compiling.cop_hints_hash>. It is assumed that hints aren't storing +anything that would need a deep copy. Maybe we should warn if we find a +reference. =cut */ @@ -2875,8 +2876,8 @@ Perl_magic_sethint(pTHX_ SV *sv, MAGIC *mg) Doing this here saves a lot of doing it manually in perl code (and forgetting to do it, and consequent subtle errors. */ PL_hints |= HINT_LOCALIZE_HH; - PL_compiling.cop_hints - = Perl_refcounted_he_new(aTHX_ PL_compiling.cop_hints, + PL_compiling.cop_hints_hash + = Perl_refcounted_he_new(aTHX_ PL_compiling.cop_hints_hash, (SV *)mg->mg_ptr, sv); return 0; } @@ -2884,7 +2885,8 @@ Perl_magic_sethint(pTHX_ SV *sv, MAGIC *mg) /* =for apidoc magic_sethint -Triggered by a delete from %^H, records the key to C<PL_compiling.cop_hints>. +Triggered by a delete from %^H, records the key to +C<PL_compiling.cop_hints_hash>. =cut */ @@ -2897,8 +2899,8 @@ Perl_magic_clearhint(pTHX_ SV *sv, MAGIC *mg) PERL_UNUSED_ARG(sv); PL_hints |= HINT_LOCALIZE_HH; - PL_compiling.cop_hints - = Perl_refcounted_he_new(aTHX_ PL_compiling.cop_hints, + PL_compiling.cop_hints_hash + = Perl_refcounted_he_new(aTHX_ PL_compiling.cop_hints_hash, (SV *)mg->mg_ptr, &PL_sv_placeholder); return 0; } |