-
Notifications
You must be signed in to change notification settings - Fork 8
/
limits.inc
87 lines (86 loc) · 2.05 KB
/
limits.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
;--- include file created by h2incx v0.95, copyright 2005 japheth
;--- source file: c:\programme\devstudio\vc6\include\limits.h, last modified: 6/15/1998 0:0
if _MSC_VER gt 1000
;#pragma once
endif
ifndef _INC_LIMITS
_INC_LIMITS EQU <>
if NOT defined(_WIN32) AND NOT defined(_MAC)
;#error ERROR : Only Mac or Win32 targets supported !
endif
CHAR_BIT EQU 8
SCHAR_MIN EQU - 128
SCHAR_MAX EQU 127
UCHAR_MAX EQU 0ffh
ifndef _CHAR_UNSIGNED
CHAR_MIN EQU <SCHAR_MIN>
CHAR_MAX EQU <SCHAR_MAX>
else
CHAR_MIN EQU 0
CHAR_MAX EQU <UCHAR_MAX>
endif
MB_LEN_MAX EQU 2
SHRT_MIN EQU - 32768
SHRT_MAX EQU 32767
USHRT_MAX EQU 0ffffh
INT_MIN EQU ( - 2147483647 - 1 )
INT_MAX EQU 2147483647
UINT_MAX EQU 0ffffffffh
LONG_MIN EQU ( - 2147483647 - 1 )
LONG_MAX EQU 2147483647
ULONG_MAX EQU 0ffffffffh
if _INTEGRAL_MAX_BITS ge 8
_I8_MIN EQU ( - 127 - 1 )
_I8_MAX EQU 127
_UI8_MAX EQU 0ffh
endif
if _INTEGRAL_MAX_BITS ge 16
_I16_MIN EQU ( - 32767 - 1 )
_I16_MAX EQU 32767
_UI16_MAX EQU 0ffffh
endif
if _INTEGRAL_MAX_BITS ge 32
_I32_MIN EQU ( - 2147483647 - 1 )
_I32_MAX EQU 2147483647
_UI32_MAX EQU 0ffffffffh
endif
if _INTEGRAL_MAX_BITS ge 64
_I64_MIN EQU ( - 9223372036854775807 - 1 )
_I64_MAX EQU 9223372036854775807
_UI64_MAX EQU 0ffffffffffffffffh
endif
if _INTEGRAL_MAX_BITS ge 128
_I128_MIN EQU ( - 170141183460469231731687303715884105727 - 1 )
_I128_MAX EQU 170141183460469231731687303715884105727
_UI128_MAX EQU 0ffffffffffffffffffffffffffffffffh
endif
ifdef _POSIX_
_POSIX_ARG_MAX EQU 4096
_POSIX_CHILD_MAX EQU 6
_POSIX_LINK_MAX EQU 8
_POSIX_MAX_CANON EQU 255
_POSIX_MAX_INPUT EQU 255
_POSIX_NAME_MAX EQU 14
_POSIX_NGROUPS_MAX EQU 0
_POSIX_OPEN_MAX EQU 16
_POSIX_PATH_MAX EQU 255
_POSIX_PIPE_BUF EQU 512
_POSIX_SSIZE_MAX EQU 32767
_POSIX_STREAM_MAX EQU 8
_POSIX_TZNAME_MAX EQU 3
ARG_MAX EQU 14500
LINK_MAX EQU 1024
MAX_CANON EQU <_POSIX_MAX_CANON>
MAX_INPUT EQU <_POSIX_MAX_INPUT>
NAME_MAX EQU 255
NGROUPS_MAX EQU 16
OPEN_MAX EQU 32
PATH_MAX EQU 512
PIPE_BUF EQU <_POSIX_PIPE_BUF>
SSIZE_MAX EQU <_POSIX_SSIZE_MAX>
STREAM_MAX EQU 20
TZNAME_MAX EQU 10
endif
endif
;--- errors: 0
;--- end of file ---