@xnetx/tinyc-native-x86_64-w64-mingw32 0.1.3 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/natives/x86_64-w64-mingw32/toolchain/x86_64-w64-mingw32/tinyc.exe +0 -0
  2. package/package.json +1 -1
  3. package/sysroot/x86_64-w64-mingw32/include/tinyc_io.h +131 -131
  4. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/_mingw.h +171 -171
  5. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/arm_neon.h +3585 -0
  6. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/assert.h +62 -62
  7. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx2intrin.h +93 -0
  8. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512bwintrin.h +128 -0
  9. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512cdintrin.h +31 -0
  10. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512dqintrin.h +123 -0
  11. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512fintrin.h +1075 -0
  12. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512vbmiintrin.h +30 -0
  13. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512vlintrin.h +1633 -0
  14. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512vnniintrin.h +33 -0
  15. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avxintrin.h +675 -0
  16. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/conio.h +409 -409
  17. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/ctype.h +281 -281
  18. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/dir.h +31 -31
  19. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/direct.h +68 -68
  20. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/dirent.h +135 -135
  21. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/dos.h +55 -55
  22. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/emmintrin.h +213 -0
  23. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/errno.h +75 -75
  24. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/excpt.h +123 -123
  25. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/f16cintrin.h +29 -0
  26. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/fcntl.h +52 -52
  27. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/fenv.h +108 -108
  28. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/float.h +75 -75
  29. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/fmaintrin.h +141 -0
  30. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/immintrin.h +21 -0
  31. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/inttypes.h +297 -297
  32. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/io.h +418 -418
  33. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/iso646.h +36 -36
  34. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/limits.h +116 -116
  35. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/locale.h +91 -91
  36. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/malloc.h +181 -181
  37. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/math.h +497 -497
  38. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/mem.h +13 -13
  39. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/memory.h +40 -40
  40. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/process.h +176 -176
  41. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/riscv_vector.h +12334 -0
  42. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/conio_s.h +42 -42
  43. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/crtdbg_s.h +19 -19
  44. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/io_s.h +33 -33
  45. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/mbstring_s.h +52 -52
  46. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/search_s.h +25 -25
  47. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/stdio_s.h +145 -145
  48. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/stdlib_s.h +67 -67
  49. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/stralign_s.h +30 -30
  50. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/string_s.h +41 -41
  51. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/sys/timeb_s.h +34 -34
  52. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/tchar_s.h +266 -266
  53. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/time_s.h +61 -61
  54. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/wchar_s.h +128 -128
  55. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/setjmp.h +199 -199
  56. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/share.h +28 -28
  57. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/signal.h +63 -63
  58. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/smmintrin.h +74 -0
  59. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdalign.h +16 -16
  60. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdarg.h +14 -14
  61. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdatomic.h +171 -171
  62. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdbool.h +11 -11
  63. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stddef.h +39 -39
  64. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdint.h +212 -212
  65. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdio.h +429 -429
  66. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdlib.h +606 -606
  67. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdnoreturn.h +7 -7
  68. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/string.h +164 -164
  69. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/fcntl.h +13 -13
  70. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/file.h +14 -14
  71. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/locking.h +30 -30
  72. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/stat.h +290 -290
  73. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/time.h +69 -69
  74. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/timeb.h +133 -133
  75. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/types.h +123 -123
  76. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/unistd.h +14 -14
  77. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/utime.h +146 -146
  78. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tcc/tcc_libm.h +618 -618
  79. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tccdefs.h +338 -338
  80. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tcclib.h +82 -82
  81. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tchar.h +1102 -1102
  82. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tgmath.h +89 -89
  83. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/time.h +287 -287
  84. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tmmintrin.h +19 -0
  85. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/uchar.h +33 -33
  86. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/unistd.h +1 -1
  87. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/vadefs.h +11 -11
  88. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/values.h +4 -4
  89. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/varargs.h +12 -12
  90. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/wchar.h +873 -873
  91. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/wctype.h +172 -172
  92. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/basetsd.h +149 -149
  93. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/basetyps.h +85 -85
  94. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/guiddef.h +156 -156
  95. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/poppack.h +8 -8
  96. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/pshpack1.h +8 -8
  97. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/pshpack2.h +8 -8
  98. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/pshpack4.h +8 -8
  99. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/pshpack8.h +8 -8
  100. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/qos.h +72 -72
  101. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/shellapi.h +59 -59
  102. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winbase.h +2966 -2966
  103. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/wincon.h +309 -309
  104. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/windef.h +293 -293
  105. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/windows.h +127 -127
  106. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winerror.h +3166 -3166
  107. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/wingdi.h +4080 -4080
  108. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winnls.h +778 -778
  109. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winnt.h +5994 -5994
  110. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winreg.h +272 -272
  111. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winsock2.h +1474 -1474
  112. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winuser.h +5652 -5652
  113. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winver.h +160 -160
  114. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/ws2ipdef.h +21 -21
  115. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/ws2tcpip.h +391 -391
  116. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/xmmintrin.h +170 -0
  117. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/gdi32.def +337 -337
  118. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/kernel32.def +776 -776
  119. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/libtcc1.a +0 -0
  120. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/msvcrt.def +1320 -1320
  121. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/runmain.o +0 -0
  122. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/user32.def +658 -658
  123. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/ws2_32.def +198 -198
  124. package/sysroot/x86_64-w64-mingw32/manifest.json +1 -1
@@ -1,297 +1,297 @@
1
- /**
2
- * This file has no copyright assigned and is placed in the Public Domain.
3
- * This file is part of the w64 mingw-runtime package.
4
- * No warranty is given; refer to the file DISCLAIMER within this package.
5
- */
6
- /* 7.8 Format conversion of integer types <inttypes.h> */
7
-
8
- #ifndef _INTTYPES_H_
9
- #define _INTTYPES_H_
10
-
11
- #include <_mingw.h>
12
- #include <stdint.h>
13
- #define __need_wchar_t
14
- #include <stddef.h>
15
-
16
- #ifdef __cplusplus
17
- extern "C" {
18
- #endif
19
-
20
- typedef struct {
21
- intmax_t quot;
22
- intmax_t rem;
23
- } imaxdiv_t;
24
-
25
- #if !defined(__cplusplus) || defined(__STDC_FORMAT_MACROS)
26
-
27
- /* 7.8.1 Macros for format specifiers
28
- *
29
- * MS runtime does not yet understand C9x standard "ll"
30
- * length specifier. It appears to treat "ll" as "l".
31
- * The non-standard I64 length specifier causes warning in GCC,
32
- * but understood by MS runtime functions.
33
- */
34
-
35
- /* fprintf macros for signed types */
36
- #define PRId8 "d"
37
- #define PRId16 "d"
38
- #define PRId32 "d"
39
- #define PRId64 "I64d"
40
-
41
- #define PRIdLEAST8 "d"
42
- #define PRIdLEAST16 "d"
43
- #define PRIdLEAST32 "d"
44
- #define PRIdLEAST64 "I64d"
45
-
46
- #define PRIdFAST8 "d"
47
- #define PRIdFAST16 "d"
48
- #define PRIdFAST32 "d"
49
- #define PRIdFAST64 "I64d"
50
-
51
- #define PRIdMAX "I64d"
52
-
53
- #define PRIi8 "i"
54
- #define PRIi16 "i"
55
- #define PRIi32 "i"
56
- #define PRIi64 "I64i"
57
-
58
- #define PRIiLEAST8 "i"
59
- #define PRIiLEAST16 "i"
60
- #define PRIiLEAST32 "i"
61
- #define PRIiLEAST64 "I64i"
62
-
63
- #define PRIiFAST8 "i"
64
- #define PRIiFAST16 "i"
65
- #define PRIiFAST32 "i"
66
- #define PRIiFAST64 "I64i"
67
-
68
- #define PRIiMAX "I64i"
69
-
70
- #define PRIo8 "o"
71
- #define PRIo16 "o"
72
- #define PRIo32 "o"
73
- #define PRIo64 "I64o"
74
-
75
- #define PRIoLEAST8 "o"
76
- #define PRIoLEAST16 "o"
77
- #define PRIoLEAST32 "o"
78
- #define PRIoLEAST64 "I64o"
79
-
80
- #define PRIoFAST8 "o"
81
- #define PRIoFAST16 "o"
82
- #define PRIoFAST32 "o"
83
- #define PRIoFAST64 "I64o"
84
-
85
- #define PRIoMAX "I64o"
86
-
87
- /* fprintf macros for unsigned types */
88
- #define PRIu8 "u"
89
- #define PRIu16 "u"
90
- #define PRIu32 "u"
91
- #define PRIu64 "I64u"
92
-
93
-
94
- #define PRIuLEAST8 "u"
95
- #define PRIuLEAST16 "u"
96
- #define PRIuLEAST32 "u"
97
- #define PRIuLEAST64 "I64u"
98
-
99
- #define PRIuFAST8 "u"
100
- #define PRIuFAST16 "u"
101
- #define PRIuFAST32 "u"
102
- #define PRIuFAST64 "I64u"
103
-
104
- #define PRIuMAX "I64u"
105
-
106
- #define PRIx8 "x"
107
- #define PRIx16 "x"
108
- #define PRIx32 "x"
109
- #define PRIx64 "I64x"
110
-
111
- #define PRIxLEAST8 "x"
112
- #define PRIxLEAST16 "x"
113
- #define PRIxLEAST32 "x"
114
- #define PRIxLEAST64 "I64x"
115
-
116
- #define PRIxFAST8 "x"
117
- #define PRIxFAST16 "x"
118
- #define PRIxFAST32 "x"
119
- #define PRIxFAST64 "I64x"
120
-
121
- #define PRIxMAX "I64x"
122
-
123
- #define PRIX8 "X"
124
- #define PRIX16 "X"
125
- #define PRIX32 "X"
126
- #define PRIX64 "I64X"
127
-
128
- #define PRIXLEAST8 "X"
129
- #define PRIXLEAST16 "X"
130
- #define PRIXLEAST32 "X"
131
- #define PRIXLEAST64 "I64X"
132
-
133
- #define PRIXFAST8 "X"
134
- #define PRIXFAST16 "X"
135
- #define PRIXFAST32 "X"
136
- #define PRIXFAST64 "I64X"
137
-
138
- #define PRIXMAX "I64X"
139
-
140
- /*
141
- * fscanf macros for signed int types
142
- * NOTE: if 32-bit int is used for int_fast8_t and int_fast16_t
143
- * (see stdint.h, 7.18.1.3), FAST8 and FAST16 should have
144
- * no length identifiers
145
- */
146
-
147
- #define SCNd16 "hd"
148
- #define SCNd32 "d"
149
- #define SCNd64 "I64d"
150
-
151
- #define SCNdLEAST16 "hd"
152
- #define SCNdLEAST32 "d"
153
- #define SCNdLEAST64 "I64d"
154
-
155
- #define SCNdFAST16 "hd"
156
- #define SCNdFAST32 "d"
157
- #define SCNdFAST64 "I64d"
158
-
159
- #define SCNdMAX "I64d"
160
-
161
- #define SCNi16 "hi"
162
- #define SCNi32 "i"
163
- #define SCNi64 "I64i"
164
-
165
- #define SCNiLEAST16 "hi"
166
- #define SCNiLEAST32 "i"
167
- #define SCNiLEAST64 "I64i"
168
-
169
- #define SCNiFAST16 "hi"
170
- #define SCNiFAST32 "i"
171
- #define SCNiFAST64 "I64i"
172
-
173
- #define SCNiMAX "I64i"
174
-
175
- #define SCNo16 "ho"
176
- #define SCNo32 "o"
177
- #define SCNo64 "I64o"
178
-
179
- #define SCNoLEAST16 "ho"
180
- #define SCNoLEAST32 "o"
181
- #define SCNoLEAST64 "I64o"
182
-
183
- #define SCNoFAST16 "ho"
184
- #define SCNoFAST32 "o"
185
- #define SCNoFAST64 "I64o"
186
-
187
- #define SCNoMAX "I64o"
188
-
189
- #define SCNx16 "hx"
190
- #define SCNx32 "x"
191
- #define SCNx64 "I64x"
192
-
193
- #define SCNxLEAST16 "hx"
194
- #define SCNxLEAST32 "x"
195
- #define SCNxLEAST64 "I64x"
196
-
197
- #define SCNxFAST16 "hx"
198
- #define SCNxFAST32 "x"
199
- #define SCNxFAST64 "I64x"
200
-
201
- #define SCNxMAX "I64x"
202
-
203
- /* fscanf macros for unsigned int types */
204
-
205
- #define SCNu16 "hu"
206
- #define SCNu32 "u"
207
- #define SCNu64 "I64u"
208
-
209
- #define SCNuLEAST16 "hu"
210
- #define SCNuLEAST32 "u"
211
- #define SCNuLEAST64 "I64u"
212
-
213
- #define SCNuFAST16 "hu"
214
- #define SCNuFAST32 "u"
215
- #define SCNuFAST64 "I64u"
216
-
217
- #define SCNuMAX "I64u"
218
-
219
- #ifdef _WIN64
220
- #define PRIdPTR "I64d"
221
- #define PRIiPTR "I64i"
222
- #define PRIoPTR "I64o"
223
- #define PRIuPTR "I64u"
224
- #define PRIxPTR "I64x"
225
- #define PRIXPTR "I64X"
226
- #define SCNdPTR "I64d"
227
- #define SCNiPTR "I64i"
228
- #define SCNoPTR "I64o"
229
- #define SCNxPTR "I64x"
230
- #define SCNuPTR "I64u"
231
- #else
232
- #define PRIdPTR "d"
233
- #define PRIiPTR "i"
234
- #define PRIoPTR "o"
235
- #define PRIuPTR "u"
236
- #define PRIxPTR "x"
237
- #define PRIXPTR "X"
238
- #define SCNdPTR "d"
239
- #define SCNiPTR "i"
240
- #define SCNoPTR "o"
241
- #define SCNxPTR "x"
242
- #define SCNuPTR "u"
243
- #endif
244
-
245
- #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
246
- /*
247
- * no length modifier for char types prior to C9x
248
- * MS runtime scanf appears to treat "hh" as "h"
249
- */
250
-
251
- /* signed char */
252
- #define SCNd8 "hhd"
253
- #define SCNdLEAST8 "hhd"
254
- #define SCNdFAST8 "hhd"
255
-
256
- #define SCNi8 "hhi"
257
- #define SCNiLEAST8 "hhi"
258
- #define SCNiFAST8 "hhi"
259
-
260
- #define SCNo8 "hho"
261
- #define SCNoLEAST8 "hho"
262
- #define SCNoFAST8 "hho"
263
-
264
- #define SCNx8 "hhx"
265
- #define SCNxLEAST8 "hhx"
266
- #define SCNxFAST8 "hhx"
267
-
268
- /* unsigned char */
269
- #define SCNu8 "hhu"
270
- #define SCNuLEAST8 "hhu"
271
- #define SCNuFAST8 "hhu"
272
- #endif /* __STDC_VERSION__ >= 199901 */
273
-
274
- #endif /* !defined(__cplusplus) || defined(__STDC_FORMAT_MACROS) */
275
-
276
- intmax_t __cdecl imaxabs (intmax_t j);
277
- __CRT_INLINE intmax_t __cdecl imaxabs (intmax_t j)
278
- {return (j >= 0 ? j : -j);}
279
- imaxdiv_t __cdecl imaxdiv (intmax_t numer, intmax_t denom);
280
-
281
- /* 7.8.2 Conversion functions for greatest-width integer types */
282
-
283
- intmax_t __cdecl strtoimax (const char* __restrict__ nptr,
284
- char** __restrict__ endptr, int base);
285
- uintmax_t __cdecl strtoumax (const char* __restrict__ nptr,
286
- char** __restrict__ endptr, int base);
287
-
288
- intmax_t __cdecl wcstoimax (const wchar_t* __restrict__ nptr,
289
- wchar_t** __restrict__ endptr, int base);
290
- uintmax_t __cdecl wcstoumax (const wchar_t* __restrict__ nptr,
291
- wchar_t** __restrict__ endptr, int base);
292
-
293
- #ifdef __cplusplus
294
- }
295
- #endif
296
-
297
- #endif /* ndef _INTTYPES_H */
1
+ /**
2
+ * This file has no copyright assigned and is placed in the Public Domain.
3
+ * This file is part of the w64 mingw-runtime package.
4
+ * No warranty is given; refer to the file DISCLAIMER within this package.
5
+ */
6
+ /* 7.8 Format conversion of integer types <inttypes.h> */
7
+
8
+ #ifndef _INTTYPES_H_
9
+ #define _INTTYPES_H_
10
+
11
+ #include <_mingw.h>
12
+ #include <stdint.h>
13
+ #define __need_wchar_t
14
+ #include <stddef.h>
15
+
16
+ #ifdef __cplusplus
17
+ extern "C" {
18
+ #endif
19
+
20
+ typedef struct {
21
+ intmax_t quot;
22
+ intmax_t rem;
23
+ } imaxdiv_t;
24
+
25
+ #if !defined(__cplusplus) || defined(__STDC_FORMAT_MACROS)
26
+
27
+ /* 7.8.1 Macros for format specifiers
28
+ *
29
+ * MS runtime does not yet understand C9x standard "ll"
30
+ * length specifier. It appears to treat "ll" as "l".
31
+ * The non-standard I64 length specifier causes warning in GCC,
32
+ * but understood by MS runtime functions.
33
+ */
34
+
35
+ /* fprintf macros for signed types */
36
+ #define PRId8 "d"
37
+ #define PRId16 "d"
38
+ #define PRId32 "d"
39
+ #define PRId64 "I64d"
40
+
41
+ #define PRIdLEAST8 "d"
42
+ #define PRIdLEAST16 "d"
43
+ #define PRIdLEAST32 "d"
44
+ #define PRIdLEAST64 "I64d"
45
+
46
+ #define PRIdFAST8 "d"
47
+ #define PRIdFAST16 "d"
48
+ #define PRIdFAST32 "d"
49
+ #define PRIdFAST64 "I64d"
50
+
51
+ #define PRIdMAX "I64d"
52
+
53
+ #define PRIi8 "i"
54
+ #define PRIi16 "i"
55
+ #define PRIi32 "i"
56
+ #define PRIi64 "I64i"
57
+
58
+ #define PRIiLEAST8 "i"
59
+ #define PRIiLEAST16 "i"
60
+ #define PRIiLEAST32 "i"
61
+ #define PRIiLEAST64 "I64i"
62
+
63
+ #define PRIiFAST8 "i"
64
+ #define PRIiFAST16 "i"
65
+ #define PRIiFAST32 "i"
66
+ #define PRIiFAST64 "I64i"
67
+
68
+ #define PRIiMAX "I64i"
69
+
70
+ #define PRIo8 "o"
71
+ #define PRIo16 "o"
72
+ #define PRIo32 "o"
73
+ #define PRIo64 "I64o"
74
+
75
+ #define PRIoLEAST8 "o"
76
+ #define PRIoLEAST16 "o"
77
+ #define PRIoLEAST32 "o"
78
+ #define PRIoLEAST64 "I64o"
79
+
80
+ #define PRIoFAST8 "o"
81
+ #define PRIoFAST16 "o"
82
+ #define PRIoFAST32 "o"
83
+ #define PRIoFAST64 "I64o"
84
+
85
+ #define PRIoMAX "I64o"
86
+
87
+ /* fprintf macros for unsigned types */
88
+ #define PRIu8 "u"
89
+ #define PRIu16 "u"
90
+ #define PRIu32 "u"
91
+ #define PRIu64 "I64u"
92
+
93
+
94
+ #define PRIuLEAST8 "u"
95
+ #define PRIuLEAST16 "u"
96
+ #define PRIuLEAST32 "u"
97
+ #define PRIuLEAST64 "I64u"
98
+
99
+ #define PRIuFAST8 "u"
100
+ #define PRIuFAST16 "u"
101
+ #define PRIuFAST32 "u"
102
+ #define PRIuFAST64 "I64u"
103
+
104
+ #define PRIuMAX "I64u"
105
+
106
+ #define PRIx8 "x"
107
+ #define PRIx16 "x"
108
+ #define PRIx32 "x"
109
+ #define PRIx64 "I64x"
110
+
111
+ #define PRIxLEAST8 "x"
112
+ #define PRIxLEAST16 "x"
113
+ #define PRIxLEAST32 "x"
114
+ #define PRIxLEAST64 "I64x"
115
+
116
+ #define PRIxFAST8 "x"
117
+ #define PRIxFAST16 "x"
118
+ #define PRIxFAST32 "x"
119
+ #define PRIxFAST64 "I64x"
120
+
121
+ #define PRIxMAX "I64x"
122
+
123
+ #define PRIX8 "X"
124
+ #define PRIX16 "X"
125
+ #define PRIX32 "X"
126
+ #define PRIX64 "I64X"
127
+
128
+ #define PRIXLEAST8 "X"
129
+ #define PRIXLEAST16 "X"
130
+ #define PRIXLEAST32 "X"
131
+ #define PRIXLEAST64 "I64X"
132
+
133
+ #define PRIXFAST8 "X"
134
+ #define PRIXFAST16 "X"
135
+ #define PRIXFAST32 "X"
136
+ #define PRIXFAST64 "I64X"
137
+
138
+ #define PRIXMAX "I64X"
139
+
140
+ /*
141
+ * fscanf macros for signed int types
142
+ * NOTE: if 32-bit int is used for int_fast8_t and int_fast16_t
143
+ * (see stdint.h, 7.18.1.3), FAST8 and FAST16 should have
144
+ * no length identifiers
145
+ */
146
+
147
+ #define SCNd16 "hd"
148
+ #define SCNd32 "d"
149
+ #define SCNd64 "I64d"
150
+
151
+ #define SCNdLEAST16 "hd"
152
+ #define SCNdLEAST32 "d"
153
+ #define SCNdLEAST64 "I64d"
154
+
155
+ #define SCNdFAST16 "hd"
156
+ #define SCNdFAST32 "d"
157
+ #define SCNdFAST64 "I64d"
158
+
159
+ #define SCNdMAX "I64d"
160
+
161
+ #define SCNi16 "hi"
162
+ #define SCNi32 "i"
163
+ #define SCNi64 "I64i"
164
+
165
+ #define SCNiLEAST16 "hi"
166
+ #define SCNiLEAST32 "i"
167
+ #define SCNiLEAST64 "I64i"
168
+
169
+ #define SCNiFAST16 "hi"
170
+ #define SCNiFAST32 "i"
171
+ #define SCNiFAST64 "I64i"
172
+
173
+ #define SCNiMAX "I64i"
174
+
175
+ #define SCNo16 "ho"
176
+ #define SCNo32 "o"
177
+ #define SCNo64 "I64o"
178
+
179
+ #define SCNoLEAST16 "ho"
180
+ #define SCNoLEAST32 "o"
181
+ #define SCNoLEAST64 "I64o"
182
+
183
+ #define SCNoFAST16 "ho"
184
+ #define SCNoFAST32 "o"
185
+ #define SCNoFAST64 "I64o"
186
+
187
+ #define SCNoMAX "I64o"
188
+
189
+ #define SCNx16 "hx"
190
+ #define SCNx32 "x"
191
+ #define SCNx64 "I64x"
192
+
193
+ #define SCNxLEAST16 "hx"
194
+ #define SCNxLEAST32 "x"
195
+ #define SCNxLEAST64 "I64x"
196
+
197
+ #define SCNxFAST16 "hx"
198
+ #define SCNxFAST32 "x"
199
+ #define SCNxFAST64 "I64x"
200
+
201
+ #define SCNxMAX "I64x"
202
+
203
+ /* fscanf macros for unsigned int types */
204
+
205
+ #define SCNu16 "hu"
206
+ #define SCNu32 "u"
207
+ #define SCNu64 "I64u"
208
+
209
+ #define SCNuLEAST16 "hu"
210
+ #define SCNuLEAST32 "u"
211
+ #define SCNuLEAST64 "I64u"
212
+
213
+ #define SCNuFAST16 "hu"
214
+ #define SCNuFAST32 "u"
215
+ #define SCNuFAST64 "I64u"
216
+
217
+ #define SCNuMAX "I64u"
218
+
219
+ #ifdef _WIN64
220
+ #define PRIdPTR "I64d"
221
+ #define PRIiPTR "I64i"
222
+ #define PRIoPTR "I64o"
223
+ #define PRIuPTR "I64u"
224
+ #define PRIxPTR "I64x"
225
+ #define PRIXPTR "I64X"
226
+ #define SCNdPTR "I64d"
227
+ #define SCNiPTR "I64i"
228
+ #define SCNoPTR "I64o"
229
+ #define SCNxPTR "I64x"
230
+ #define SCNuPTR "I64u"
231
+ #else
232
+ #define PRIdPTR "d"
233
+ #define PRIiPTR "i"
234
+ #define PRIoPTR "o"
235
+ #define PRIuPTR "u"
236
+ #define PRIxPTR "x"
237
+ #define PRIXPTR "X"
238
+ #define SCNdPTR "d"
239
+ #define SCNiPTR "i"
240
+ #define SCNoPTR "o"
241
+ #define SCNxPTR "x"
242
+ #define SCNuPTR "u"
243
+ #endif
244
+
245
+ #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
246
+ /*
247
+ * no length modifier for char types prior to C9x
248
+ * MS runtime scanf appears to treat "hh" as "h"
249
+ */
250
+
251
+ /* signed char */
252
+ #define SCNd8 "hhd"
253
+ #define SCNdLEAST8 "hhd"
254
+ #define SCNdFAST8 "hhd"
255
+
256
+ #define SCNi8 "hhi"
257
+ #define SCNiLEAST8 "hhi"
258
+ #define SCNiFAST8 "hhi"
259
+
260
+ #define SCNo8 "hho"
261
+ #define SCNoLEAST8 "hho"
262
+ #define SCNoFAST8 "hho"
263
+
264
+ #define SCNx8 "hhx"
265
+ #define SCNxLEAST8 "hhx"
266
+ #define SCNxFAST8 "hhx"
267
+
268
+ /* unsigned char */
269
+ #define SCNu8 "hhu"
270
+ #define SCNuLEAST8 "hhu"
271
+ #define SCNuFAST8 "hhu"
272
+ #endif /* __STDC_VERSION__ >= 199901 */
273
+
274
+ #endif /* !defined(__cplusplus) || defined(__STDC_FORMAT_MACROS) */
275
+
276
+ intmax_t __cdecl imaxabs (intmax_t j);
277
+ __CRT_INLINE intmax_t __cdecl imaxabs (intmax_t j)
278
+ {return (j >= 0 ? j : -j);}
279
+ imaxdiv_t __cdecl imaxdiv (intmax_t numer, intmax_t denom);
280
+
281
+ /* 7.8.2 Conversion functions for greatest-width integer types */
282
+
283
+ intmax_t __cdecl strtoimax (const char* __restrict__ nptr,
284
+ char** __restrict__ endptr, int base);
285
+ uintmax_t __cdecl strtoumax (const char* __restrict__ nptr,
286
+ char** __restrict__ endptr, int base);
287
+
288
+ intmax_t __cdecl wcstoimax (const wchar_t* __restrict__ nptr,
289
+ wchar_t** __restrict__ endptr, int base);
290
+ uintmax_t __cdecl wcstoumax (const wchar_t* __restrict__ nptr,
291
+ wchar_t** __restrict__ endptr, int base);
292
+
293
+ #ifdef __cplusplus
294
+ }
295
+ #endif
296
+
297
+ #endif /* ndef _INTTYPES_H */