diff options
author | Akim Demaille <demaille@gostai.com> | 2012-02-18 15:41:50 +0100 |
---|---|---|
committer | Akim Demaille <demaille@gostai.com> | 2012-02-19 10:21:06 +0100 |
commit | 6487c0b3709dfc8d4a6b8b086939e32f6c1d2f04 (patch) | |
tree | 46e001c593177642f7c25e66ec9acbcb44589623 /lib | |
parent | 1cd5bad9b86930b35ad3e613f0277c8e825053f0 (diff) | |
download | bison-6487c0b3709dfc8d4a6b8b086939e32f6c1d2f04.tar.gz |
maint: address a couple of syntax-check errors.
* cfg.mk (local-checks-to-skip): Remove sc_error_message_period
and sc_error_message_uppercase.
Address the uncovered issues.
* po/POTFILES.in: Add missing files.
* src/symtab.c: Remove useless includes.
* lib/bitset_stats.c, src/files.c, tests/glr-regression.at: Use
conformant error messages.
Conflicts:
cfg.mk
lib/bitset_stats.c
tests/glr-regression.at
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bitset_stats.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/bitset_stats.c b/lib/bitset_stats.c index 68cd3862..54c746c0 100644 --- a/lib/bitset_stats.c +++ b/lib/bitset_stats.c @@ -253,15 +253,15 @@ bitset_stats_read (const char *file_name) if (file) { if (fread (&bitset_stats_info_data, sizeof (bitset_stats_info_data), - 1, file) != 1) - { - if (ferror (file)) - perror (_("Could not read stats file.")); - else - fprintf (stderr, _("Bad stats file size.\n")); - } + 1, file) != 1) + { + if (ferror (file)) + perror (_("cannot read stats file")); + else + fprintf (stderr, _("bad stats file size\n")); + } if (fclose (file) != 0) - perror (_("Could not read stats file.")); + perror (_("cannot read stats file")); } bitset_stats_info_data.runs++; } @@ -283,13 +283,13 @@ bitset_stats_write (const char *file_name) if (file) { if (fwrite (&bitset_stats_info_data, sizeof (bitset_stats_info_data), - 1, file) != 1) - perror (_("Could not write stats file.")); + 1, file) != 1) + perror (_("cannot not write stats file")); if (fclose (file) != 0) - perror (_("Could not write stats file.")); + perror (_("cannot write stats file")); } else - perror (_("Could not open stats file for writing.")); + perror (_("cannot open stats file for writing")); } |