diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2005-10-05 06:39:08 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-10-05 06:39:08 +0000 |
commit | 2f4f028d8bb527ebdab2476f76aac58f07f5b767 (patch) | |
tree | 712b80a1f86dcfea5d73e4bf391ebf288fedef7c /lib/bitsetv.c | |
parent | 88c6637fa9f1703ce97b484aaa890d41c9f94685 (diff) | |
download | bison-2f4f028d8bb527ebdab2476f76aac58f07f5b767.tar.gz |
Undo the parts of the unlocked-I/O change that substituted
putc or puts for printf. This might hurt performance a bit,
but some people prefer the printf style.
* data/c.m4 (yysymprint): Prefer printf to puts and putc.
* data/glr.c (YYFPUTC, YYFPUTS, YYDPUTS): Remove.
All uses replaced by YYFPRINTF and YYDPRINTF.
* data/yacc.c: Likewise.
* lib/bitset.c (bitset_print): Likewise.
* lib/bitsetv.c (bitsetv_dump, debug-bitsetv): Prefer printf to
putc and puts.
* lib/lbitset.c (debug_lbitset): Likewise.
* src/closure.c (print_firsts, print_fderives): Likewise.
* src/gram.c (grammar_dump): Likewise.
* src/lalr.c (look_ahead_tokens_print): Likewise.
* src/output.c (escaped_output): Likewise.
(user_actions_output): Break apart two printfs.
* src/parse-gram.y (%printer): Prefer printf to putc and puts.
* src/reduce.c (reduce_print): Likewise.
* src/state.c (state_rule_look_ahead_tokens_print): Likewise.
* src/system.h: Include unlocked-io.h rathe than stdio.h.
Diffstat (limited to 'lib/bitsetv.c')
-rw-r--r-- | lib/bitsetv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bitsetv.c b/lib/bitsetv.c index 16fa4c07..db2aa1af 100644 --- a/lib/bitsetv.c +++ b/lib/bitsetv.c @@ -153,7 +153,7 @@ bitsetv_dump (FILE *file, char const *title, char const *subtitle, bitset_dump (file, bsetv[i]); } - fputc ('\n', file); + fprintf (file, "\n"); } @@ -168,5 +168,5 @@ debug_bitsetv (bitsetv bsetv) debug_bitset (bsetv[i]); } - fputc ('\n', stderr); + fprintf (stderr, "\n"); } |