summaryrefslogtreecommitdiff
path: root/src/lalr.c
diff options
context:
space:
mode:
authorAkim Demaille <demaille@gostai.com>2012-02-23 18:51:51 +0100
committerAkim Demaille <demaille@gostai.com>2012-02-23 19:13:45 +0100
commitf518dbaf46eb28bd39695474de6118683d905e5f (patch)
treede0a413ddf2413dc4a93818d4bb5e20d797e4c73 /src/lalr.c
parent71b52b1342c65a5497f6b3780481ff2deb932a56 (diff)
downloadbison-f518dbaf46eb28bd39695474de6118683d905e5f.tar.gz
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.
Diffstat (limited to 'src/lalr.c')
-rw-r--r--src/lalr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lalr.c b/src/lalr.c
index f86bde1c..1ceda002 100644
--- a/src/lalr.c
+++ b/src/lalr.c
@@ -372,8 +372,7 @@ initialize_LA (void)
{
char *default_reductions =
muscle_percent_define_get ("lr.default-reductions");
- default_reduction_only_for_accept =
- 0 == strcmp (default_reductions, "accepting");
+ default_reduction_only_for_accept = STREQ (default_reductions, "accepting");
free (default_reductions);
}