Pristine Ack-5.5
[Ack-5.5.git] / lang / cem / libcc.ansi / headers / limits.h
1 /*
2  * limits.h - implementation limits
3  */
4 /* $Id: limits.h,v 1.4 1994/06/24 11:40:53 ceriel Exp $ */
5
6 #if     !defined(_LIMITS_H)
7 #define _LIMITS_H
8
9 #define CHAR_BIT                8
10 #define SCHAR_MIN               -128
11 #define SCHAR_MAX               127
12 #define UCHAR_MAX               255
13 #define MB_LEN_MAX              1
14
15 #define SHRT_MIN                (-32767 - 1)
16 #define SHRT_MAX                32767
17 #define USHRT_MAX               65535U
18
19 #define LONG_MIN                (-2147483647L - 1L)
20 #define LONG_MAX                2147483647L
21 #define ULONG_MAX               4294967295UL
22
23 /* Assume signed characters (yegh) */
24 #define CHAR_MAX                SCHAR_MAX
25 #define CHAR_MIN                SCHAR_MIN
26
27 #if     _EM_WSIZE == 2
28 #define INT_MIN                 SHRT_MIN
29 #define INT_MAX                 SHRT_MAX
30 #define UINT_MAX                65535U
31 #else   /* _EM_WSIZE == 4 */
32 #define INT_MIN                 (-2147483647 - 1)
33 #define INT_MAX                 2147483647
34 #define UINT_MAX                4294967295U
35 #endif
36
37 #endif  /* _LIMITS_H */