aboutsummaryrefslogtreecommitdiff
path: root/gcc/glimits.h
diff options
context:
space:
mode:
authorJ"orn Rennecke <amylaar@cygnus.co.uk>1997-11-12 03:17:41 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>1997-11-12 03:17:41 +0000
commita6124a42bc476740bfa03e928f007671baf0cba9 (patch)
tree25156243197cc222baf5efaf2bcafe5bb7dfa719 /gcc/glimits.h
parent8f3189a48b529402c7d9d64a60bc0a1c0431c48d (diff)
downloadgcc-a6124a42bc476740bfa03e928f007671baf0cba9.zip
gcc-a6124a42bc476740bfa03e928f007671baf0cba9.tar.gz
gcc-a6124a42bc476740bfa03e928f007671baf0cba9.tar.bz2
glimits.h (SHRT_MIN): Define in a way suitable for 16 bit hosts.
* glimits.h (SHRT_MIN): Define in a way suitable for 16 bit hosts. * c-lex.c (whitespace_cr, skip_white_space_on_line): New functions. (skip_white_space): Use whitespace_cr. (check_newline): Handle whitespace more consistently. From-SVN: r16433
Diffstat (limited to 'gcc/glimits.h')
-rw-r--r--gcc/glimits.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/glimits.h b/gcc/glimits.h
index 933a3a8..0e3228b 100644
--- a/gcc/glimits.h
+++ b/gcc/glimits.h
@@ -39,7 +39,8 @@
/* Minimum and maximum values a `signed short int' can hold. */
#undef SHRT_MIN
-#define SHRT_MIN (-32768)
+/* For the sake of 16 bit hosts, we may not use -32768 */
+#define SHRT_MIN (-32767-1)
#undef SHRT_MAX
#define SHRT_MAX 32767