* make-docfile.c: Simplify a bit, to simplify further refactoring.
commita705278de7c661af9b78d956af25e13055cba864
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 14 Jul 2014 00:45:19 +0000 (13 17:45 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 14 Jul 2014 00:45:19 +0000 (13 17:45 -0700)
treea8033e995ce6bfa2cd9af4cbee0700e3803e5602
parent4939f58d2c45062d5eac3f4c845b4494cf113f1f
* make-docfile.c: Simplify a bit, to simplify further refactoring.

(outfile): Remove static var.  All uses changed to use stdout,
since it's always stdout anyway.  While we're at it, prefer
putchar/puts/fputs to printf when there are no format strings.
(main): Use freopen rather than fopen, so that stdout is reused.
Move O_BINARY stuff after the freopen, so it affects the
reopened file.
(write_c_args): Omit first arg, since it's always stdout now.
All uses changed.
lib-src/ChangeLog
lib-src/make-docfile.c