X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/473d0a75671169bda82caff3803b91ece9514cae..41cce2f604996c7713d9025f8a719ea56d83783e:/src/reader.c diff --git a/src/reader.c b/src/reader.c index c965fa8a..928a5408 100644 --- a/src/reader.c +++ b/src/reader.c @@ -422,7 +422,7 @@ packgram (void) rules[ruleno].lhs = p->sym; rules[ruleno].rhs = ritem + itemno; rules[ruleno].location = p->location; - rules[ruleno].useful = TRUE; + rules[ruleno].useful = true; rules[ruleno].action = p->action; rules[ruleno].action_location = p->action_location; rules[ruleno].dprec = p->dprec; @@ -507,8 +507,8 @@ reader (void) /* If something went wrong during the parsing, don't try to continue. */ - if (complain_message_count) - exit (1); + if (complaint_issued) + exit (EXIT_FAILURE); /* Grammar has been read. Do some checking */ if (nrules == 0)