diff options
author | Daniel Dragan <bulk88@hotmail.com> | 2014-08-31 01:40:27 -0400 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-10-24 20:36:34 -0700 |
commit | 4e0ef34209f54db7b7567b4768de7318aaf800cd (patch) | |
tree | 95534e47cdc4e21342585df6e9464fd0d93f0636 /doio.c | |
parent | ce409cc88cd7e9921c410d37ca33d12e05a50aa1 (diff) | |
download | perl-4e0ef34209f54db7b7567b4768de7318aaf800cd.tar.gz |
cleanup perlio.c and doio.c
IoIFP will be assigned to again in say_false block. This redundant code is
from commit 6e21c824d9 perl 4.0 patch 6.
in PerlIO_allocate replace a duplicate block with a goto
in PerlIO_resolve_layers replace a func call with a macro, this couldn't
have been using magic due to the previous SvROK
Diffstat (limited to 'doio.c')
-rw-r--r-- | doio.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -782,7 +782,6 @@ S_openn_cleanup(pTHX_ GV *gv, IO *io, PerlIO *fp, char *mode, const char *oname, *s = 'w'; if (!(IoOFP(io) = PerlIO_openn(aTHX_ type,s,fd,0,0,NULL,0,NULL))) { PerlIO_close(fp); - IoIFP(io) = NULL; goto say_false; } } |