1 /* c-minmax.h: define INT_MIN, etc. Assume a 32-bit machine if the
4 Copyright 1992 Karl Berry
5 Copyright 2007 TeX Users Group
6 Copyright 2014 Clerk Ma
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
28 /* Declared in <limits.h> on ANSI C systems. If the system doesn't
29 define it, we use the minimum ANSI values -- except for `int'; we
30 assume 32-bit integers. */
33 #define SCHAR_MIN (-127)
43 #define SHRT_MIN (-32767)
46 #define SHRT_MAX 32767
49 #define USHRT_MAX 65535
53 #define INT_MIN (-2147483647)
56 #define INT_MAX 2147483647
59 #define UINT_MAX 4294967295
63 #define LONG_MIN INT_MIN
66 #define LONG_MAX INT_MAX
69 #define ULONG_MAX UINT_MAX
72 /* Declared in <float.h> on ANSI C systems. */
87 #endif /* not C_MINMAX_H */