triton-windows 3.4.0.post20__cp312-cp312-win_amd64.whl → 3.5.0.post21__cp312-cp312-win_amd64.whl
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.
Potentially problematic release.
This version of triton-windows might be problematic. Click here for more details.
- triton/_C/libtriton.pyd +0 -0
- triton/__init__.py +8 -2
- triton/_filecheck.py +24 -14
- triton/_internal_testing.py +70 -4
- triton/_utils.py +3 -1
- triton/backends/amd/compiler.py +68 -60
- triton/backends/amd/driver.c +113 -44
- triton/backends/amd/driver.py +133 -57
- triton/backends/driver.py +13 -0
- triton/backends/nvidia/compiler.py +80 -22
- triton/backends/nvidia/driver.c +88 -15
- triton/backends/nvidia/driver.py +130 -123
- triton/compiler/__init__.py +5 -2
- triton/compiler/code_generator.py +270 -163
- triton/compiler/compiler.py +45 -62
- triton/experimental/gluon/__init__.py +3 -2
- triton/experimental/gluon/_runtime.py +9 -6
- triton/experimental/gluon/language/__init__.py +117 -16
- triton/experimental/gluon/language/_core.py +246 -68
- triton/experimental/gluon/language/_layouts.py +398 -45
- triton/experimental/gluon/language/_math.py +17 -9
- triton/experimental/gluon/language/_semantic.py +130 -37
- triton/experimental/gluon/language/_standard.py +55 -22
- triton/experimental/gluon/language/amd/__init__.py +4 -0
- triton/experimental/gluon/language/amd/_layouts.py +96 -0
- triton/experimental/gluon/language/amd/cdna3/__init__.py +100 -0
- triton/experimental/gluon/language/amd/cdna4/__init__.py +48 -0
- triton/experimental/gluon/language/amd/cdna4/async_copy.py +151 -0
- triton/experimental/gluon/language/extra/__init__.py +3 -0
- triton/experimental/gluon/language/nvidia/ampere/__init__.py +3 -0
- triton/experimental/gluon/language/nvidia/ampere/async_copy.py +74 -0
- triton/experimental/gluon/language/nvidia/ampere/mbarrier.py +80 -0
- triton/experimental/gluon/language/nvidia/blackwell/__init__.py +192 -7
- triton/experimental/gluon/language/nvidia/blackwell/tma.py +20 -0
- triton/experimental/gluon/language/nvidia/hopper/__init__.py +124 -3
- triton/experimental/gluon/language/nvidia/hopper/mbarrier.py +20 -37
- triton/experimental/gluon/language/nvidia/hopper/tma.py +4 -3
- triton/experimental/gluon/nvidia/hopper.py +6 -1
- triton/knobs.py +132 -67
- triton/language/__init__.py +16 -10
- triton/language/core.py +163 -83
- triton/language/extra/cuda/gdc.py +6 -6
- triton/language/extra/hip/__init__.py +3 -1
- triton/language/extra/hip/libdevice.py +7 -0
- triton/language/extra/hip/utils.py +35 -0
- triton/language/extra/libdevice.py +4 -0
- triton/language/semantic.py +76 -23
- triton/language/standard.py +14 -14
- triton/language/target_info.py +54 -0
- triton/runtime/_allocation.py +15 -3
- triton/runtime/_async_compile.py +55 -0
- triton/runtime/autotuner.py +4 -5
- triton/runtime/build.py +11 -9
- triton/runtime/cache.py +44 -1
- triton/runtime/driver.py +16 -41
- triton/runtime/interpreter.py +31 -23
- triton/runtime/jit.py +318 -157
- triton/runtime/tcc/include/_mingw.h +8 -10
- triton/runtime/tcc/include/assert.h +5 -0
- triton/runtime/tcc/include/errno.h +1 -1
- triton/runtime/tcc/include/float.h +21 -3
- triton/runtime/tcc/include/iso646.h +36 -0
- triton/runtime/tcc/include/limits.h +5 -0
- triton/runtime/tcc/include/malloc.h +2 -2
- triton/runtime/tcc/include/math.h +21 -261
- triton/runtime/tcc/include/stdalign.h +16 -0
- triton/runtime/tcc/include/stdarg.h +5 -70
- triton/runtime/tcc/include/stdatomic.h +171 -0
- triton/runtime/tcc/include/stddef.h +7 -19
- triton/runtime/tcc/include/stdlib.h +15 -4
- triton/runtime/tcc/include/stdnoreturn.h +7 -0
- triton/runtime/tcc/include/sys/stat.h +2 -2
- triton/runtime/tcc/include/sys/types.h +5 -0
- triton/runtime/tcc/include/tcc/tcc_libm.h +444 -27
- triton/runtime/tcc/include/tccdefs.h +342 -0
- triton/runtime/tcc/include/tgmath.h +89 -0
- triton/runtime/tcc/include/uchar.h +33 -0
- triton/runtime/tcc/include/unistd.h +1 -0
- triton/runtime/tcc/include/winapi/qos.h +72 -0
- triton/runtime/tcc/include/winapi/shellapi.h +59 -0
- triton/runtime/tcc/include/winapi/winbase.h +9 -2
- triton/runtime/tcc/include/winapi/wincon.h +8 -0
- triton/runtime/tcc/include/winapi/windows.h +1 -1
- triton/runtime/tcc/include/winapi/winnls.h +778 -0
- triton/runtime/tcc/include/winapi/winnt.h +9 -7
- triton/runtime/tcc/include/winapi/winsock2.h +1474 -0
- triton/runtime/tcc/include/winapi/ws2ipdef.h +21 -0
- triton/runtime/tcc/include/winapi/ws2tcpip.h +391 -0
- triton/runtime/tcc/lib/libtcc1.a +0 -0
- triton/runtime/tcc/lib/python314.def +1800 -0
- triton/runtime/tcc/lib/python314t.def +1809 -0
- triton/runtime/tcc/libtcc.dll +0 -0
- triton/runtime/tcc/tcc.exe +0 -0
- triton/tools/compile.py +62 -14
- triton/tools/extra/cuda/compile.c +1 -0
- triton/tools/extra/hip/compile.cpp +66 -0
- triton/tools/extra/hip/compile.h +13 -0
- triton/tools/ragged_tma.py +92 -0
- triton/tools/tensor_descriptor.py +7 -9
- triton/windows_utils.py +42 -79
- {triton_windows-3.4.0.post20.dist-info → triton_windows-3.5.0.post21.dist-info}/METADATA +3 -4
- {triton_windows-3.4.0.post20.dist-info → triton_windows-3.5.0.post21.dist-info}/RECORD +106 -75
- triton/runtime/tcc/lib/libtcc1-64.a +0 -0
- {triton_windows-3.4.0.post20.dist-info → triton_windows-3.5.0.post21.dist-info}/WHEEL +0 -0
- {triton_windows-3.4.0.post20.dist-info → triton_windows-3.5.0.post21.dist-info}/entry_points.txt +0 -0
- {triton_windows-3.4.0.post20.dist-info → triton_windows-3.5.0.post21.dist-info}/licenses/LICENSE +0 -0
- {triton_windows-3.4.0.post20.dist-info → triton_windows-3.5.0.post21.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
/* tccdefs.h
|
|
2
|
+
|
|
3
|
+
Nothing is defined before this file except target machine, target os
|
|
4
|
+
and the few things related to option settings in tccpp.c:tcc_predefs().
|
|
5
|
+
|
|
6
|
+
This file is either included at runtime as is, or converted and
|
|
7
|
+
included as C-strings at compile-time (depending on CONFIG_TCC_PREDEFS).
|
|
8
|
+
|
|
9
|
+
Note that line indent matters:
|
|
10
|
+
|
|
11
|
+
- in lines starting at column 1, platform macros are replaced by
|
|
12
|
+
corresponding TCC target compile-time macros. See conftest.c for
|
|
13
|
+
the list of platform macros supported in lines starting at column 1.
|
|
14
|
+
|
|
15
|
+
- only lines indented >= 4 are actually included into the executable,
|
|
16
|
+
check tccdefs_.h.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
#if __SIZEOF_POINTER__ == 4
|
|
20
|
+
/* 32bit systems. */
|
|
21
|
+
#if defined __OpenBSD__
|
|
22
|
+
#define __SIZE_TYPE__ unsigned long
|
|
23
|
+
#define __PTRDIFF_TYPE__ long
|
|
24
|
+
#else
|
|
25
|
+
#define __SIZE_TYPE__ unsigned int
|
|
26
|
+
#define __PTRDIFF_TYPE__ int
|
|
27
|
+
#endif
|
|
28
|
+
#define __ILP32__ 1
|
|
29
|
+
#define __INT64_TYPE__ long long
|
|
30
|
+
#elif __SIZEOF_LONG__ == 4
|
|
31
|
+
/* 64bit Windows. */
|
|
32
|
+
#define __SIZE_TYPE__ unsigned long long
|
|
33
|
+
#define __PTRDIFF_TYPE__ long long
|
|
34
|
+
#define __LLP64__ 1
|
|
35
|
+
#define __INT64_TYPE__ long long
|
|
36
|
+
#else
|
|
37
|
+
/* Other 64bit systems. */
|
|
38
|
+
#define __SIZE_TYPE__ unsigned long
|
|
39
|
+
#define __PTRDIFF_TYPE__ long
|
|
40
|
+
#define __LP64__ 1
|
|
41
|
+
# if defined __linux__
|
|
42
|
+
#define __INT64_TYPE__ long
|
|
43
|
+
# else /* APPLE, BSD */
|
|
44
|
+
#define __INT64_TYPE__ long long
|
|
45
|
+
# endif
|
|
46
|
+
#endif
|
|
47
|
+
#define __SIZEOF_INT__ 4
|
|
48
|
+
#define __INT_MAX__ 0x7fffffff
|
|
49
|
+
#if __SIZEOF_LONG__ == 4
|
|
50
|
+
#define __LONG_MAX__ 0x7fffffffL
|
|
51
|
+
#else
|
|
52
|
+
#define __LONG_MAX__ 0x7fffffffffffffffL
|
|
53
|
+
#endif
|
|
54
|
+
#define __SIZEOF_LONG_LONG__ 8
|
|
55
|
+
#define __LONG_LONG_MAX__ 0x7fffffffffffffffLL
|
|
56
|
+
#define __CHAR_BIT__ 8
|
|
57
|
+
#define __ORDER_LITTLE_ENDIAN__ 1234
|
|
58
|
+
#define __ORDER_BIG_ENDIAN__ 4321
|
|
59
|
+
#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__
|
|
60
|
+
#if defined _WIN32
|
|
61
|
+
#define __WCHAR_TYPE__ unsigned short
|
|
62
|
+
#define __WINT_TYPE__ unsigned short
|
|
63
|
+
#elif defined __linux__
|
|
64
|
+
#define __WCHAR_TYPE__ int
|
|
65
|
+
#define __WINT_TYPE__ unsigned int
|
|
66
|
+
#else
|
|
67
|
+
#define __WCHAR_TYPE__ int
|
|
68
|
+
#define __WINT_TYPE__ int
|
|
69
|
+
#endif
|
|
70
|
+
|
|
71
|
+
#if __STDC_VERSION__ >= 201112L
|
|
72
|
+
# define __STDC_NO_ATOMICS__ 1
|
|
73
|
+
# define __STDC_NO_COMPLEX__ 1
|
|
74
|
+
# define __STDC_NO_THREADS__ 1
|
|
75
|
+
#if !defined _WIN32
|
|
76
|
+
# define __STDC_UTF_16__ 1
|
|
77
|
+
# define __STDC_UTF_32__ 1
|
|
78
|
+
#endif
|
|
79
|
+
#endif
|
|
80
|
+
|
|
81
|
+
#if defined _WIN32
|
|
82
|
+
#define __declspec(x) __attribute__((x))
|
|
83
|
+
#define __cdecl
|
|
84
|
+
|
|
85
|
+
#elif defined __FreeBSD__
|
|
86
|
+
#define __GNUC__ 9
|
|
87
|
+
#define __GNUC_MINOR__ 3
|
|
88
|
+
#define __GNUC_PATCHLEVEL__ 0
|
|
89
|
+
#define __GNUC_STDC_INLINE__ 1
|
|
90
|
+
#define __NO_TLS 1
|
|
91
|
+
#define __RUNETYPE_INTERNAL 1
|
|
92
|
+
# if __SIZEOF_POINTER__ == 8
|
|
93
|
+
/* FIXME, __int128_t is used by setjump */
|
|
94
|
+
#define __int128_t struct { unsigned char _dummy[16] __attribute((aligned(16))); }
|
|
95
|
+
#define __SIZEOF_SIZE_T__ 8
|
|
96
|
+
#define __SIZEOF_PTRDIFF_T__ 8
|
|
97
|
+
#else
|
|
98
|
+
#define __SIZEOF_SIZE_T__ 4
|
|
99
|
+
#define __SIZEOF_PTRDIFF_T__ 4
|
|
100
|
+
# endif
|
|
101
|
+
|
|
102
|
+
#elif defined __FreeBSD_kernel__
|
|
103
|
+
|
|
104
|
+
#elif defined __NetBSD__
|
|
105
|
+
#define __GNUC__ 4
|
|
106
|
+
#define __GNUC_MINOR__ 1
|
|
107
|
+
#define __GNUC_PATCHLEVEL__ 0
|
|
108
|
+
#define _Pragma(x)
|
|
109
|
+
#define __ELF__ 1
|
|
110
|
+
#if defined __aarch64__
|
|
111
|
+
#define _LOCORE /* avoids usage of __asm */
|
|
112
|
+
#endif
|
|
113
|
+
|
|
114
|
+
#elif defined __OpenBSD__
|
|
115
|
+
#define __GNUC__ 4
|
|
116
|
+
#define _ANSI_LIBRARY 1
|
|
117
|
+
|
|
118
|
+
#elif defined __APPLE__
|
|
119
|
+
/* emulate APPLE-GCC to make libc's headerfiles compile: */
|
|
120
|
+
#define __GNUC__ 4 /* darwin emits warning on GCC<4 */
|
|
121
|
+
#define __APPLE_CC__ 1 /* for <TargetConditionals.h> */
|
|
122
|
+
#define __LITTLE_ENDIAN__ 1
|
|
123
|
+
#define _DONT_USE_CTYPE_INLINE_ 1
|
|
124
|
+
/* avoids usage of GCC/clang specific builtins in libc-headerfiles: */
|
|
125
|
+
#define __FINITE_MATH_ONLY__ 1
|
|
126
|
+
#define _FORTIFY_SOURCE 0
|
|
127
|
+
//#define __has_builtin(x) 0
|
|
128
|
+
#define _Float16 short unsigned int /* fake type just for size & alignment (macOS Sequoia) */
|
|
129
|
+
|
|
130
|
+
#elif defined __ANDROID__
|
|
131
|
+
#define BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD
|
|
132
|
+
|
|
133
|
+
#else
|
|
134
|
+
/* Linux */
|
|
135
|
+
|
|
136
|
+
#endif
|
|
137
|
+
|
|
138
|
+
/* Some derived integer types needed to get stdint.h to compile correctly on some platforms */
|
|
139
|
+
#ifndef __NetBSD__
|
|
140
|
+
#define __UINTPTR_TYPE__ unsigned __PTRDIFF_TYPE__
|
|
141
|
+
#define __INTPTR_TYPE__ __PTRDIFF_TYPE__
|
|
142
|
+
#endif
|
|
143
|
+
#define __INT32_TYPE__ int
|
|
144
|
+
|
|
145
|
+
#if defined __aarch64__
|
|
146
|
+
/* GCC's __uint128_t appears in some Linux/OSX header files. Make it a
|
|
147
|
+
synonym for long double to get the size and alignment right. */
|
|
148
|
+
#define __uint128_t long double
|
|
149
|
+
#endif
|
|
150
|
+
|
|
151
|
+
#if !defined _WIN32
|
|
152
|
+
/* glibc defines. We do not support __USER_NAME_PREFIX__ */
|
|
153
|
+
#define __REDIRECT(name, proto, alias) name proto __asm__ (#alias)
|
|
154
|
+
#define __REDIRECT_NTH(name, proto, alias) name proto __asm__ (#alias) __THROW
|
|
155
|
+
#define __REDIRECT_NTHNL(name, proto, alias) name proto __asm__ (#alias) __THROWNL
|
|
156
|
+
#endif
|
|
157
|
+
|
|
158
|
+
/* not implemented */
|
|
159
|
+
#define __PRETTY_FUNCTION__ __FUNCTION__
|
|
160
|
+
#define __has_builtin(x) 0
|
|
161
|
+
#define __has_feature(x) 0
|
|
162
|
+
#define __has_attribute(x) 0
|
|
163
|
+
/* C23 Keywords */
|
|
164
|
+
#define _Nonnull
|
|
165
|
+
#define _Nullable
|
|
166
|
+
#define _Nullable_result
|
|
167
|
+
#define _Null_unspecified
|
|
168
|
+
|
|
169
|
+
/* skip __builtin... with -E */
|
|
170
|
+
#ifndef __TCC_PP__
|
|
171
|
+
|
|
172
|
+
#define __builtin_offsetof(type, field) ((__SIZE_TYPE__)&((type*)0)->field)
|
|
173
|
+
#define __builtin_extract_return_addr(x) x
|
|
174
|
+
#if !defined __linux__ && !defined _WIN32
|
|
175
|
+
/* used by math.h */
|
|
176
|
+
#define __builtin_huge_val() 1e500
|
|
177
|
+
#define __builtin_huge_valf() 1e50f
|
|
178
|
+
#define __builtin_huge_vall() 1e5000L
|
|
179
|
+
# if defined __APPLE__
|
|
180
|
+
#define __builtin_nanf(ignored_string) (0.0F/0.0F)
|
|
181
|
+
/* used by floats.h to implement FLT_ROUNDS C99 macro. 1 == to nearest */
|
|
182
|
+
#define __builtin_flt_rounds() 1
|
|
183
|
+
/* used by _fd_def.h */
|
|
184
|
+
#define __builtin_bzero(p, ignored_size) bzero(p, sizeof(*(p)))
|
|
185
|
+
# else
|
|
186
|
+
#define __builtin_nanf(ignored_string) (0.0F/0.0F)
|
|
187
|
+
# endif
|
|
188
|
+
#endif
|
|
189
|
+
|
|
190
|
+
/* __builtin_va_list */
|
|
191
|
+
#if defined __x86_64__
|
|
192
|
+
#if !defined _WIN32
|
|
193
|
+
/* GCC compatible definition of va_list. */
|
|
194
|
+
/* This should be in sync with the declaration in our lib/libtcc1.c */
|
|
195
|
+
typedef struct {
|
|
196
|
+
unsigned gp_offset, fp_offset;
|
|
197
|
+
union {
|
|
198
|
+
unsigned overflow_offset;
|
|
199
|
+
char *overflow_arg_area;
|
|
200
|
+
};
|
|
201
|
+
char *reg_save_area;
|
|
202
|
+
} __builtin_va_list[1];
|
|
203
|
+
|
|
204
|
+
void *__va_arg(__builtin_va_list ap, int arg_type, int size, int align);
|
|
205
|
+
#define __builtin_va_start(ap, last) \
|
|
206
|
+
(*(ap) = *(__builtin_va_list)((char*)__builtin_frame_address(0) - 24))
|
|
207
|
+
#define __builtin_va_arg(ap, t) \
|
|
208
|
+
(*(t *)(__va_arg(ap, __builtin_va_arg_types(t), sizeof(t), __alignof__(t))))
|
|
209
|
+
#define __builtin_va_copy(dest, src) (*(dest) = *(src))
|
|
210
|
+
|
|
211
|
+
#else /* _WIN64 */
|
|
212
|
+
typedef char *__builtin_va_list;
|
|
213
|
+
#define __builtin_va_arg(ap, t) ((sizeof(t) > 8 || (sizeof(t) & (sizeof(t) - 1))) \
|
|
214
|
+
? **(t **)((ap += 8) - 8) : *(t *)((ap += 8) - 8))
|
|
215
|
+
#endif
|
|
216
|
+
|
|
217
|
+
#elif defined __arm__
|
|
218
|
+
typedef char *__builtin_va_list;
|
|
219
|
+
#define _tcc_alignof(type) ((int)&((struct {char c;type x;} *)0)->x)
|
|
220
|
+
#define _tcc_align(addr,type) (((unsigned)addr + _tcc_alignof(type) - 1) \
|
|
221
|
+
& ~(_tcc_alignof(type) - 1))
|
|
222
|
+
#define __builtin_va_start(ap,last) (ap = ((char *)&(last)) + ((sizeof(last)+3)&~3))
|
|
223
|
+
#define __builtin_va_arg(ap,type) (ap = (void *) ((_tcc_align(ap,type)+sizeof(type)+3) \
|
|
224
|
+
&~3), *(type *)(ap - ((sizeof(type)+3)&~3)))
|
|
225
|
+
|
|
226
|
+
#elif defined __aarch64__
|
|
227
|
+
#if defined __APPLE__
|
|
228
|
+
typedef struct {
|
|
229
|
+
void *__stack;
|
|
230
|
+
} __builtin_va_list;
|
|
231
|
+
|
|
232
|
+
#else
|
|
233
|
+
typedef struct {
|
|
234
|
+
void *__stack, *__gr_top, *__vr_top;
|
|
235
|
+
int __gr_offs, __vr_offs;
|
|
236
|
+
} __builtin_va_list;
|
|
237
|
+
|
|
238
|
+
#endif
|
|
239
|
+
#elif defined __riscv
|
|
240
|
+
typedef char *__builtin_va_list;
|
|
241
|
+
#define __va_reg_size (__riscv_xlen >> 3)
|
|
242
|
+
#define _tcc_align(addr,type) (((unsigned long)addr + __alignof__(type) - 1) \
|
|
243
|
+
& -(__alignof__(type)))
|
|
244
|
+
#define __builtin_va_arg(ap,type) (*(sizeof(type) > (2*__va_reg_size) ? *(type **)((ap += __va_reg_size) - __va_reg_size) : (ap = (va_list)(_tcc_align(ap,type) + (sizeof(type)+__va_reg_size - 1)& -__va_reg_size), (type *)(ap - ((sizeof(type)+ __va_reg_size - 1)& -__va_reg_size)))))
|
|
245
|
+
|
|
246
|
+
#else /* __i386__ */
|
|
247
|
+
typedef char *__builtin_va_list;
|
|
248
|
+
#define __builtin_va_start(ap,last) (ap = ((char *)&(last)) + ((sizeof(last)+3)&~3))
|
|
249
|
+
#define __builtin_va_arg(ap,t) (*(t*)((ap+=(sizeof(t)+3)&~3)-((sizeof(t)+3)&~3)))
|
|
250
|
+
|
|
251
|
+
#endif
|
|
252
|
+
#define __builtin_va_end(ap) (void)(ap)
|
|
253
|
+
#ifndef __builtin_va_copy
|
|
254
|
+
# define __builtin_va_copy(dest, src) (dest) = (src)
|
|
255
|
+
#endif
|
|
256
|
+
|
|
257
|
+
/* TCC BBUILTIN AND BOUNDS ALIASES */
|
|
258
|
+
#ifdef __leading_underscore
|
|
259
|
+
# define __RENAME(X) __asm__("_"X)
|
|
260
|
+
#else
|
|
261
|
+
# define __RENAME(X) __asm__(X)
|
|
262
|
+
#endif
|
|
263
|
+
|
|
264
|
+
#ifdef __TCC_BCHECK__
|
|
265
|
+
# define __BUILTINBC(ret,name,params) ret __builtin_##name params __RENAME("__bound_"#name);
|
|
266
|
+
# define __BOUND(ret,name,params) ret name params __RENAME("__bound_"#name);
|
|
267
|
+
#else
|
|
268
|
+
# define __BUILTINBC(ret,name,params) ret __builtin_##name params __RENAME(#name);
|
|
269
|
+
# define __BOUND(ret,name,params)
|
|
270
|
+
#endif
|
|
271
|
+
#ifdef _WIN32
|
|
272
|
+
#define __BOTH __BOUND
|
|
273
|
+
#define __BUILTIN(ret,name,params)
|
|
274
|
+
#else
|
|
275
|
+
#define __BOTH(ret,name,params) __BUILTINBC(ret,name,params)__BOUND(ret,name,params)
|
|
276
|
+
#define __BUILTIN(ret,name,params) ret __builtin_##name params __RENAME(#name);
|
|
277
|
+
#endif
|
|
278
|
+
|
|
279
|
+
__BOTH(void*, memcpy, (void *, const void*, __SIZE_TYPE__))
|
|
280
|
+
__BOTH(void*, memmove, (void *, const void*, __SIZE_TYPE__))
|
|
281
|
+
__BOTH(void*, memset, (void *, int, __SIZE_TYPE__))
|
|
282
|
+
__BOTH(int, memcmp, (const void *, const void*, __SIZE_TYPE__))
|
|
283
|
+
__BOTH(__SIZE_TYPE__, strlen, (const char *))
|
|
284
|
+
__BOTH(char*, strcpy, (char *, const char *))
|
|
285
|
+
__BOTH(char*, strncpy, (char *, const char*, __SIZE_TYPE__))
|
|
286
|
+
__BOTH(int, strcmp, (const char*, const char*))
|
|
287
|
+
__BOTH(int, strncmp, (const char*, const char*, __SIZE_TYPE__))
|
|
288
|
+
__BOTH(char*, strcat, (char*, const char*))
|
|
289
|
+
__BOTH(char*, strncat, (char*, const char*, __SIZE_TYPE__))
|
|
290
|
+
__BOTH(char*, strchr, (const char*, int))
|
|
291
|
+
__BOTH(char*, strrchr, (const char*, int))
|
|
292
|
+
__BOTH(char*, strdup, (const char*))
|
|
293
|
+
#if defined __ARM_EABI__
|
|
294
|
+
__BOUND(void*,__aeabi_memcpy,(void*,const void*,__SIZE_TYPE__))
|
|
295
|
+
__BOUND(void*,__aeabi_memmove,(void*,const void*,__SIZE_TYPE__))
|
|
296
|
+
__BOUND(void*,__aeabi_memmove4,(void*,const void*,__SIZE_TYPE__))
|
|
297
|
+
__BOUND(void*,__aeabi_memmove8,(void*,const void*,__SIZE_TYPE__))
|
|
298
|
+
__BOUND(void*,__aeabi_memset,(void*,int,__SIZE_TYPE__))
|
|
299
|
+
#endif
|
|
300
|
+
|
|
301
|
+
#if defined __linux__ || defined __APPLE__ // HAVE MALLOC_REDIR
|
|
302
|
+
#define __MAYBE_REDIR __BUILTIN
|
|
303
|
+
#else
|
|
304
|
+
#define __MAYBE_REDIR __BOTH
|
|
305
|
+
#endif
|
|
306
|
+
__MAYBE_REDIR(void*, malloc, (__SIZE_TYPE__))
|
|
307
|
+
__MAYBE_REDIR(void*, realloc, (void *, __SIZE_TYPE__))
|
|
308
|
+
__MAYBE_REDIR(void*, calloc, (__SIZE_TYPE__, __SIZE_TYPE__))
|
|
309
|
+
__MAYBE_REDIR(void*, memalign, (__SIZE_TYPE__, __SIZE_TYPE__))
|
|
310
|
+
__MAYBE_REDIR(void, free, (void*))
|
|
311
|
+
#if defined __i386__ || defined __x86_64__
|
|
312
|
+
__BOTH(void*, alloca, (__SIZE_TYPE__))
|
|
313
|
+
void *alloca(__SIZE_TYPE__);
|
|
314
|
+
#else
|
|
315
|
+
__BUILTIN(void*, alloca, (__SIZE_TYPE__))
|
|
316
|
+
#endif
|
|
317
|
+
__BUILTIN(void, abort, (void))
|
|
318
|
+
__BOUND(void, longjmp, ())
|
|
319
|
+
#if !defined _WIN32
|
|
320
|
+
__BOUND(void*, mmap, ())
|
|
321
|
+
__BOUND(int, munmap, ())
|
|
322
|
+
#endif
|
|
323
|
+
#undef __BUILTINBC
|
|
324
|
+
#undef __BUILTIN
|
|
325
|
+
#undef __BOUND
|
|
326
|
+
#undef __BOTH
|
|
327
|
+
#undef __MAYBE_REDIR
|
|
328
|
+
#undef __RENAME
|
|
329
|
+
|
|
330
|
+
#define __BUILTIN_EXTERN(name,u) \
|
|
331
|
+
int __builtin_##name(u int); \
|
|
332
|
+
int __builtin_##name##l(u long); \
|
|
333
|
+
int __builtin_##name##ll(u long long);
|
|
334
|
+
__BUILTIN_EXTERN(ffs,)
|
|
335
|
+
__BUILTIN_EXTERN(clz, unsigned)
|
|
336
|
+
__BUILTIN_EXTERN(ctz, unsigned)
|
|
337
|
+
__BUILTIN_EXTERN(clrsb,)
|
|
338
|
+
__BUILTIN_EXTERN(popcount, unsigned)
|
|
339
|
+
__BUILTIN_EXTERN(parity, unsigned)
|
|
340
|
+
#undef __BUILTIN_EXTERN
|
|
341
|
+
|
|
342
|
+
#endif /* ndef __TCC_PP__ */
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ISO C Standard: 7.22 Type-generic math <tgmath.h>
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
#ifndef _TGMATH_H
|
|
6
|
+
#define _TGMATH_H
|
|
7
|
+
|
|
8
|
+
#include <math.h>
|
|
9
|
+
|
|
10
|
+
#ifndef __cplusplus
|
|
11
|
+
#define __tgmath_real(x, F) \
|
|
12
|
+
_Generic ((x), float: F##f, long double: F##l, default: F)(x)
|
|
13
|
+
#define __tgmath_real_2_1(x, y, F) \
|
|
14
|
+
_Generic ((x), float: F##f, long double: F##l, default: F)(x, y)
|
|
15
|
+
#define __tgmath_real_2(x, y, F) \
|
|
16
|
+
_Generic ((x)+(y), float: F##f, long double: F##l, default: F)(x, y)
|
|
17
|
+
#define __tgmath_real_3_2(x, y, z, F) \
|
|
18
|
+
_Generic ((x)+(y), float: F##f, long double: F##l, default: F)(x, y, z)
|
|
19
|
+
#define __tgmath_real_3(x, y, z, F) \
|
|
20
|
+
_Generic ((x)+(y)+(z), float: F##f, long double: F##l, default: F)(x, y, z)
|
|
21
|
+
|
|
22
|
+
/* Functions defined in both <math.h> and <complex.h> (7.22p4) */
|
|
23
|
+
#define acos(z) __tgmath_real(z, acos)
|
|
24
|
+
#define asin(z) __tgmath_real(z, asin)
|
|
25
|
+
#define atan(z) __tgmath_real(z, atan)
|
|
26
|
+
#define acosh(z) __tgmath_real(z, acosh)
|
|
27
|
+
#define asinh(z) __tgmath_real(z, asinh)
|
|
28
|
+
#define atanh(z) __tgmath_real(z, atanh)
|
|
29
|
+
#define cos(z) __tgmath_real(z, cos)
|
|
30
|
+
#define sin(z) __tgmath_real(z, sin)
|
|
31
|
+
#define tan(z) __tgmath_real(z, tan)
|
|
32
|
+
#define cosh(z) __tgmath_real(z, cosh)
|
|
33
|
+
#define sinh(z) __tgmath_real(z, sinh)
|
|
34
|
+
#define tanh(z) __tgmath_real(z, tanh)
|
|
35
|
+
#define exp(z) __tgmath_real(z, exp)
|
|
36
|
+
#define log(z) __tgmath_real(z, log)
|
|
37
|
+
#define pow(z1,z2) __tgmath_real_2(z1, z2, pow)
|
|
38
|
+
#define sqrt(z) __tgmath_real(z, sqrt)
|
|
39
|
+
#define fabs(z) __tgmath_real(z, fabs)
|
|
40
|
+
|
|
41
|
+
/* Functions defined in <math.h> only (7.22p5) */
|
|
42
|
+
#define atan2(x,y) __tgmath_real_2(x, y, atan2)
|
|
43
|
+
#define cbrt(x) __tgmath_real(x, cbrt)
|
|
44
|
+
#define ceil(x) __tgmath_real(x, ceil)
|
|
45
|
+
#define copysign(x,y) __tgmath_real_2(x, y, copysign)
|
|
46
|
+
#define erf(x) __tgmath_real(x, erf)
|
|
47
|
+
#define erfc(x) __tgmath_real(x, erfc)
|
|
48
|
+
#define exp2(x) __tgmath_real(x, exp2)
|
|
49
|
+
#define expm1(x) __tgmath_real(x, expm1)
|
|
50
|
+
#define fdim(x,y) __tgmath_real_2(x, y, fdim)
|
|
51
|
+
#define floor(x) __tgmath_real(x, floor)
|
|
52
|
+
#define fma(x,y,z) __tgmath_real_3(x, y, z, fma)
|
|
53
|
+
#define fmax(x,y) __tgmath_real_2(x, y, fmax)
|
|
54
|
+
#define fmin(x,y) __tgmath_real_2(x, y, fmin)
|
|
55
|
+
#define fmod(x,y) __tgmath_real_2(x, y, fmod)
|
|
56
|
+
#define frexp(x,y) __tgmath_real_2_1(x, y, frexp)
|
|
57
|
+
#define hypot(x,y) __tgmath_real_2(x, y, hypot)
|
|
58
|
+
#define ilogb(x) __tgmath_real(x, ilogb)
|
|
59
|
+
#define ldexp(x,y) __tgmath_real_2_1(x, y, ldexp)
|
|
60
|
+
#define lgamma(x) __tgmath_real(x, lgamma)
|
|
61
|
+
#define llrint(x) __tgmath_real(x, llrint)
|
|
62
|
+
#define llround(x) __tgmath_real(x, llround)
|
|
63
|
+
#define log10(x) __tgmath_real(x, log10)
|
|
64
|
+
#define log1p(x) __tgmath_real(x, log1p)
|
|
65
|
+
#define log2(x) __tgmath_real(x, log2)
|
|
66
|
+
#define logb(x) __tgmath_real(x, logb)
|
|
67
|
+
#define lrint(x) __tgmath_real(x, lrint)
|
|
68
|
+
#define lround(x) __tgmath_real(x, lround)
|
|
69
|
+
#define nearbyint(x) __tgmath_real(x, nearbyint)
|
|
70
|
+
#define nextafter(x,y) __tgmath_real_2(x, y, nextafter)
|
|
71
|
+
#define nexttoward(x,y) __tgmath_real_2(x, y, nexttoward)
|
|
72
|
+
#define remainder(x,y) __tgmath_real_2(x, y, remainder)
|
|
73
|
+
#define remquo(x,y,z) __tgmath_real_3_2(x, y, z, remquo)
|
|
74
|
+
#define rint(x) __tgmath_real(x, rint)
|
|
75
|
+
#define round(x) __tgmath_real(x, round)
|
|
76
|
+
#define scalbln(x,y) __tgmath_real_2_1(x, y, scalbln)
|
|
77
|
+
#define scalbn(x,y) __tgmath_real_2_1(x, y, scalbn)
|
|
78
|
+
#define tgamma(x) __tgmath_real(x, tgamma)
|
|
79
|
+
#define trunc(x) __tgmath_real(x, trunc)
|
|
80
|
+
|
|
81
|
+
/* Functions defined in <complex.h> only (7.22p6)
|
|
82
|
+
#define carg(z) __tgmath_cplx_only(z, carg)
|
|
83
|
+
#define cimag(z) __tgmath_cplx_only(z, cimag)
|
|
84
|
+
#define conj(z) __tgmath_cplx_only(z, conj)
|
|
85
|
+
#define cproj(z) __tgmath_cplx_only(z, cproj)
|
|
86
|
+
#define creal(z) __tgmath_cplx_only(z, creal)
|
|
87
|
+
*/
|
|
88
|
+
#endif /* __cplusplus */
|
|
89
|
+
#endif /* _TGMATH_H */
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file has no copyright assigned and is placed in the Public Domain.
|
|
3
|
+
* This file is part of the TinyCC package.
|
|
4
|
+
* No warranty is given; refer to the file DISCLAIMER within this package.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
#ifndef _INC_UCHAR
|
|
8
|
+
#define _INC_UCHAR
|
|
9
|
+
|
|
10
|
+
/*
|
|
11
|
+
* The following defines are only valid when C11 (-std=c11) is used.
|
|
12
|
+
*
|
|
13
|
+
* ... a wide character constant prefixed by the letter u or U has type char16_t
|
|
14
|
+
* or char32_t, respectively, unsigned integer types defined in the <uchar.h>
|
|
15
|
+
* header.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
#if __STDC_VERSION__ >= 201112L
|
|
19
|
+
/**
|
|
20
|
+
* __STDC_UTF_16__ The integer constant 1, intended to indicate that
|
|
21
|
+
* values of type char16_t are UTF-16 encoded.
|
|
22
|
+
*/
|
|
23
|
+
#define __STDC_UTF_16__ 1
|
|
24
|
+
/**
|
|
25
|
+
* __STDC_UTF_32__ The integer constant 1, intended to indicate that
|
|
26
|
+
* values of type char32_t are UTF-32 encoded.
|
|
27
|
+
*/
|
|
28
|
+
#define __STDC_UTF_32__ 1
|
|
29
|
+
|
|
30
|
+
typedef unsigned short char16_t;
|
|
31
|
+
typedef unsigned int char32_t;
|
|
32
|
+
#endif /* __STDC_VERSION__ >= 201112L */
|
|
33
|
+
#endif /* _INC_UCHAR */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include <sys/unistd.h>
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
#ifndef __QOS_H_
|
|
7
|
+
#define __QOS_H_
|
|
8
|
+
|
|
9
|
+
typedef ULONG SERVICETYPE;
|
|
10
|
+
|
|
11
|
+
#define SERVICETYPE_NOTRAFFIC 0x00000000
|
|
12
|
+
#define SERVICETYPE_BESTEFFORT 0x00000001
|
|
13
|
+
#define SERVICETYPE_CONTROLLEDLOAD 0x00000002
|
|
14
|
+
#define SERVICETYPE_GUARANTEED 0x00000003
|
|
15
|
+
|
|
16
|
+
#define SERVICETYPE_NETWORK_UNAVAILABLE 0x00000004
|
|
17
|
+
#define SERVICETYPE_GENERAL_INFORMATION 0x00000005
|
|
18
|
+
#define SERVICETYPE_NOCHANGE 0x00000006
|
|
19
|
+
#define SERVICETYPE_NONCONFORMING 0x00000009
|
|
20
|
+
#define SERVICETYPE_NETWORK_CONTROL 0x0000000A
|
|
21
|
+
#define SERVICETYPE_QUALITATIVE 0x0000000D
|
|
22
|
+
|
|
23
|
+
#define SERVICE_BESTEFFORT 0x80010000
|
|
24
|
+
#define SERVICE_CONTROLLEDLOAD 0x80020000
|
|
25
|
+
#define SERVICE_GUARANTEED 0x80040000
|
|
26
|
+
#define SERVICE_QUALITATIVE 0x80200000
|
|
27
|
+
|
|
28
|
+
#define SERVICE_NO_TRAFFIC_CONTROL 0x81000000
|
|
29
|
+
|
|
30
|
+
#define SERVICE_NO_QOS_SIGNALING 0x40000000
|
|
31
|
+
|
|
32
|
+
typedef struct _flowspec {
|
|
33
|
+
ULONG TokenRate;
|
|
34
|
+
ULONG TokenBucketSize;
|
|
35
|
+
ULONG PeakBandwidth;
|
|
36
|
+
ULONG Latency;
|
|
37
|
+
ULONG DelayVariation;
|
|
38
|
+
SERVICETYPE ServiceType;
|
|
39
|
+
ULONG MaxSduSize;
|
|
40
|
+
ULONG MinimumPolicedSize;
|
|
41
|
+
} FLOWSPEC,*PFLOWSPEC,*LPFLOWSPEC;
|
|
42
|
+
|
|
43
|
+
#define QOS_NOT_SPECIFIED 0xFFFFFFFF
|
|
44
|
+
#define POSITIVE_INFINITY_RATE 0xFFFFFFFE
|
|
45
|
+
|
|
46
|
+
typedef struct {
|
|
47
|
+
ULONG ObjectType;
|
|
48
|
+
ULONG ObjectLength;
|
|
49
|
+
} QOS_OBJECT_HDR,*LPQOS_OBJECT_HDR;
|
|
50
|
+
|
|
51
|
+
#define QOS_GENERAL_ID_BASE 2000
|
|
52
|
+
#define QOS_OBJECT_END_OF_LIST (0x00000001 + QOS_GENERAL_ID_BASE)
|
|
53
|
+
#define QOS_OBJECT_SD_MODE (0x00000002 + QOS_GENERAL_ID_BASE)
|
|
54
|
+
#define QOS_OBJECT_SHAPING_RATE (0x00000003 + QOS_GENERAL_ID_BASE)
|
|
55
|
+
#define QOS_OBJECT_DESTADDR (0x00000004 + QOS_GENERAL_ID_BASE)
|
|
56
|
+
|
|
57
|
+
typedef struct _QOS_SD_MODE {
|
|
58
|
+
QOS_OBJECT_HDR ObjectHdr;
|
|
59
|
+
ULONG ShapeDiscardMode;
|
|
60
|
+
} QOS_SD_MODE,*LPQOS_SD_MODE;
|
|
61
|
+
|
|
62
|
+
#define TC_NONCONF_BORROW 0
|
|
63
|
+
#define TC_NONCONF_SHAPE 1
|
|
64
|
+
#define TC_NONCONF_DISCARD 2
|
|
65
|
+
#define TC_NONCONF_BORROW_PLUS 3
|
|
66
|
+
|
|
67
|
+
typedef struct _QOS_SHAPING_RATE {
|
|
68
|
+
QOS_OBJECT_HDR ObjectHdr;
|
|
69
|
+
ULONG ShapingRate;
|
|
70
|
+
} QOS_SHAPING_RATE,*LPQOS_SHAPING_RATE;
|
|
71
|
+
|
|
72
|
+
#endif
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
#ifndef _INC_SHELLAPI
|
|
7
|
+
#define _INC_SHELLAPI
|
|
8
|
+
|
|
9
|
+
#ifndef WINSHELLAPI
|
|
10
|
+
#if !defined(_SHELL32_)
|
|
11
|
+
#define WINSHELLAPI DECLSPEC_IMPORT
|
|
12
|
+
#else
|
|
13
|
+
#define WINSHELLAPI
|
|
14
|
+
#endif
|
|
15
|
+
#endif
|
|
16
|
+
|
|
17
|
+
#ifndef SHSTDAPI
|
|
18
|
+
#if !defined(_SHELL32_)
|
|
19
|
+
#define SHSTDAPI EXTERN_C DECLSPEC_IMPORT HRESULT WINAPI
|
|
20
|
+
#define SHSTDAPI_(type) EXTERN_C DECLSPEC_IMPORT type WINAPI
|
|
21
|
+
#else
|
|
22
|
+
#define SHSTDAPI STDAPI
|
|
23
|
+
#define SHSTDAPI_(type) STDAPI_(type)
|
|
24
|
+
#endif
|
|
25
|
+
#endif
|
|
26
|
+
|
|
27
|
+
/* SHDOCAPI[_] definitions not required in this TinyCC minimal header */
|
|
28
|
+
|
|
29
|
+
#if !defined(_WIN64)
|
|
30
|
+
#include <pshpack1.h>
|
|
31
|
+
#endif
|
|
32
|
+
|
|
33
|
+
#ifdef __cplusplus
|
|
34
|
+
extern "C" {
|
|
35
|
+
#endif
|
|
36
|
+
|
|
37
|
+
#ifdef UNICODE
|
|
38
|
+
#define ShellExecute ShellExecuteW
|
|
39
|
+
#define FindExecutable FindExecutableW
|
|
40
|
+
#else
|
|
41
|
+
#define ShellExecute ShellExecuteA
|
|
42
|
+
#define FindExecutable FindExecutableA
|
|
43
|
+
#endif
|
|
44
|
+
|
|
45
|
+
/* minimal subset distributed with TinyCC. nShowCmd is at winuser.h */
|
|
46
|
+
SHSTDAPI_(HINSTANCE) ShellExecuteA(HWND hwnd,LPCSTR lpOperation,LPCSTR lpFile,LPCSTR lpParameters,LPCSTR lpDirectory,INT nShowCmd);
|
|
47
|
+
SHSTDAPI_(HINSTANCE) ShellExecuteW(HWND hwnd,LPCWSTR lpOperation,LPCWSTR lpFile,LPCWSTR lpParameters,LPCWSTR lpDirectory,INT nShowCmd);
|
|
48
|
+
SHSTDAPI_(HINSTANCE) FindExecutableA(LPCSTR lpFile,LPCSTR lpDirectory,LPSTR lpResult);
|
|
49
|
+
SHSTDAPI_(HINSTANCE) FindExecutableW(LPCWSTR lpFile,LPCWSTR lpDirectory,LPWSTR lpResult);
|
|
50
|
+
SHSTDAPI_(LPWSTR *) CommandLineToArgvW(LPCWSTR lpCmdLine,int*pNumArgs);
|
|
51
|
+
|
|
52
|
+
#ifdef __cplusplus
|
|
53
|
+
}
|
|
54
|
+
#endif
|
|
55
|
+
|
|
56
|
+
#if !defined(_WIN64)
|
|
57
|
+
#include <poppack.h>
|
|
58
|
+
#endif
|
|
59
|
+
#endif
|
|
@@ -859,7 +859,7 @@ extern "C" {
|
|
|
859
859
|
}
|
|
860
860
|
#endif
|
|
861
861
|
|
|
862
|
-
#ifndef
|
|
862
|
+
#ifndef InterlockedAnd64
|
|
863
863
|
#define InterlockedAnd64 InterlockedAnd64_Inline
|
|
864
864
|
|
|
865
865
|
__CRT_INLINE LONGLONG InterlockedAnd64_Inline (LONGLONG volatile *Destination,LONGLONG Value) {
|
|
@@ -1847,8 +1847,15 @@ extern "C" {
|
|
|
1847
1847
|
#define LOAD_LIBRARY_AS_DATAFILE 0x2
|
|
1848
1848
|
#define LOAD_WITH_ALTERED_SEARCH_PATH 0x8
|
|
1849
1849
|
#define LOAD_IGNORE_CODE_AUTHZ_LEVEL 0x10
|
|
1850
|
-
#define
|
|
1850
|
+
#define LOAD_LIBRARY_AS_IMAGE_RESOURCE 0x20
|
|
1851
1851
|
#define LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE 0x40
|
|
1852
|
+
#define LOAD_LIBRARY_REQUIRE_SIGNED_TARGET 0x80
|
|
1853
|
+
#define LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR 0x100
|
|
1854
|
+
#define LOAD_LIBRARY_SEARCH_APPLICATION_DIR 0x200
|
|
1855
|
+
#define LOAD_LIBRARY_SEARCH_USER_DIRS 0x400
|
|
1856
|
+
#define LOAD_LIBRARY_SEARCH_SYSTEM32 0x800
|
|
1857
|
+
#define LOAD_LIBRARY_SEARCH_DEFAULT_DIRS 0x1000
|
|
1858
|
+
#define LOAD_LIBRARY_SAFE_CURRENT_DIRS 0x2000
|
|
1852
1859
|
|
|
1853
1860
|
WINBASEAPI DWORD WINAPI GetModuleFileNameA(HMODULE hModule,LPCH lpFilename,DWORD nSize);
|
|
1854
1861
|
WINBASEAPI DWORD WINAPI GetModuleFileNameW(HMODULE hModule,LPWCH lpFilename,DWORD nSize);
|
|
@@ -167,9 +167,17 @@ extern "C" {
|
|
|
167
167
|
#define ENABLE_ECHO_INPUT 0x4
|
|
168
168
|
#define ENABLE_WINDOW_INPUT 0x8
|
|
169
169
|
#define ENABLE_MOUSE_INPUT 0x10
|
|
170
|
+
#define ENABLE_INSERT_MODE 0x20
|
|
171
|
+
#define ENABLE_QUICK_EDIT_MODE 0x40
|
|
172
|
+
#define ENABLE_EXTENDED_FLAGS 0x80
|
|
173
|
+
#define ENABLE_AUTO_POSITION 0x100
|
|
174
|
+
#define ENABLE_VIRTUAL_TERMINAL_INPUT 0x200
|
|
170
175
|
|
|
171
176
|
#define ENABLE_PROCESSED_OUTPUT 0x1
|
|
172
177
|
#define ENABLE_WRAP_AT_EOL_OUTPUT 0x2
|
|
178
|
+
#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x4
|
|
179
|
+
#define DISABLE_NEWLINE_AUTO_RETURN 0x8
|
|
180
|
+
#define ENABLE_LVB_GRID_WORLDWIDE 0x10
|
|
173
181
|
|
|
174
182
|
#ifdef UNICODE
|
|
175
183
|
#define PeekConsoleInput PeekConsoleInputW
|