mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-22 18:53:04 +00:00
* src/system.h: Include alloca.h.
* src/main.c (main) [C_ALLOCA]: Call alloca (0).
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2001-11-23 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
|
* src/system.h: Include alloca.h.
|
||||||
|
* src/main.c (main) [C_ALLOCA]: Call alloca (0).
|
||||||
|
|
||||||
2001-11-23 Akim Demaille <akim@epita.fr>
|
2001-11-23 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
* src/print_graph.c (print_actions): Remove `rule', unused.
|
* src/print_graph.c (print_actions): Remove `rule', unused.
|
||||||
@@ -6,7 +11,6 @@
|
|||||||
* src/closure.c (itemsetsize): Likewise.
|
* src/closure.c (itemsetsize): Likewise.
|
||||||
* src/reader.c (symbol_list_new): Static.
|
* src/reader.c (symbol_list_new): Static.
|
||||||
|
|
||||||
|
|
||||||
2001-11-23 Akim Demaille <akim@epita.fr>
|
2001-11-23 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
Attaching lineno to buckets is stupid, since only one copy of each
|
Attaching lineno to buckets is stupid, since only one copy of each
|
||||||
|
|||||||
@@ -117,6 +117,12 @@ main (int argc, char *argv[])
|
|||||||
|
|
||||||
output_files ();
|
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;
|
return complain_message_count ? EXIT_FAILURE : EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
15
src/system.h
15
src/system.h
@@ -79,6 +79,21 @@
|
|||||||
extern int errno;
|
extern int errno;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* AIX requires this to be the first thing in the file. */
|
||||||
|
#ifndef __GNUC__
|
||||||
|
# if HAVE_ALLOCA_H
|
||||||
|
# include <alloca.h>
|
||||||
|
# else
|
||||||
|
# ifdef _AIX
|
||||||
|
#pragma alloca
|
||||||
|
# else
|
||||||
|
# ifndef alloca /* predefined by HP cc +Olibcalls */
|
||||||
|
char *alloca ();
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if PROTOTYPES
|
#if PROTOTYPES
|
||||||
# define PARAMS(p) p
|
# define PARAMS(p) p
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user