X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/f3bc338643cf15f345fa3a63811bd92869a42b89..0fe9720964da510a2b359af390a3053aace65f9f:/src/main.c diff --git a/src/main.c b/src/main.c index 9a03630d..5386aa71 100644 --- a/src/main.c +++ b/src/main.c @@ -94,7 +94,7 @@ main (int argc, char *argv[]) reader (); timevar_pop (TV_READER); - if (complaint_issued) + if (complaint_status == status_complaint) goto finish; /* Find useless nonterminals and productions and reduce the grammar. */ @@ -173,7 +173,7 @@ main (int argc, char *argv[]) /* Stop if there were errors, to avoid trashing previous output files. */ - if (complaint_issued) + if (complaint_status == status_complaint) goto finish; /* Lookahead tokens are no longer needed. */ @@ -215,5 +215,7 @@ main (int argc, char *argv[]) timevar_stop (TV_TOTAL); timevar_print (stderr); - return complaint_issued ? EXIT_FAILURE : EXIT_SUCCESS; + cleanup_caret (); + + return complaint_status ? EXIT_FAILURE : EXIT_SUCCESS; }