|
|
1.1 root 1: /* (-lgl
2: * COHERENT Version 4.0
3: * Copyright (c) 1982, 1992 by Mark Williams Company.
4: * All rights reserved. May not be copied without permission.
5: -lgl) */
6: /*
7: * limits.h
8: * C numerical limits header.
9: * Draft Proposed ANSI C Standard, 12/7/88 draft.
10: * Sections 2.2.4.2, 4.1.4.
11: * 2's complement arithmetic
12: * char 8 bits, sign-extended
13: * short 16 bits
14: * int 16 bits for i8086, 32 bits for i386
15: * long 32 bits
16: */
17:
18: #ifndef _LIMITS_H
19: #define _LIMITS_H
20:
21: #define CHAR_BIT 8
22: #define CHAR_MAX SCHAR_MAX
23: #define CHAR_MIN SCHAR_MIN
24: #if IAPX86
25: #define INT_MAX 0x7FFF
26: #define INT_MIN 0x8000
27: #elif _I386
28: #define INT_MAX 0x7FFFFFFF
29: #define INT_MIN 0x80000000
30: #endif
31: #define LONG_MAX 0x7FFFFFFFL
32: #define LONG_MIN 0x80000000L
33: #define MB_LEN_MAX 1
34: #define SCHAR_MAX 127
35: #define SCHAR_MIN -128
36: #define SHRT_MAX 32767
37: #define SHRT_MIN -32768
38: #define UCHAR_MAX 255
39: #if IAPX86
40: #define UINT_MAX 0xFFFFU
41: #elif _I386
42: #define UINT_MAX 0xFFFFFFFFU
43: #endif
44: #define USHRT_MAX 0xFFFFU
45: #define ULONG_MAX 0xFFFFFFFFUL
46:
47: #endif
48:
49: /* end of limits.h */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.