X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/0e721e7569828defbeb88572e7a1e331ee665006..e91ff6ce3d2653b41265591dafd4bdb32ae114c2:/src/system.h?ds=inline diff --git a/src/system.h b/src/system.h index f770b8f4..6dd83bcf 100644 --- a/src/system.h +++ b/src/system.h @@ -89,6 +89,16 @@ char *alloca (); # endif #endif +#if HAVE_LIMITS_H +# include +#endif +#ifndef SHRT_MIN +# define SHRT_MIN (-32768) +#endif +#ifndef SHRT_MAX +# define SHRT_MAX 32767 +#endif + # include "xalloc.h" /* From xstrndup.c. */ @@ -106,10 +116,6 @@ char *stpcpy PARAMS ((char *dest, const char *src)); char *strchr(const char *s, int c); #endif -#if !HAVE_DECL_STRNDUP -char *strndup PARAMS ((const char *s, size_t size)); -#endif - #if !HAVE_DECL_STRSPN size_t strspn(const char *s, const char *accept); #endif @@ -158,7 +164,7 @@ void *memrchr PARAMS ((const void *s, int c, size_t n)); # define setlocale(Category, Locale) #endif -#include "libgettext.h" +#include "gettext.h" #define _(Msgid) gettext (Msgid) #define N_(Msgid) (Msgid) @@ -223,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. | @@ -273,13 +262,6 @@ do { \ -/*----------------------------. -| As memcpy, but for shorts. | -`----------------------------*/ - -#define shortcpy(Dest, Src, Num) \ - memcpy (Dest, Src, Num * sizeof (short)) - /*---------------------. | Free a linked list. | `---------------------*/