X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/34136e65fc7bd6babcfedcbfcfdca3b9feb10f1d..6c05543cb03b40b9728f7073c4073ce993d796c6:/src/print.c diff --git a/src/print.c b/src/print.c index 99dea233..e3795a94 100644 --- a/src/print.c +++ b/src/print.c @@ -22,7 +22,6 @@ #include "system.h" #include -#include #include "LR0.h" #include "closure.h" @@ -337,8 +336,8 @@ print_reductions (FILE *out, state *s) char *default_reductions = muscle_percent_define_get ("lr.default-reductions"); print_reduction (out, width, _("$default"), default_reduction, true); - aver (0 == strcmp (default_reductions, "most") - || (0 == strcmp (default_reductions, "consistent") + aver (STREQ (default_reductions, "most") + || (STREQ (default_reductions, "consistent") && default_reduction_only) || (reds->num == 1 && reds->rules[0]->number == 0)); free (default_reductions);