tac: use only one temporary file, with multiple nonseekable inputs
commitd96c2069d9453ba455540e045046ead19e885ff7
authorJim Meyering <meyering@redhat.com>
Tue, 18 Oct 2011 09:44:39 +0000 (18 11:44 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 19 Oct 2011 07:31:30 +0000 (19 09:31 +0200)
tree5e63b9f92f45b53abf11f53cfbeef899953946c2
parent385634c8dd512fc4fae46310266247b8fcf2a85a
tac: use only one temporary file, with multiple nonseekable inputs

* src/tac.c (temp_stream): New function, factored out of...
(copy_to_temp): ...here.
(tac_nonseekable): Don't free or fclose, now that we reuse the file.
Suggested by Ambrose Feinstein.
* THANKS.in: Update.
THANKS.in
src/tac.c