cctools
int_sizes.h
1 #ifndef __STDC_FORMAT_MACROS
2 #define __STDC_FORMAT_MACROS
3 #endif
4 
5 #include <inttypes.h>
6 /* Eventually this file should disappear, and only inttypes.h should be used.*/
7 
8 #ifndef INT_SIZES_H
9 #define INT_SIZES_H
10 
11 #define INT8_T int8_t
12 #define INT16_T int16_t
13 #define INT32_T int32_t
14 #define INT64_T int64_t
15 #define PTRINT_T intptr_t
16 #define INTPTR_T intptr_t
17 
18 #define INT8_FORMAT "%" PRId8
19 #define INT16_FORMAT "%" PRId16
20 #define INT32_FORMAT "%" PRId32
21 #define INT64_FORMAT "%" PRId64
22 #define PTR_FORMAT "%" PRIxPTR
23 
24 #define UINT8_T uint8_t
25 #define UINT16_T uint16_t
26 #define UINT32_T uint32_t
27 #define UINT64_T uint64_t
28 #define UPTRINT_T uintptr_t
29 #define UINTPTR_T uintptr_t
30 
31 #define UINT8_FORMAT "%" PRIu8
32 #define UINT16_FORMAT "%" PRIu16
33 #define UINT32_FORMAT "%" PRIu32
34 #define UINT64_FORMAT "%" PRIu64
35 #define UPTR_FORMAT "%" UPRIxPTR
36 
37 #endif