2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
6 /* 7.8 Format conversion of integer types <inttypes.h> */
13 #define __need_wchar_t
25 /* 7.8.1 Macros for format specifiers */
33 /* fprintf macros for signed types */
38 #define PRIdLEAST8 "d"
39 #define PRIdLEAST16 "d"
40 #define PRIdLEAST32 "d"
41 #define PRIdLEAST64 PRId64
44 #define PRIdFAST16 "d"
45 #define PRIdFAST32 "d"
46 #define PRIdFAST64 PRId64
48 #define PRIdMAX PRId64
54 #define PRIiLEAST8 "i"
55 #define PRIiLEAST16 "i"
56 #define PRIiLEAST32 "i"
57 #define PRIiLEAST64 PRIi64
60 #define PRIiFAST16 "i"
61 #define PRIiFAST32 "i"
62 #define PRIiFAST64 PRIi64
64 #define PRIiMAX PRIi64
70 #define PRIoLEAST8 "o"
71 #define PRIoLEAST16 "o"
72 #define PRIoLEAST32 "o"
73 #define PRIoLEAST64 PRIo64
76 #define PRIoFAST16 "o"
77 #define PRIoFAST32 "o"
78 #define PRIoFAST64 PRIo64
80 #define PRIoMAX PRIo64
82 /* fprintf macros for unsigned types */
88 #define PRIuLEAST8 "u"
89 #define PRIuLEAST16 "u"
90 #define PRIuLEAST32 "u"
91 #define PRIuLEAST64 PRIu64
94 #define PRIuFAST16 "u"
95 #define PRIuFAST32 "u"
96 #define PRIuFAST64 PRIu64
98 #define PRIuMAX PRIu64
104 #define PRIxLEAST8 "x"
105 #define PRIxLEAST16 "x"
106 #define PRIxLEAST32 "x"
107 #define PRIxLEAST64 PRIx64
109 #define PRIxFAST8 "x"
110 #define PRIxFAST16 "x"
111 #define PRIxFAST32 "x"
112 #define PRIxFAST64 PRIx64
114 #define PRIxMAX PRIx64
120 #define PRIXLEAST8 "X"
121 #define PRIXLEAST16 "X"
122 #define PRIXLEAST32 "X"
123 #define PRIXLEAST64 PRIX64
125 #define PRIXFAST8 "X"
126 #define PRIXFAST16 "X"
127 #define PRIXFAST32 "X"
128 #define PRIXFAST64 PRIX64
130 #define PRIXMAX PRIX64
133 * fscanf macros for signed int types
134 * NOTE: if 32-bit int is used for int_fast8_t and int_fast16_t
135 * (see stdint.h, 7.18.1.3), FAST8 and FAST16 should have
136 * no length identifiers
141 #define SCNd64 PRId64
143 #define SCNdLEAST16 "hd"
144 #define SCNdLEAST32 "d"
145 #define SCNdLEAST64 PRId64
147 #define SCNdFAST16 "hd"
148 #define SCNdFAST32 "d"
149 #define SCNdFAST64 PRId64
151 #define SCNdMAX PRId64
155 #define SCNi64 PRIi64
157 #define SCNiLEAST16 "hi"
158 #define SCNiLEAST32 "i"
159 #define SCNiLEAST64 PRIi64
161 #define SCNiFAST16 "hi"
162 #define SCNiFAST32 "i"
163 #define SCNiFAST64 PRIi64
165 #define SCNiMAX PRIi64
169 #define SCNo64 PRIo64
171 #define SCNoLEAST16 "ho"
172 #define SCNoLEAST32 "o"
173 #define SCNoLEAST64 PRIo64
175 #define SCNoFAST16 "ho"
176 #define SCNoFAST32 "o"
177 #define SCNoFAST64 PRIo64
179 #define SCNoMAX PRIo64
183 #define SCNx64 PRIx64
185 #define SCNxLEAST16 "hx"
186 #define SCNxLEAST32 "x"
187 #define SCNxLEAST64 PRIx64
189 #define SCNxFAST16 "hx"
190 #define SCNxFAST32 "x"
191 #define SCNxFAST64 PRIx64
193 #define SCNxMAX PRIx64
195 /* fscanf macros for unsigned int types */
199 #define SCNu64 PRIu64
201 #define SCNuLEAST16 "hu"
202 #define SCNuLEAST32 "u"
203 #define SCNuLEAST64 PRIu64
205 #define SCNuFAST16 "hu"
206 #define SCNuFAST32 "u"
207 #define SCNuFAST64 PRIu64
209 #define SCNuMAX PRIu64
212 #define PRIdPTR PRId64
213 #define PRIiPTR PRIi64
214 #define PRIoPTR PRIo64
215 #define PRIuPTR PRIu64
216 #define PRIxPTR PRIx64
217 #define PRIXPTR PRIX64
218 #define SCNdPTR PRId64
219 #define SCNiPTR PRIi64
220 #define SCNoPTR PRIo64
221 #define SCNxPTR PRIx64
222 #define SCNuPTR PRIu64
241 #endif /* ndef _INTTYPES_H */