shishi-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS shishi/gl


From: shishi-commit
Subject: CVS shishi/gl
Date: Sun, 19 Dec 2004 16:37:32 +0100

Update of /home/cvs/shishi/gl
In directory dopio:/tmp/cvs-serv1477/gl

Modified Files:
        alloca_.h getdate.y 
Log Message:
Update.

--- /home/cvs/shishi/gl/alloca_.h       2004/11/11 18:58:35     1.5
+++ /home/cvs/shishi/gl/alloca_.h       2004/12/19 15:37:31     1.6
@@ -18,12 +18,10 @@
    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
    USA.  */
 
-/* When this file is included, it may be preceded only by preprocessor
-   declarations.  Thanks to AIX.  Therefore we include it right after
-   "config.h", not later.  */
-
-#ifndef _ALLOCA_H
-# define _ALLOCA_H
+/* Avoid using the symbol _ALLOCA_H here, as Bison assumes _ALLOCA_H
+   means there is a real alloca function.  */
+#ifndef _GNULIB_ALLOCA_H
+# define _GNULIB_ALLOCA_H
 
 /* alloca (N) returns a pointer to N bytes of memory
    allocated on the stack, which will last until the function returns.
@@ -51,4 +49,4 @@
 void *alloca (size_t);
 #endif
 
-#endif /* _ALLOCA_H */
+#endif /* _GNULIB_ALLOCA_H */
--- /home/cvs/shishi/gl/getdate.y       2004/12/18 16:21:13     1.11
+++ /home/cvs/shishi/gl/getdate.y       2004/12/19 15:37:31     1.12
@@ -36,17 +36,19 @@
 
 #include "getdate.h"
 
-#include <alloca.h>
-/* Tell the bison-generated code when alloca() should be used and, if so,
-   what is the maximum safe argument to alloca().  */
+/* Use alloca only if it is known to be builtin.  */
 #if HAVE_ALLOCA
-# define YYSTACK_USE_ALLOCA 1
-# define YYMAXDEPTH                                                    \
-  ((4032 - sizeof (YYSTYPE)) / (sizeof (short) + sizeof (YYSTYPE)))
+# include <alloca.h>
 #else
 # define YYSTACK_USE_ALLOCA 0
 #endif
 
+/* Tell Bison ow 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
+   implementations have lame stack-overflow checking.  */
+#define YYMAXDEPTH 20
+
 /* 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
    the code were included in the Emacs executable, it probably





reply via email to

[Prev in Thread] Current Thread [Next in Thread]