if (complain_message_count)
exit (1);
- /* Find useless nonterminals and productions and reduce the grammar.
- In file reduce.c. */
+ /* Find useless nonterminals and productions and reduce the grammar. */
reduce_grammar ();
/* Record other info about the grammar. In files derives and
output_files ();
- exit (complain_message_count ? 1 : 0);
+ /* If using alloca.c, flush the alloca'ed memory for the benefit of
+ people running Bison as a library in IDEs. */
+#if C_ALLOCA
+ alloca (0);
+#endif
+
+ return complain_message_count ? EXIT_FAILURE : EXIT_SUCCESS;
}
\f
/* Abort for an internal error denoted by string S. */