X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/0dbb648e3fbf9f879fb1f44a5933f2f32ddc590d..d8880f69ff2e5c0a88007c48a5142db388426868:/src/main.c diff --git a/src/main.c b/src/main.c index d14657a1..1b3a45a1 100644 --- a/src/main.c +++ b/src/main.c @@ -50,9 +50,6 @@ main (int argc, char *argv[]) lineno = 0; getargs (argc, argv); - /* Be ready to clean up if we exit. */ - atexit (done); - open_files (); /* Read the input. Copy some parts of it to FGUARD, FACTION, FTABLE @@ -93,6 +90,9 @@ main (int argc, char *argv[]) free_nullable (); free_derives (); + if (!complain_message_count) + output_files (); + exit (complain_message_count ? 1 : 0); }