diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-05-20 17:29:52 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-05-20 17:29:52 +0000 |
commit | 11bcd5dad4f9d911a9454f9d858c2dd0d14ddf2a (patch) | |
tree | 24e3ac38c69f46172a4cf4ac1aeabe4488829631 /pp_ctl.c | |
parent | d5ec2987912a76b3059b7bd1d06cf02b4d0dae0c (diff) | |
download | perl-11bcd5dad4f9d911a9454f9d858c2dd0d14ddf2a.tar.gz |
Abolish cop_io (the simple way) by storing the value in cop_hints_hash.
Todo - store the in and out values under 2 keys, and avoid the need to
create a temporary mortal SV while checking it.
p4raw-id: //depot/perl@28258
Diffstat (limited to 'pp_ctl.c')
-rw-r--r-- | pp_ctl.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -3373,8 +3373,6 @@ PP(pp_require) } else PL_compiling.cop_warnings = pWARN_STD ; - SAVESPTR(PL_compiling.cop_io); - PL_compiling.cop_io = NULL; if (filter_sub || filter_cache) { SV * const datasv = filter_add(S_run_user_filter, NULL); @@ -3468,13 +3466,6 @@ PP(pp_entereval) GvHV(PL_hintgv) = saved_hh; SAVECOMPILEWARNINGS(); PL_compiling.cop_warnings = DUP_WARNINGS(PL_curcop->cop_warnings); - SAVESPTR(PL_compiling.cop_io); - if (specialCopIO(PL_curcop->cop_io)) - PL_compiling.cop_io = PL_curcop->cop_io; - else { - PL_compiling.cop_io = newSVsv(PL_curcop->cop_io); - SAVEFREESV(PL_compiling.cop_io); - } if (PL_compiling.cop_hints_hash) { Perl_refcounted_he_free(aTHX_ PL_compiling.cop_hints_hash); } |