1 // ----------------------------------------------------------------------------
3 // ----------------------------------------------------------------------------
4 // Public Domain C Library - http://pdclib.sourceforge.net
5 // This code is Public Domain. Use, modify, and redistribute at will.
6 // ----------------------------------------------------------------------------
8 // ----------------------------------------------------------------------------
11 #define __STDINT_H __STDINT_H
13 // ----------------------------------------------------------------------------
16 typedef int8_t; // TODO
17 typedef int16_t; // TODO
18 typedef int32_t; // TODO
19 typedef int64_t; // TODO
21 typedef uint8_t; // TODO
22 typedef uint16_t; // TODO
23 typedef uint32_t; // TODO
24 typedef uint64_t; // TODO
26 typedef int_least8_t; // TODO
27 typedef int_least16_t; // TODO
28 typedef int_least32_t; // TODO
29 typedef int_least64_t; // TODO
31 typedef uint_least8_t; // TODO
32 typedef uint_least16_t; // TODO
33 typedef uint_least32_t; // TODO
34 typedef uint_least64_t; // TODO
36 typedef int_fast8_t; // TODO
37 typedef int_fast16_t; // TODO
38 typedef int_fast32_t; // TODO
39 typedef int_fast64_t; // TODO
41 typedef uint_fast8_t; // TODO
42 typedef uint_fast16_t; // TODO
43 typedef uint_fast32_t; // TODO
44 typedef uint_fast64_t; // TODO
46 typedef intptr_t; // TODO
47 typedef uintptr_t; // TODO
49 typedef intmax_t; // TODO
50 typedef uintmax_t; // TODO
52 // ----------------------------------------------------------------------------
55 #define INT8_MIN // TODO
56 #define INT16_MIN // TODO
57 #define INT32_MIN // TODO
58 #define INT64_MIN // TODO
61 #define INT16_MAX 0x7fff
62 #define INT32_MAX 0x7fffffff
63 #define INT64_MAX 0x7fffffffffffffff
65 #define UINT8_MAX 0xff
66 #define UINT16_MAX 0xffff
67 #define UINT32_MAX 0xffffffff
68 #define UINT64_MAX 0xffffffffffffffff
70 #define INT_LEAST8_MIN // TODO
71 #define INT_LEAST16_MIN // TODO
72 #define INT_LEAST32_MIN // TODO
73 #define INT_LEAST64_MIN // TODO
75 #define INT_LEAST8_MAX // TODO
76 #define INT_LEAST16_MAX // TODO
77 #define INT_LEAST32_MAX // TODO
78 #define INT_LEAST64_MAX // TODO
80 #define UINT_LEAST8_MAX // TODO
81 #define UINT_LEAST16_MAX // TODO
82 #define UINT_LEAST32_MAX // TODO
83 #define UINT_LEAST64_MAX // TODO
85 #define INT_FAST8_MIN // TODO
86 #define INT_FAST16_MIN // TODO
87 #define INT_FAST32_MIN // TODO
88 #define INT_FAST64_MIN // TODO
90 #define INT_FAST8_MAX // TODO
91 #define INT_FAST16_MAX // TODO
92 #define INT_FAST32_MAX // TODO
93 #define INT_FAST64_MAX // TODO
95 #define UINT_FAST8_MAX // TODO
96 #define UINT_FAST16_MAX // TODO
97 #define UINT_FAST32_MAX // TODO
98 #define UINT_FAST64_MAX // TODO
100 #define INTPTR_MIN // TODO
101 #define INTPTR_MAX // TODO
102 #define UINTPTR_MAX // TODO
104 #define INT8_C(x) // TODO
105 #define INT16_C(x) // TODO
106 #define INT32_C(x) // TODO
107 #define INT64_C(x) // TODO
109 #define UINT8_C(x) // TODO
110 #define UINT16_C(x) // TODO
111 #define UINT32_C(x) // TODO
112 #define UINT64_C(x) // TODO
114 #define INTMAX_C(x) // TODO
115 #define UINTMAX_C(x) // TODO
117 #define PTRDIFF_MIN // TODO
118 #define PTRDIFF_MAX // TODO
120 #define SIG_ATOMIC_MIN // TODO
121 #define SIG_ATOMIC_MAX // TODO
123 #define SIZE_MAX // TODO
125 #define WCHAR_MIN // TODO
126 #define WCHAR_MAX // TODO
128 #define WINT_MIN // TODO
129 #define WINT_MAX // TODO
131 #define INTMAX_MIN // TODO
132 #define INTMAX_MAX // TODO
133 #define UINTMAX_MAX // TODO