diff options
author | Eric Blake <ebb9@byu.net> | 2007-10-22 14:57:28 -0600 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2007-10-22 14:57:28 -0600 |
commit | f9d8c9ac448afd144085adb30ca5d23c3a0f1351 (patch) | |
tree | 6c0ce29157f73fb546016a52866ce2156737d231 /m4/syntax.c | |
parent | 8cdf04b3b237b97163652f52b32ecb17679e2a27 (diff) | |
download | m4-cvs-readonly.tar.gz |
Never let printf failures go undetected.cvs-readonly
* ltdl/m4/gnulib-cache.m4: Augment with 'gnulib-tool --import
xprintf'.
* m4/system_.h: Include xprintf.h.
* m4/debug.c (m4_debug_message_prefix, m4_debug_message): Wrap all
use of printf, xprintf.
* m4/input.c [DEBUG_INPUT]: Likewise.
* m4/module.c [DEBUG_MODULES]: Likewise.
* m4/output.c (m4_shipout_text, m4_shipout_int)
(m4_freeze_diversions): Likewise.
* m4/path.c [DEBUG_INCL]: Likewise.
* m4/symtab.c [DEBUG_SYM]: Likewise.
* m4/syntax.c [DEBUG_SYNTAX]: Likewise.
* modules/modtest.c (export_test): Likewise.
* src/freeze.c (produce_resyntax_dump, produce_syntax_dump)
(produce_module_dump, dump_symbol_CB, produce_frozen_state):
Likewise.
* src/main.c (usage): Likewise.
* po/POTFILES.in: Adjust to new file.
* po/Makevars (XGETTEXT_OPTIONS): Likewise.
Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'm4/syntax.c')
-rw-r--r-- | m4/syntax.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/m4/syntax.c b/m4/syntax.c index 3ac655db..9f2e1220 100644 --- a/m4/syntax.c +++ b/m4/syntax.c @@ -220,9 +220,9 @@ add_syntax_attribute (m4_syntax_table *syntax, int ch, int code) syntax->table[ch] = (syntax->table[ch] & M4_SYNTAX_MASKS) | code; #ifdef DEBUG_SYNTAX - fprintf(stderr, "Set syntax %o %c = %04X\n", - ch, isprint(ch) ? ch : '-', - syntax->table[ch]); + xfprintf(stderr, "Set syntax %o %c = %04X\n", + ch, isprint(ch) ? ch : '-', + syntax->table[ch]); #endif return syntax->table[ch]; @@ -235,9 +235,9 @@ remove_syntax_attribute (m4_syntax_table *syntax, int ch, int code) syntax->table[ch] &= ~code; #ifdef DEBUG_SYNTAX - fprintf(stderr, "Unset syntax %o %c = %04X\n", - ch, isprint(ch) ? ch : '-', - syntax->table[ch]); + xfprintf(stderr, "Unset syntax %o %c = %04X\n", + ch, isprint(ch) ? ch : '-', + syntax->table[ch]); #endif return syntax->table[ch]; |