summaryrefslogtreecommitdiff
path: root/src/ielr.c
diff options
context:
space:
mode:
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 e6aa6f5c..997ba13a 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);