]> git.saurik.com Git - bison.git/blobdiff - src/main.c
* src/system.h: Include alloca.h.
[bison.git] / src / main.c
index 62436a806914b14e38ec28d48d378e5cb1e0dfa9..33994c9b3596d00d77f7cf3f29945e49b6687155 100644 (file)
@@ -117,6 +117,12 @@ main (int argc, char *argv[])
 
   output_files ();
 
+  /* 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