projects
/
bison.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: highlight empty right-hand sides
[bison.git]
/
src
/
files.c
diff --git
a/src/files.c
b/src/files.c
index 88234bfc2c3a37a51b2ca2103aa2c9aa5ab49453..bc8a4e51d2038c70c7ed7b8a13abfdbd6d3c4b7d 100644
(file)
--- a/
src/files.c
+++ b/
src/files.c
@@
-1,6
+1,6
@@
/* Open and close files for Bison.
/* Open and close files for Bison.
- Copyright (C) 1984, 1986, 1989, 1992, 2000-201
2
Free Software
+ Copyright (C) 1984, 1986, 1989, 1992, 2000-201
3
Free Software
Foundation, Inc.
This file is part of Bison, the GNU Compiler Compiler.
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 (),
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;
}
"fdopen");
return res;
}
@@
-360,7
+360,7
@@
output_file_name_check (char **file_name)
bool conflict = false;
if (STREQ (*file_name, grammar_file))
{
bool conflict = false;
if (STREQ (*file_name, grammar_file))
{
- complain (_("refusing to overwrite the input file %s"),
+ complain (
NULL, complaint,
_("refusing to overwrite the input file %s"),
quote (*file_name));
conflict = true;
}
quote (*file_name));
conflict = true;
}
@@
-370,8
+370,8
@@
output_file_name_check (char **file_name)
for (i = 0; i < file_names_count; i++)
if (STREQ (file_names[i], *file_name))
{
for (i = 0; i < file_names_count; i++)
if (STREQ (file_names[i], *file_name))
{
-
warn (
_("conflicting outputs to file %s"),
- quote (*file_name));
+
complain (NULL, Wother,
_("conflicting outputs to file %s"),
+
quote (*file_name));
conflict = true;
}
}
conflict = true;
}
}