projects
/
bison.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* doc/bison.texinfo (Debugging): Split into...
[bison.git]
/
src
/
system.h
diff --git
a/src/system.h
b/src/system.h
index 0c5833e39c5a3884bcf760a2e7d60d336a6fadc8..8cd8bba1913a9447fdd8c9336621e2d4d8a3c994 100644
(file)
--- a/
src/system.h
+++ b/
src/system.h
@@
-89,6
+89,16
@@
char *alloca ();
# endif
#endif
# 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. */
# 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
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
#if !HAVE_DECL_STRSPN
size_t strspn(const char *s, const char *accept);
#endif
@@
-223,23
+229,6
@@
do { \
} while (0)
} 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. |
/*-----------------------------------------.
| Extensions to use for the output files. |
@@
-249,21
+238,15
@@
do { \
/* VMS. */
# define EXT_TAB "_tab"
# define EXT_OUTPUT ".output"
/* VMS. */
# define EXT_TAB "_tab"
# define EXT_OUTPUT ".output"
-# define EXT_STYPE_H "_stype"
-# define EXT_GUARD_C "_guard"
#else /* ! VMS */
# ifdef MSDOS
/* MS DOS. */
# define EXT_TAB "_tab"
# define EXT_OUTPUT ".out"
#else /* ! VMS */
# ifdef MSDOS
/* MS DOS. */
# define EXT_TAB "_tab"
# define EXT_OUTPUT ".out"
-# define EXT_STYPE_H ".sth"
-# define EXT_GUARD_C ".guc"
# else /* ! MSDOS */
/* Standard. */
# define EXT_TAB ".tab"
# define EXT_OUTPUT ".output"
# else /* ! MSDOS */
/* Standard. */
# define EXT_TAB ".tab"
# define EXT_OUTPUT ".output"
-# define EXT_STYPE_H ".stype"
-# define EXT_GUARD_C ".guard"
# endif /* ! MSDOS */
#endif /* ! VMS */
# endif /* ! MSDOS */
#endif /* ! VMS */
@@
-273,13
+256,6
@@
do { \
-/*----------------------------.
-| As memcpy, but for shorts. |
-`----------------------------*/
-
-#define shortcpy(Dest, Src, Num) \
- memcpy (Dest, Src, Num * sizeof (short))
-
/*---------------------.
| Free a linked list. |
`---------------------*/
/*---------------------.
| Free a linked list. |
`---------------------*/