Subversion Repositories Kolibri OS

Rev

Rev 6099 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6099 Rev 6109
Line 21... Line 21...
21
#include 
21
#include 
Line 22... Line 22...
22
 
22
 
Line 23... Line 23...
23
#define __STRINGIFY(a) #a
23
#define __STRINGIFY(a) #a
24
 
24
 
25
/* 8-bit types */
25
/* 8-bit types */
26
#define __PRI8(x) __INT8 __STRINGIFY(x)
26
#define __PRI8(x) __STRINGIFY(x)
Line 27... Line 27...
27
#define __PRI8LEAST(x) __LEAST8 __STRINGIFY(x)
27
#define __PRI8LEAST(x) __LEAST8 __STRINGIFY(x)
28
#define __PRI8FAST(x) __FAST8 __STRINGIFY(x)
28
#define __PRI8FAST(x) __FAST8 __STRINGIFY(x)
Line 148... Line 148...
148
#define SCNoFAST16	__SCN16FAST(o)
148
#define SCNoFAST16	__SCN16FAST(o)
149
#define SCNuFAST16	__SCN16FAST(u)
149
#define SCNuFAST16	__SCN16FAST(u)
150
#define SCNxFAST16	__SCN16FAST(x)
150
#define SCNxFAST16	__SCN16FAST(x)
Line 151... Line 151...
151
 
151
 
152
/* 32-bit types */
152
/* 32-bit types */
153
#define __PRI32(x) __INT32 __STRINGIFY(x)
153
#define __PRI32(x) __STRINGIFY(I32##x)
154
#define __SCN32(x) __INT32 __STRINGIFY(x)
154
#define __SCN32(x) __STRINGIFY(I32##x)
155
#define __PRI32LEAST(x) __LEAST32 __STRINGIFY(x)
155
#define __PRI32LEAST(x) __LEAST32 __STRINGIFY(x)
156
#define __SCN32LEAST(x) __LEAST32 __STRINGIFY(x)
156
#define __SCN32LEAST(x) __LEAST32 __STRINGIFY(x)
157
#define __PRI32FAST(x) __FAST32 __STRINGIFY(x)
157
#define __PRI32FAST(x) __FAST32 __STRINGIFY(x)
Line 198... Line 198...
198
#define SCNuFAST32	__SCN32FAST(u)
198
#define SCNuFAST32	__SCN32FAST(u)
199
#define SCNxFAST32	__SCN32FAST(x)
199
#define SCNxFAST32	__SCN32FAST(x)
Line 200... Line 200...
200
 
200
 
201
 
201
 
202
/* 64-bit types */
202
/* 64-bit types */
Line 203... Line 203...
203
#define __PRI64(x) __INT64 __STRINGIFY(x)
203
#define __PRI64(x) __STRINGIFY(I64##x)
204
#define __SCN64(x) __INT64 __STRINGIFY(x)
204
#define __SCN64(x) __STRINGIFY(I64##x)
205
 
205
 
206
#define __PRI64LEAST(x) __LEAST64 __STRINGIFY(x)
206
#define __PRI64LEAST(x) __LEAST64 __STRINGIFY(x)
Line 207... Line -...
207
#define __SCN64LEAST(x) __LEAST64 __STRINGIFY(x)
-
 
208
#define __PRI64FAST(x) __FAST64 __STRINGIFY(x)
207
#define __SCN64LEAST(x) __LEAST64 __STRINGIFY(x)
209
#define __SCN64FAST(x) __FAST64 __STRINGIFY(x)
208
#define __PRI64FAST(x) __FAST64 __STRINGIFY(x)
210
 
209
#define __SCN64FAST(x) __FAST64 __STRINGIFY(x)
211
#if __int64_t_defined
210
 
212
#define PRId64		__PRI64(d)
211
#define PRId64		__PRI64(d)
Line 219... Line 218...
219
#define SCNd64		__SCN64(d)
218
#define SCNd64		__SCN64(d)
220
#define SCNi64		__SCN64(i)
219
#define SCNi64		__SCN64(i)
221
#define SCNo64		__SCN64(o)
220
#define SCNo64		__SCN64(o)
222
#define SCNu64		__SCN64(u)
221
#define SCNu64		__SCN64(u)
223
#define SCNx64		__SCN64(x)
222
#define SCNx64		__SCN64(x)
224
#endif
-
 
Line 225... Line 223...
225
 
223
 
226
#if __int_least64_t_defined
224
#if __int_least64_t_defined
227
#define PRIdLEAST64	__PRI64LEAST(d)
225
#define PRIdLEAST64	__PRI64LEAST(d)
228
#define PRIiLEAST64	__PRI64LEAST(i)
226
#define PRIiLEAST64	__PRI64LEAST(i)
Line 252... Line 250...
252
#define SCNuFAST64	__SCN64FAST(u)
250
#define SCNuFAST64	__SCN64FAST(u)
253
#define SCNxFAST64	__SCN64FAST(x)
251
#define SCNxFAST64	__SCN64FAST(x)
254
#endif
252
#endif
Line 255... Line 253...
255
 
253
 
256
/* max-bit types */
-
 
257
#if __have_long64
-
 
258
#define __PRIMAX(x) __STRINGIFY(l##x)
-
 
259
#define __SCNMAX(x) __STRINGIFY(l##x)
-
 
260
#elif __have_longlong64
254
/* max-bit types */
261
#define __PRIMAX(x) __STRINGIFY(ll##x)
255
#define __PRIMAX(x) __STRINGIFY(I64##x)
262
#define __SCNMAX(x) __STRINGIFY(ll##x)
-
 
263
#else
-
 
264
#define __PRIMAX(x) __STRINGIFY(x)
-
 
265
#define __SCNMAX(x) __STRINGIFY(x)
-
 
Line 266... Line 256...
266
#endif
256
#define __SCNMAX(x) __STRINGIFY(I64##x)
267
 
257
 
268
#define PRIdMAX		__PRIMAX(d)
258
#define PRIdMAX		__PRIMAX(d)
269
#define PRIiMAX		__PRIMAX(i)
259
#define PRIiMAX		__PRIMAX(i)
Line 278... Line 268...
278
#define SCNuMAX		__SCNMAX(u)
268
#define SCNuMAX		__SCNMAX(u)
279
#define SCNxMAX		__SCNMAX(x)
269
#define SCNxMAX		__SCNMAX(x)
Line 280... Line 270...
280
 
270
 
281
/* ptr types */
271
/* ptr types */
282
#if defined (_INTPTR_EQ_LONGLONG)
272
#if defined (_INTPTR_EQ_LONGLONG)
283
# define __PRIPTR(x) __STRINGIFY(ll##x)
273
# define __PRIPTR(x) __STRINGIFY(I64##x)
284
# define __SCNPTR(x) __STRINGIFY(ll##x)
274
# define __SCNPTR(x) __STRINGIFY(I64##x)
285
#elif defined (_INTPTR_EQ_LONG)
275
#elif defined (_INTPTR_EQ_LONG)
286
# define __PRIPTR(x) __STRINGIFY(l##x)
276
# define __PRIPTR(x) __STRINGIFY(I32##x)
287
# define __SCNPTR(x) __STRINGIFY(l##x)
277
# define __SCNPTR(x) __STRINGIFY(I32##x)
288
#else
278
#else
289
# define __PRIPTR(x) __STRINGIFY(x)
279
# define __PRIPTR(x) __STRINGIFY(x)
290
# define __SCNPTR(x) __STRINGIFY(x)
280
# define __SCNPTR(x) __STRINGIFY(x)