summaryrefslogtreecommitdiff
path: root/src/ielr.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/ielr.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/ielr.c')
-rw-r--r--src/ielr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ielr.c b/src/ielr.c
index cde2baaf..39e9cb66 100644
--- a/src/ielr.c
+++ b/src/ielr.c
@@ -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);