maint: use STREQ/STRNEQ.

* doc/bison.texinfo: Space change.
	* src/system.h (STREQ, STRNEQ): New.
	* src/files.c, src/ielr.c, src/lalr.c, src/muscle-tab.c,
	* src/output.c, src/print.c, src/print_graph.c,
	* src/reader.c, src/scan-skel.l, src/tables.c,
	* src/uniqstr.c:
	Use them.
	* src/scan-gram.l: Do not use streq.h, use system.h's STREQ.
	* cfg.mk: The documentation is an exception.
This commit is contained in:
Akim Demaille
2012-02-23 18:51:51 +01:00
parent 71b52b1342
commit f518dbaf46
15 changed files with 34 additions and 34 deletions

View File

@@ -142,7 +142,7 @@ xfclose (FILE *ptr)
static void
compute_exts_from_gf (const char *ext)
{
if (strcmp (ext, ".y") == 0)
if (STREQ (ext, ".y"))
{
src_extension = xstrdup (language->src_extension);
header_extension = xstrdup (language->header_extension);
@@ -347,7 +347,7 @@ void
output_file_name_check (char **file_name)
{
bool conflict = false;
if (0 == strcmp (*file_name, grammar_file))
if (STREQ (*file_name, grammar_file))
{
complain (_("refusing to overwrite the input file %s"),
quote (*file_name));
@@ -357,7 +357,7 @@ output_file_name_check (char **file_name)
{
int i;
for (i = 0; i < file_names_count; i++)
if (0 == strcmp (file_names[i], *file_name))
if (STREQ (file_names[i], *file_name))
{
warn (_("conflicting outputs to file %s"),
quote (*file_name));