diff options
author | Akim Demaille <demaille@gostai.com> | 2012-02-23 18:51:51 +0100 |
---|---|---|
committer | Akim Demaille <demaille@gostai.com> | 2012-02-23 19:13:45 +0100 |
commit | f518dbaf46eb28bd39695474de6118683d905e5f (patch) | |
tree | de0a413ddf2413dc4a93818d4bb5e20d797e4c73 /src/lalr.c | |
parent | 71b52b1342c65a5497f6b3780481ff2deb932a56 (diff) | |
download | bison-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); } |