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/ielr.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/ielr.c')
-rw-r--r-- | src/ielr.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1095,11 +1095,11 @@ ielr (void) /* Examine user options. */ { char *type = muscle_percent_define_get ("lr.type"); - if (0 == strcmp (type, "lalr")) + if (STREQ (type, "lalr")) lr_type = LR_TYPE__LALR; - else if (0 == strcmp (type, "ielr")) + else if (STREQ (type, "ielr")) lr_type = LR_TYPE__IELR; - else if (0 == strcmp (type, "canonical-lr")) + else if (STREQ (type, "canonical-lr")) lr_type = LR_TYPE__CANONICAL_LR; else aver (false); |