2 Permission is granted to use, modify, and / or redistribute at will.
4 This includes removing authorship notices, re-use of code parts in
5 other software (with or without giving credit), and / or creating a
6 commercial product based on it.
8 This permission is not revocable by the author.
10 This software is provided as-is. Use it at your own risk. There is
11 no warranty whatsoever, neither expressed nor implied, and by using
12 this software you accept that the author(s) shall not be held liable
13 for any loss of data, loss of service, or other damages, be they
14 incidental or consequential. Your only option other than accepting
15 this is not to use the software at all.
17 #ifndef _LIGHTLIBCPP_CSTDINT
18 #define _LIGHTLIBCPP_CSTDINT
22 #ifdef _LIGHTLIBCPP_CPP03_STRICT
23 #error The <cstdint> Header is not available in strict ISO/IEC 14882:2003 mode
28 #include <stdint.h> // NOTE: (u)int[X]_t, (u)int_fast[X]_t,
29 // (u)int_least[X]_t, (u)intmax_t,
32 // NOTE: macros INT_{FAST, LEAST}{8, 16, 32, 64}_{MIN, MAX}
33 // UINT_{FAST, LEAST}{8, 16, 32, 64}_MAX
34 // INT{MAX, PTR}_{MIN, MAX}, UINT{MAX, PTR}_MAX
35 // {PTRDIFF, SIG_ATOMIC, WCHAR, WINT}_{MIN, MAX}
37 // function macros: [U]INT{8, 16, 32, 64, MAX}_C
38 // taken from C Standard library
44 /** \addtogroup lightlibcpp_18_3 */
49 * int8_t type from the C Standard library
52 * int8_t Typ aus der C Standardbibliothek
55 typedef ::int8_t int8_t;
59 * int16_t type from the C Standard library
62 * int16_t Typ aus der C Standardbibliothek
65 typedef ::int16_t int16_t;
69 * int32_t type from the C Standard library
72 * int32_t Typ aus der C Standardbibliothek
75 typedef ::int32_t int32_t;
79 * int64_t type from the C Standard library
82 * int64_t Typ aus der C Standardbibliothek
85 typedef ::int64_t int64_t;
91 * int_fast8_t type from the C Standard library
94 * int_fast8_t Typ aus der C Standardbibliothek
97 typedef ::int_fast8_t int_fast8_t;
101 * int_fast16_t type from the C Standard library
104 * int_fast16_t Typ aus der C Standardbibliothek
107 typedef ::int_fast16_t int_fast16_t;
111 * int_fast32_t type from the C Standard library
114 * int_fast32_t Typ aus der C Standardbibliothek
117 typedef ::int_fast32_t int_fast32_t;
121 * int_fast64_t type from the C Standard library
124 * int_fast64_t Typ aus der C Standardbibliothek
127 typedef ::int_fast64_t int_fast64_t;
133 * int_least8_t type from the C Standard library
136 * int_least8_t Typ aus der C Standardbibliothek
139 typedef ::int_least8_t int_least8_t;
143 * int_least16_t type from the C Standard library
146 * int_least16_t Typ aus der C Standardbibliothek
149 typedef ::int_least16_t int_least16_t;
153 * int_least32_t type from the C Standard library
156 * int_least32_t Typ aus der C Standardbibliothek
159 typedef ::int_least32_t int_least32_t;
163 * int_least64_t type from the C Standard library
166 * int_least64_t Typ aus der C Standardbibliothek
169 typedef ::int_least64_t int_least64_t;
175 * intmax_t type from the C Standard library
178 * intmax_t Typ aus der C Standardbibliothek
181 typedef ::intmax_t intmax_t;
185 * intptr_t type from the C Standard library
188 * intrptr_t Typ aus der C Standardbibliothek
191 typedef ::intptr_t intptr_t;
197 * uint8_t type from the C Standard library
200 * uint8_t Typ aus der C Standardbibliothek
203 typedef ::uint8_t uint8_t;
207 * uint16_t type from the C Standard library
210 * uint16_t Typ aus der C Standardbibliothek
213 typedef ::uint16_t uint16_t;
217 * uint32_t type from the C Standard library
220 * uint32_t Typ aus der C Standardbibliothek
223 typedef ::uint32_t uint32_t;
227 * uint64_t type from the C Standard library
230 * uint64_t Typ aus der C Standardbibliothek
233 typedef ::uint64_t uint64_t;
239 * uint_fast8_t type from the C Standard library
242 * uint_fast8_t Typ aus der C Standardbibliothek
245 typedef ::uint_fast8_t uint_fast8_t;
249 * uint_fast16_t type from the C Standard library
252 * uint_fast16_t Typ aus der C Standardbibliothek
255 typedef ::uint_fast16_t uint_fast16_t;
259 * uint_fast32_t type from the C Standard library
262 * uint_fast32_t Typ aus der C Standardbibliothek
265 typedef ::uint_fast32_t uint_fast32_t;
269 * uint_fast64_t type from the C Standard library
272 * uint_fast64_t Typ aus der C Standardbibliothek
275 typedef ::uint_fast64_t uint_fast64_t;
281 * uint_least8_t type from the C Standard library
284 * uint_least8_t Typ aus der C Standardbibliothek
287 typedef ::uint_least8_t uint_least8_t;
291 * uint_least16_t type from the C Standard library
294 * uint_least16_t Typ aus der C Standardbibliothek
297 typedef ::uint_least16_t uint_least16_t;
301 * uint_least32_t type from the C Standard library
304 * uint_least32_t Typ aus der C Standardbibliothek
307 typedef ::uint_least32_t uint_least32_t;
311 * uint_least64_t type from the C Standard library
314 * uint_least64_t Typ aus der C Standardbibliothek
317 typedef ::uint_least64_t uint_least64_t;
323 * uintmax_t type from the C Standard library
326 * uintmax_t Typ aus der C Standardbibliothek
329 typedef ::uintmax_t uintmax_t;
333 * uintptr_t type from the C Standard library
336 * uintptr_t Typ aus der C Standardbibliothek
339 typedef ::uintptr_t uintptr_t;