* src/system.h: Include alloca.h.

* src/main.c (main) [C_ALLOCA]: Call alloca (0).
This commit is contained in:
Akim Demaille
2001-11-23 14:13:19 +00:00
parent f0451dba71
commit 16c4a35041
3 changed files with 26 additions and 1 deletions

View 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;
}