X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/595284e9d0277517bac8f3fc7bcdd529d97aa6f9..219458e22f163ede84daa71dfa98bab82a766954:/src/files.c diff --git a/src/files.c b/src/files.c index ae9fc7f1..bc8a4e51 100644 --- a/src/files.c +++ b/src/files.c @@ -1,6 +1,6 @@ /* Open and close files for Bison. - Copyright (C) 1984, 1986, 1989, 1992, 2000-2012 Free Software + Copyright (C) 1984, 1986, 1989, 1992, 2000-2013 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -140,8 +140,8 @@ xfdopen (int fd, char const *mode) FILE *res = fdopen (fd, mode); if (! res) error (EXIT_FAILURE, get_errno (), - // On a separate line to please the "unmarked_diagnostics" - // syntax-check. + /* On a separate line to please the "unmarked_diagnostics" + syntax-check. */ "fdopen"); return res; } @@ -360,7 +360,7 @@ output_file_name_check (char **file_name) bool conflict = false; if (STREQ (*file_name, grammar_file)) { - complain (complaint, _("refusing to overwrite the input file %s"), + complain (NULL, complaint, _("refusing to overwrite the input file %s"), quote (*file_name)); conflict = true; } @@ -370,7 +370,7 @@ output_file_name_check (char **file_name) for (i = 0; i < file_names_count; i++) if (STREQ (file_names[i], *file_name)) { - complain (Wother, _("conflicting outputs to file %s"), + complain (NULL, Wother, _("conflicting outputs to file %s"), quote (*file_name)); conflict = true; }