mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 05:13:04 +00:00
change more quotes in source, and adjust tests to match
Run this command to change each `%s' to '%s' in source directories:
git grep -l '`%s'\' src djgpp data \
|xargs perl -pi -e '$q="'\''";s/`%s$q/$q%s$q/g'
* data/bison.m4: Affected per the above.
* djgpp/subpipe.c: Likewise.
* src/files.c: Likewise.
* src/getargs.c: Likewise.
* src/muscle-tab.c: Likewise.
* src/reader.c: Likewise.
* tests/glr-regression.at: Adjust to match.
* tests/input.at: Likewise.
* tests/push.at: Likewise.
* tests/skeletons.at: Likewise.
This commit is contained in:
@@ -109,7 +109,7 @@ xfopen (const char *name, const char *mode)
|
||||
|
||||
ptr = fopen_safer (name, mode);
|
||||
if (!ptr)
|
||||
error (EXIT_FAILURE, get_errno (), _("cannot open file `%s'"), name);
|
||||
error (EXIT_FAILURE, get_errno (), _("cannot open file '%s'"), name);
|
||||
|
||||
return ptr;
|
||||
}
|
||||
|
||||
@@ -421,7 +421,7 @@ language_argmatch (char const *arg, int prio, location loc)
|
||||
language = &valid_languages[i];
|
||||
return;
|
||||
}
|
||||
msg = _("invalid language `%s'");
|
||||
msg = _("invalid language '%s'");
|
||||
}
|
||||
else if (language_prio == prio)
|
||||
msg = _("multiple language declarations are invalid");
|
||||
@@ -679,9 +679,9 @@ getargs (int argc, char *argv[])
|
||||
if (argc - optind != 1)
|
||||
{
|
||||
if (argc - optind < 1)
|
||||
error (0, 0, _("missing operand after `%s'"), argv[argc - 1]);
|
||||
error (0, 0, _("missing operand after '%s'"), argv[argc - 1]);
|
||||
else
|
||||
error (0, 0, _("extra operand `%s'"), argv[optind + 1]);
|
||||
error (0, 0, _("extra operand '%s'"), argv[optind + 1]);
|
||||
usage (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
||||
@@ -439,7 +439,7 @@ muscle_percent_define_insert (char const *variable, location variable_loc,
|
||||
atoi (muscle_find_const (how_name));
|
||||
if (how_old == MUSCLE_PERCENT_DEFINE_F)
|
||||
return;
|
||||
complain_at (variable_loc, _("%%define variable `%s' redefined"),
|
||||
complain_at (variable_loc, _("%%define variable '%s' redefined"),
|
||||
variable);
|
||||
complain_at (muscle_percent_define_get_loc (variable),
|
||||
_("previous definition"));
|
||||
@@ -503,7 +503,7 @@ muscle_percent_define_get_loc (char const *variable)
|
||||
char const *loc_name;
|
||||
loc_name = UNIQSTR_CONCAT ("percent_define_loc(", variable, ")");
|
||||
if (!muscle_find_const (loc_name))
|
||||
fatal(_("undefined %%define variable `%s' passed to"
|
||||
fatal(_("undefined %%define variable '%s' passed to"
|
||||
" muscle_percent_define_get_loc"), variable);
|
||||
return muscle_location_decode (loc_name);
|
||||
}
|
||||
@@ -517,7 +517,7 @@ muscle_percent_define_get_syncline (char const *variable)
|
||||
UNIQSTR_CONCAT ("percent_define_syncline(", variable, ")");
|
||||
syncline = muscle_find_const (syncline_name);
|
||||
if (!syncline)
|
||||
fatal(_("undefined %%define variable `%s' passed to"
|
||||
fatal(_("undefined %%define variable '%s' passed to"
|
||||
" muscle_percent_define_get_syncline"), variable);
|
||||
return syncline;
|
||||
}
|
||||
@@ -563,13 +563,13 @@ muscle_percent_define_flag_if (char const *variable)
|
||||
{
|
||||
muscle_insert (invalid_boolean_name, "");
|
||||
complain_at(muscle_percent_define_get_loc (variable),
|
||||
_("invalid value for %%define Boolean variable `%s'"),
|
||||
_("invalid value for %%define Boolean variable '%s'"),
|
||||
variable);
|
||||
}
|
||||
free (value);
|
||||
}
|
||||
else
|
||||
fatal(_("undefined %%define variable `%s' passed to muscle_percent_define_flag_if"),
|
||||
fatal(_("undefined %%define variable '%s' passed to muscle_percent_define_flag_if"),
|
||||
variable);
|
||||
|
||||
return result;
|
||||
@@ -621,10 +621,10 @@ muscle_percent_define_check_values (char const * const *values)
|
||||
{
|
||||
location loc = muscle_percent_define_get_loc (*variablep);
|
||||
complain_at(loc,
|
||||
_("invalid value for %%define variable `%s': `%s'"),
|
||||
_("invalid value for %%define variable '%s': '%s'"),
|
||||
*variablep, value);
|
||||
for (values = variablep + 1; *values; ++values)
|
||||
complain_at (loc, _("accepted value: `%s'"), *values);
|
||||
complain_at (loc, _("accepted value: '%s'"), *values);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -634,7 +634,7 @@ muscle_percent_define_check_values (char const * const *values)
|
||||
free (value);
|
||||
}
|
||||
else
|
||||
fatal(_("undefined %%define variable `%s' passed to"
|
||||
fatal(_("undefined %%define variable '%s' passed to"
|
||||
" muscle_percent_define_check_values"),
|
||||
*variablep);
|
||||
}
|
||||
|
||||
@@ -130,7 +130,7 @@ record_merge_function_type (int merger, uniqstr type, location declaration_loc)
|
||||
if (merge_function->type != NULL && !UNIQSTR_EQ (merge_function->type, type))
|
||||
{
|
||||
complain_at (declaration_loc,
|
||||
_("result type clash on merge function `%s': <%s> != <%s>"),
|
||||
_("result type clash on merge function '%s': <%s> != <%s>"),
|
||||
merge_function->name, type, merge_function->type);
|
||||
complain_at (merge_function->type_declaration_location,
|
||||
_("previous declaration"));
|
||||
|
||||
Reference in New Issue
Block a user