comparison stdint.h @ 16:5ce8bdb1369f

Better handling of (U)INTx_C macros - now they generate constants of exact width.
author ipse.c99@d525d15b-5824-0410-80a3-6185d19c2cde
date Tue, 26 Jun 2007 12:53:23 +0000
parents f831bbea3401
children 5f2b8140b2cd
comparison
equal deleted inserted replaced
15:f831bbea3401 16:5ce8bdb1369f
200 200
201 #if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) // [ See footnote 224 at page 260 201 #if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) // [ See footnote 224 at page 260
202 202
203 // 7.18.4.1 Macros for minimum-width integer constants 203 // 7.18.4.1 Macros for minimum-width integer constants
204 204
205 #define INT8_C(val) val 205 #define INT8_C(val) val##i8
206 #define INT16_C(val) val 206 #define INT16_C(val) val##i16
207 #define INT32_C(val) val##L 207 #define INT32_C(val) val##i32
208 #define INT64_C(val) val##i64 208 #define INT64_C(val) val##i64
209 209
210 #define UINT8_C(val) val 210 #define UINT8_C(val) val##ui8
211 #define UINT16_C(val) val 211 #define UINT16_C(val) val##ui16
212 #define UINT32_C(val) val##UL 212 #define UINT32_C(val) val##ui32
213 #define UINT64_C(val) val##Ui64 213 #define UINT64_C(val) val##ui64
214 214
215 // 7.18.4.2 Macros for greatest-width integer constants 215 // 7.18.4.2 Macros for greatest-width integer constants
216 #define INTMAX_C INT64_C 216 #define INTMAX_C INT64_C
217 #define UINTMAX_C UINT64_C 217 #define UINTMAX_C UINT64_C
218 218