From 970562b47044979ea157869d601ea8350e0a7d12 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 24 Dec 2004 05:29:20 +0000 Subject: [PATCH] (YYSTACK_USE_ALLOCA): Define to 0, since there's no need to extend the stack. --- lib/getdate.y | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/lib/getdate.y b/lib/getdate.y index f6c860de4a..4c59334bc3 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -36,16 +36,13 @@ #include "getdate.h" -/* Use alloca only if it is known to be builtin. */ -#if HAVE_ALLOCA -# include -#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 -- 2.30.2