diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-12-24 05:27:07 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-12-24 05:27:07 +0000 |
commit | 6a9179a556e0ce927f95a3a577d9be4b33ead8b0 (patch) | |
tree | 0499014d6c6104df52e65e8477073242f2b384e7 | |
parent | 9a98a6c4024ead5d66715e97fba97e3f15c1b082 (diff) | |
download | coreutils-6a9179a556e0ce927f95a3a577d9be4b33ead8b0.tar.xz |
(YYSTACK_USE_ALLOCA): Define to 0, since there's no
need to extend the stack.
(YYINITDEPTH): New macro, so that the initial stack isn't overly
large.
-rw-r--r-- | lib/getdate.y | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/getdate.y b/lib/getdate.y index 60ff665a5..4c59334bc 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -36,18 +36,16 @@ #include "getdate.h" -/* Use alloca only if it is known to be builtin. */ -#if HAVE_ALLOCA -# include <alloca.h> -#else -# define YYSTACK_USE_ALLOCA 0 -#endif +/* There's no need to extend the stack, so there's no need to involve + alloca. */ +#define YYSTACK_USE_ALLOCA 0 /* Tell Bison how much stack space is needed. 20 should be plenty for this grammar, which is not right recursive. Beware setting it too - high, since that might cause problems on machines whose alloca + high, since that might cause problems on machines whose implementations have lame stack-overflow checking. */ #define YYMAXDEPTH 20 +#define YYINITDEPTH YYMAXDEPTH /* Since the code of getdate.y is not included in the Emacs executable itself, there is no need to #define static in this file. Even if |