[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Changes to m4/src/freeze.c,v
From: |
Eric Blake |
Subject: |
Changes to m4/src/freeze.c,v |
Date: |
Tue, 23 Oct 2007 14:17:58 +0000 |
CVSROOT: /sources/m4
Module name: m4
Changes by: Eric Blake <ericb> 07/10/23 14:17:55
Index: src/freeze.c
===================================================================
RCS file: /sources/m4/m4/src/freeze.c,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -b -r1.72 -r1.73
--- src/freeze.c 18 Oct 2007 16:45:54 -0000 1.72
+++ src/freeze.c 23 Oct 2007 14:17:55 -0000 1.73
@@ -96,7 +96,7 @@
/* No need to use produce_mem_dump, since we know all resyntax
names are already ASCII-encoded. */
- fprintf (file, "R%zu\n%s\n", strlen (resyntax), resyntax);
+ xfprintf (file, "R%zu\n%s\n", strlen (resyntax), resyntax);
}
}
@@ -121,7 +121,7 @@
if (count || (code & M4_SYNTAX_MASKS))
{
- fprintf (file, "S%c%d\n", ch, count);
+ xfprintf (file, "S%c%d\n", ch, count);
produce_mem_dump (file, buf, count);
fputc ('\n', file);
}
@@ -140,7 +140,7 @@
if (module)
produce_module_dump (file, module);
- fprintf (file, "M%zu\n", len);
+ xfprintf (file, "M%zu\n", len);
produce_mem_dump (file, name, len);
fputc ('\n', file);
}
@@ -169,9 +169,9 @@
{
const char *text = m4_get_symbol_text (symbol);
size_t text_len = strlen (text);
- fprintf (file, "T%zu,%zu", symbol_len, text_len);
+ xfprintf (file, "T%zu,%zu", symbol_len, text_len);
if (module)
- fprintf (file, ",%zu", module_len);
+ xfprintf (file, ",%zu", module_len);
fputc ('\n', file);
produce_mem_dump (file, symbol_name, symbol_len);
@@ -188,9 +188,9 @@
assert (!"INTERNAL ERROR: builtin not found in builtin table!");
bp_len = strlen (bp->name);
- fprintf (file, "F%zu,%zu", symbol_len, bp_len);
+ xfprintf (file, "F%zu,%zu", symbol_len, bp_len);
if (module)
- fprintf (file, ",%zu", module_len);
+ xfprintf (file, ",%zu", module_len);
fputc ('\n', file);
produce_mem_dump (file, symbol_name, symbol_len);
@@ -222,7 +222,7 @@
/* Write a recognizable header. */
- fprintf (file, "# This is a frozen state file generated by GNU %s %s\n",
+ xfprintf (file, "# This is a frozen state file generated by GNU %s %s\n",
PACKAGE, VERSION);
fputs ("V2\n", file);
@@ -231,7 +231,7 @@
if (strcmp (m4_get_syntax_lquote (M4SYNTAX), DEF_LQUOTE)
|| strcmp (m4_get_syntax_rquote (M4SYNTAX), DEF_RQUOTE))
{
- fprintf (file, "Q%zu,%zu\n", M4SYNTAX->lquote.length,
+ xfprintf (file, "Q%zu,%zu\n", M4SYNTAX->lquote.length,
M4SYNTAX->rquote.length);
produce_mem_dump (file, M4SYNTAX->lquote.string,
M4SYNTAX->lquote.length);
@@ -245,7 +245,7 @@
if (strcmp (m4_get_syntax_bcomm (M4SYNTAX), DEF_BCOMM)
|| strcmp (m4_get_syntax_ecomm (M4SYNTAX), DEF_ECOMM))
{
- fprintf (file, "C%zu,%zu\n", M4SYNTAX->bcomm.length,
+ xfprintf (file, "C%zu,%zu\n", M4SYNTAX->bcomm.length,
M4SYNTAX->ecomm.length);
produce_mem_dump (file, M4SYNTAX->bcomm.string, M4SYNTAX->bcomm.length);
produce_mem_dump (file, M4SYNTAX->ecomm.string, M4SYNTAX->ecomm.length);