]> git.saurik.com Git - bison.git/blobdiff - src/system.h
Point to an official beta.
[bison.git] / src / system.h
index 1887d9e00d950da3cbe09f3450c2ba3bdc4d9050..6dd83bcfa97a1757ee96bc3b9cc8640299c906ee 100644 (file)
@@ -89,6 +89,16 @@ char *alloca ();
 # endif
 #endif
 
+#if HAVE_LIMITS_H
+# include <limits.h>
+#endif
+#ifndef SHRT_MIN
+# define SHRT_MIN (-32768)
+#endif
+#ifndef SHRT_MAX
+# define SHRT_MAX 32767
+#endif
+
 # include "xalloc.h"
 
 /* From xstrndup.c.  */
@@ -219,23 +229,6 @@ do {                                                               \
 } while (0)
 
 
-/*---------------------------------.
-| Machine-dependencies for Bison.  |
-`---------------------------------*/
-
-#ifdef eta10
-# define       MAXSHORT        2147483647
-# define       MINSHORT        -2147483648
-#else
-# define       MAXSHORT        32767
-# define       MINSHORT        -32768
-#endif
-
-#if defined (MSDOS) && !defined (__GO32__)
-# define MAXTABLE      16383
-#else
-# define MAXTABLE      32767
-#endif
 
 /*-----------------------------------------.
 | Extensions to use for the output files.  |
@@ -269,13 +262,6 @@ do {                                                               \
 
 
 
-/*----------------------------.
-| As memcpy, but for shorts.  |
-`----------------------------*/
-
-#define shortcpy(Dest, Src, Num) \
-  memcpy (Dest, Src, Num * sizeof (short))
-
 /*---------------------.
 | Free a linked list.  |
 `---------------------*/