mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 00:33:03 +00:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user