mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 16:53:02 +00:00
* src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
defining it (defined but null disables alloca).
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2001-08-13 Marc Autret <autret_m@epita.fr>
|
||||||
|
|
||||||
|
* src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
|
||||||
|
defining it (defined but null disables alloca).
|
||||||
|
|
||||||
2001-08-13 Marc Autret <autret_m@epita.fr>
|
2001-08-13 Marc Autret <autret_m@epita.fr>
|
||||||
|
|
||||||
* src/bison.simple (_yy_memcpy): CPP reformat.
|
* src/bison.simple (_yy_memcpy): CPP reformat.
|
||||||
|
|||||||
@@ -30,14 +30,14 @@
|
|||||||
|
|
||||||
#ifndef YYSTACK_USE_ALLOCA
|
#ifndef YYSTACK_USE_ALLOCA
|
||||||
# ifdef alloca
|
# ifdef alloca
|
||||||
# define YYSTACK_USE_ALLOCA
|
# define YYSTACK_USE_ALLOCA 1
|
||||||
# else /* alloca not defined */
|
# else /* alloca not defined */
|
||||||
# ifdef __GNUC__
|
# ifdef __GNUC__
|
||||||
# define YYSTACK_USE_ALLOCA
|
# define YYSTACK_USE_ALLOCA 1
|
||||||
# define alloca __builtin_alloca
|
# define alloca __builtin_alloca
|
||||||
# else /* not GNU C. */
|
# else /* not GNU C. */
|
||||||
# if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386))
|
# if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386))
|
||||||
# define YYSTACK_USE_ALLOCA
|
# define YYSTACK_USE_ALLOCA 1
|
||||||
# include <alloca.h>
|
# include <alloca.h>
|
||||||
# else /* not sparc */
|
# else /* not sparc */
|
||||||
/* We think this test detects Watcom and Microsoft C. */
|
/* We think this test detects Watcom and Microsoft C. */
|
||||||
@@ -55,13 +55,13 @@
|
|||||||
namespace. So I turned it off. rms, 2 May 1997. */
|
namespace. So I turned it off. rms, 2 May 1997. */
|
||||||
/* #include <malloc.h> */
|
/* #include <malloc.h> */
|
||||||
#pragma alloca
|
#pragma alloca
|
||||||
# define YYSTACK_USE_ALLOCA
|
# define YYSTACK_USE_ALLOCA 1
|
||||||
# else /* not MSDOS, or __TURBOC__, or _AIX */
|
# else /* not MSDOS, or __TURBOC__, or _AIX */
|
||||||
# if 0
|
# if 0
|
||||||
/* haible@ilog.fr says this works for HPUX 9.05 and up, and on
|
/* haible@ilog.fr says this works for HPUX 9.05 and up, and on
|
||||||
HPUX 10. Eventually we can turn this on. */
|
HPUX 10. Eventually we can turn this on. */
|
||||||
# ifdef __hpux
|
# ifdef __hpux
|
||||||
# define YYSTACK_USE_ALLOCA
|
# define YYSTACK_USE_ALLOCA 1
|
||||||
# define alloca __builtin_alloca
|
# define alloca __builtin_alloca
|
||||||
# endif /* __hpux */
|
# endif /* __hpux */
|
||||||
# endif
|
# endif
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
# endif /* alloca not defined */
|
# endif /* alloca not defined */
|
||||||
#endif /* YYSTACK_USE_ALLOCA not defined */
|
#endif /* YYSTACK_USE_ALLOCA not defined */
|
||||||
|
|
||||||
#ifdef YYSTACK_USE_ALLOCA
|
#if YYSTACK_USE_ALLOCA
|
||||||
# define YYSTACK_ALLOC alloca
|
# define YYSTACK_ALLOC alloca
|
||||||
#else
|
#else
|
||||||
# define YYSTACK_ALLOC malloc
|
# define YYSTACK_ALLOC malloc
|
||||||
|
|||||||
Reference in New Issue
Block a user