simon-svn: halibut: simon
Commits to Tartarus CVS repository.
tartarus-commits at lists.tartarus.org
Sat Oct 24 10:33:21 BST 2009
SVN root: svn://svn.tartarus.org/sgt
Changes by: simon
Revision: 8729
Date: 2009-10-24 10:33:21 +0100 (Sat, 24 Oct 2009)
Log message (16 lines):
Allow a hastily selected subset of the output formats to also accept
"-" as a special file name meaning standard output. I've restricted
it to just those output formats which can predictably output only
one file, just for the sake of not having to faff too much with the
others.
Probably what I should have done for all of this would have been to
write a set of wrappers around fopen, fclose and everything in
between, and use them everywhere. Those wrappers would uniformly
detect "-" and convert it into stdin or stdout as appropriate, would
avoid fclosing those files for real when told to close them, and
would also be able to handle reading a little bit of data from the
start of a file and then pushing it all back even if the file were
not seekable (which would allow input.c to lose the ugly special
case whereby it can't currently read font files from standard
input).
Modified files:
U halibut/bk_html.c
U halibut/bk_man.c
U halibut/bk_pdf.c
U halibut/bk_ps.c
U halibut/bk_text.c
Links:
http://svn.tartarus.org/sgt/?rev=8729&view=rev
http://svn.tartarus.org/sgt/halibut/bk_html.c?rev=8729&r1=8728&r2=8729
http://svn.tartarus.org/sgt/halibut/bk_man.c?rev=8729&r1=8728&r2=8729
http://svn.tartarus.org/sgt/halibut/bk_pdf.c?rev=8729&r1=8728&r2=8729
http://svn.tartarus.org/sgt/halibut/bk_ps.c?rev=8729&r1=8728&r2=8729
http://svn.tartarus.org/sgt/halibut/bk_text.c?rev=8729&r1=8728&r2=8729
More information about the tartarus-commits
mailing list