@xnetx/tinyc-native-x86_64-w64-mingw32 0.1.3 → 0.2.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.
- package/natives/x86_64-w64-mingw32/toolchain/x86_64-w64-mingw32/tinyc.exe +0 -0
- package/package.json +1 -1
- package/sysroot/x86_64-w64-mingw32/include/tinyc_io.h +131 -131
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/_mingw.h +171 -171
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/arm_neon.h +3585 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/assert.h +62 -62
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx2intrin.h +93 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512bwintrin.h +128 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512cdintrin.h +31 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512dqintrin.h +123 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512fintrin.h +1075 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512vbmiintrin.h +30 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512vlintrin.h +1633 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512vnniintrin.h +33 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avxintrin.h +675 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/conio.h +409 -409
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/ctype.h +281 -281
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/dir.h +31 -31
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/direct.h +68 -68
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/dirent.h +135 -135
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/dos.h +55 -55
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/emmintrin.h +213 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/errno.h +75 -75
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/excpt.h +123 -123
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/f16cintrin.h +29 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/fcntl.h +52 -52
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/fenv.h +108 -108
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/float.h +75 -75
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/fmaintrin.h +141 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/immintrin.h +21 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/inttypes.h +297 -297
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/io.h +418 -418
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/iso646.h +36 -36
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/limits.h +116 -116
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/locale.h +91 -91
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/malloc.h +181 -181
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/math.h +497 -497
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/mem.h +13 -13
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/memory.h +40 -40
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/process.h +176 -176
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/riscv_vector.h +12334 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/conio_s.h +42 -42
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/crtdbg_s.h +19 -19
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/io_s.h +33 -33
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/mbstring_s.h +52 -52
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/search_s.h +25 -25
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/stdio_s.h +145 -145
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/stdlib_s.h +67 -67
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/stralign_s.h +30 -30
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/string_s.h +41 -41
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/sys/timeb_s.h +34 -34
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/tchar_s.h +266 -266
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/time_s.h +61 -61
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/wchar_s.h +128 -128
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/setjmp.h +199 -199
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/share.h +28 -28
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/signal.h +63 -63
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/smmintrin.h +74 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdalign.h +16 -16
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdarg.h +14 -14
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdatomic.h +171 -171
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdbool.h +11 -11
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stddef.h +39 -39
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdint.h +212 -212
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdio.h +429 -429
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdlib.h +606 -606
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdnoreturn.h +7 -7
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/string.h +164 -164
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/fcntl.h +13 -13
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/file.h +14 -14
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/locking.h +30 -30
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/stat.h +290 -290
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/time.h +69 -69
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/timeb.h +133 -133
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/types.h +123 -123
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/unistd.h +14 -14
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/utime.h +146 -146
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tcc/tcc_libm.h +618 -618
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tccdefs.h +338 -338
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tcclib.h +82 -82
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tchar.h +1102 -1102
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tgmath.h +89 -89
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/time.h +287 -287
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tmmintrin.h +19 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/uchar.h +33 -33
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/unistd.h +1 -1
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/vadefs.h +11 -11
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/values.h +4 -4
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/varargs.h +12 -12
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/wchar.h +873 -873
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/wctype.h +172 -172
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/basetsd.h +149 -149
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/basetyps.h +85 -85
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/guiddef.h +156 -156
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/poppack.h +8 -8
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/pshpack1.h +8 -8
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/pshpack2.h +8 -8
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/pshpack4.h +8 -8
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/pshpack8.h +8 -8
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/qos.h +72 -72
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/shellapi.h +59 -59
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winbase.h +2966 -2966
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/wincon.h +309 -309
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/windef.h +293 -293
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/windows.h +127 -127
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winerror.h +3166 -3166
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/wingdi.h +4080 -4080
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winnls.h +778 -778
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winnt.h +5994 -5994
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winreg.h +272 -272
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winsock2.h +1474 -1474
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winuser.h +5652 -5652
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winver.h +160 -160
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/ws2ipdef.h +21 -21
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/ws2tcpip.h +391 -391
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/xmmintrin.h +170 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/gdi32.def +337 -337
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/kernel32.def +776 -776
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/libtcc1.a +0 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/msvcrt.def +1320 -1320
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/runmain.o +0 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/user32.def +658 -658
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/ws2_32.def +198 -198
- package/sysroot/x86_64-w64-mingw32/manifest.json +1 -1
|
@@ -1,172 +1,172 @@
|
|
|
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_WCTYPE
|
|
7
|
-
#define _INC_WCTYPE
|
|
8
|
-
|
|
9
|
-
#ifndef _WIN32
|
|
10
|
-
#error Only Win32 target is supported!
|
|
11
|
-
#endif
|
|
12
|
-
|
|
13
|
-
#include <_mingw.h>
|
|
14
|
-
|
|
15
|
-
#pragma pack(push,_CRT_PACKING)
|
|
16
|
-
|
|
17
|
-
#ifdef __cplusplus
|
|
18
|
-
extern "C" {
|
|
19
|
-
#endif
|
|
20
|
-
|
|
21
|
-
#ifndef _CRTIMP
|
|
22
|
-
#define _CRTIMP __declspec(dllimport)
|
|
23
|
-
#endif
|
|
24
|
-
|
|
25
|
-
#ifndef _WCHAR_T_DEFINED
|
|
26
|
-
typedef unsigned short wchar_t;
|
|
27
|
-
#define _WCHAR_T_DEFINED
|
|
28
|
-
#endif
|
|
29
|
-
|
|
30
|
-
#ifndef _WCTYPE_T_DEFINED
|
|
31
|
-
typedef unsigned short wint_t;
|
|
32
|
-
typedef unsigned short wctype_t;
|
|
33
|
-
#define _WCTYPE_T_DEFINED
|
|
34
|
-
#endif
|
|
35
|
-
|
|
36
|
-
#ifndef WEOF
|
|
37
|
-
#define WEOF (wint_t)(0xFFFF)
|
|
38
|
-
#endif
|
|
39
|
-
|
|
40
|
-
#ifndef _CRT_CTYPEDATA_DEFINED
|
|
41
|
-
#define _CRT_CTYPEDATA_DEFINED
|
|
42
|
-
#ifndef _CTYPE_DISABLE_MACROS
|
|
43
|
-
|
|
44
|
-
#ifndef __PCTYPE_FUNC
|
|
45
|
-
#define __PCTYPE_FUNC __pctype_func()
|
|
46
|
-
#ifdef _MSVCRT_
|
|
47
|
-
#define __pctype_func() (_pctype)
|
|
48
|
-
#else
|
|
49
|
-
#define __pctype_func() (*_imp___pctype)
|
|
50
|
-
#endif
|
|
51
|
-
#endif
|
|
52
|
-
|
|
53
|
-
#ifndef _pctype
|
|
54
|
-
#ifdef _MSVCRT_
|
|
55
|
-
extern unsigned short *_pctype;
|
|
56
|
-
#else
|
|
57
|
-
extern unsigned short **_imp___pctype;
|
|
58
|
-
#define _pctype (*_imp___pctype)
|
|
59
|
-
#endif
|
|
60
|
-
#endif
|
|
61
|
-
|
|
62
|
-
#endif
|
|
63
|
-
#endif
|
|
64
|
-
|
|
65
|
-
#ifndef _CRT_WCTYPEDATA_DEFINED
|
|
66
|
-
#define _CRT_WCTYPEDATA_DEFINED
|
|
67
|
-
#ifndef _CTYPE_DISABLE_MACROS
|
|
68
|
-
#ifndef _wctype
|
|
69
|
-
#ifdef _MSVCRT_
|
|
70
|
-
extern unsigned short *_wctype;
|
|
71
|
-
#else
|
|
72
|
-
extern unsigned short **_imp___wctype;
|
|
73
|
-
#define _wctype (*_imp___wctype)
|
|
74
|
-
#endif
|
|
75
|
-
#endif
|
|
76
|
-
|
|
77
|
-
#ifndef _pwctype
|
|
78
|
-
#ifdef _MSVCRT_
|
|
79
|
-
extern unsigned short *_pwctype;
|
|
80
|
-
#else
|
|
81
|
-
extern unsigned short **_imp___pwctype;
|
|
82
|
-
#define _pwctype (*_imp___pwctype)
|
|
83
|
-
#define __pwctype_func() (*_imp___pwctype)
|
|
84
|
-
#endif
|
|
85
|
-
#endif
|
|
86
|
-
#endif
|
|
87
|
-
#endif
|
|
88
|
-
|
|
89
|
-
#define _UPPER 0x1
|
|
90
|
-
#define _LOWER 0x2
|
|
91
|
-
#define _DIGIT 0x4
|
|
92
|
-
#define _SPACE 0x8
|
|
93
|
-
|
|
94
|
-
#define _PUNCT 0x10
|
|
95
|
-
#define _CONTROL 0x20
|
|
96
|
-
#define _BLANK 0x40
|
|
97
|
-
#define _HEX 0x80
|
|
98
|
-
|
|
99
|
-
#define _LEADBYTE 0x8000
|
|
100
|
-
#define _ALPHA (0x0100|_UPPER|_LOWER)
|
|
101
|
-
|
|
102
|
-
#ifndef _WCTYPE_DEFINED
|
|
103
|
-
#define _WCTYPE_DEFINED
|
|
104
|
-
|
|
105
|
-
int __cdecl iswalpha(wint_t);
|
|
106
|
-
int __cdecl iswupper(wint_t);
|
|
107
|
-
int __cdecl iswlower(wint_t);
|
|
108
|
-
int __cdecl iswdigit(wint_t);
|
|
109
|
-
int __cdecl iswxdigit(wint_t);
|
|
110
|
-
int __cdecl iswspace(wint_t);
|
|
111
|
-
int __cdecl iswpunct(wint_t);
|
|
112
|
-
int __cdecl iswalnum(wint_t);
|
|
113
|
-
int __cdecl iswprint(wint_t);
|
|
114
|
-
int __cdecl iswgraph(wint_t);
|
|
115
|
-
int __cdecl iswcntrl(wint_t);
|
|
116
|
-
int __cdecl iswascii(wint_t);
|
|
117
|
-
int __cdecl isleadbyte(int);
|
|
118
|
-
wint_t __cdecl towupper(wint_t);
|
|
119
|
-
wint_t __cdecl towlower(wint_t);
|
|
120
|
-
int __cdecl iswctype(wint_t,wctype_t);
|
|
121
|
-
_CRTIMP int __cdecl __iswcsymf(wint_t);
|
|
122
|
-
_CRTIMP int __cdecl __iswcsym(wint_t);
|
|
123
|
-
int __cdecl is_wctype(wint_t,wctype_t);
|
|
124
|
-
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || !defined (NO_OLDNAMES)
|
|
125
|
-
int __cdecl isblank(int _C);
|
|
126
|
-
#endif
|
|
127
|
-
#endif
|
|
128
|
-
|
|
129
|
-
#ifndef _WCTYPE_INLINE_DEFINED
|
|
130
|
-
#define _WCTYPE_INLINE_DEFINED
|
|
131
|
-
#ifndef __cplusplus
|
|
132
|
-
#define iswalpha(_c) (iswctype(_c,_ALPHA))
|
|
133
|
-
#define iswupper(_c) (iswctype(_c,_UPPER))
|
|
134
|
-
#define iswlower(_c) (iswctype(_c,_LOWER))
|
|
135
|
-
#define iswdigit(_c) (iswctype(_c,_DIGIT))
|
|
136
|
-
#define iswxdigit(_c) (iswctype(_c,_HEX))
|
|
137
|
-
#define iswspace(_c) (iswctype(_c,_SPACE))
|
|
138
|
-
#define iswpunct(_c) (iswctype(_c,_PUNCT))
|
|
139
|
-
#define iswalnum(_c) (iswctype(_c,_ALPHA|_DIGIT))
|
|
140
|
-
#define iswprint(_c) (iswctype(_c,_BLANK|_PUNCT|_ALPHA|_DIGIT))
|
|
141
|
-
#define iswgraph(_c) (iswctype(_c,_PUNCT|_ALPHA|_DIGIT))
|
|
142
|
-
#define iswcntrl(_c) (iswctype(_c,_CONTROL))
|
|
143
|
-
#define iswascii(_c) ((unsigned)(_c) < 0x80)
|
|
144
|
-
#define isleadbyte(c) (__pctype_func()[(unsigned char)(c)] & _LEADBYTE)
|
|
145
|
-
#else
|
|
146
|
-
__CRT_INLINE int __cdecl iswalpha(wint_t _C) {return (iswctype(_C,_ALPHA)); }
|
|
147
|
-
__CRT_INLINE int __cdecl iswupper(wint_t _C) {return (iswctype(_C,_UPPER)); }
|
|
148
|
-
__CRT_INLINE int __cdecl iswlower(wint_t _C) {return (iswctype(_C,_LOWER)); }
|
|
149
|
-
__CRT_INLINE int __cdecl iswdigit(wint_t _C) {return (iswctype(_C,_DIGIT)); }
|
|
150
|
-
__CRT_INLINE int __cdecl iswxdigit(wint_t _C) {return (iswctype(_C,_HEX)); }
|
|
151
|
-
__CRT_INLINE int __cdecl iswspace(wint_t _C) {return (iswctype(_C,_SPACE)); }
|
|
152
|
-
__CRT_INLINE int __cdecl iswpunct(wint_t _C) {return (iswctype(_C,_PUNCT)); }
|
|
153
|
-
__CRT_INLINE int __cdecl iswalnum(wint_t _C) {return (iswctype(_C,_ALPHA|_DIGIT)); }
|
|
154
|
-
__CRT_INLINE int __cdecl iswprint(wint_t _C) {return (iswctype(_C,_BLANK|_PUNCT|_ALPHA|_DIGIT)); }
|
|
155
|
-
__CRT_INLINE int __cdecl iswgraph(wint_t _C) {return (iswctype(_C,_PUNCT|_ALPHA|_DIGIT)); }
|
|
156
|
-
__CRT_INLINE int __cdecl iswcntrl(wint_t _C) {return (iswctype(_C,_CONTROL)); }
|
|
157
|
-
__CRT_INLINE int __cdecl iswascii(wint_t _C) {return ((unsigned)(_C) < 0x80); }
|
|
158
|
-
__CRT_INLINE int __cdecl isleadbyte(int _C) {return (__pctype_func()[(unsigned char)(_C)] & _LEADBYTE); }
|
|
159
|
-
#endif
|
|
160
|
-
#endif
|
|
161
|
-
|
|
162
|
-
typedef wchar_t wctrans_t;
|
|
163
|
-
wint_t __cdecl towctrans(wint_t,wctrans_t);
|
|
164
|
-
wctrans_t __cdecl wctrans(const char *);
|
|
165
|
-
wctype_t __cdecl wctype(const char *);
|
|
166
|
-
|
|
167
|
-
#ifdef __cplusplus
|
|
168
|
-
}
|
|
169
|
-
#endif
|
|
170
|
-
|
|
171
|
-
#pragma pack(pop)
|
|
172
|
-
#endif
|
|
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_WCTYPE
|
|
7
|
+
#define _INC_WCTYPE
|
|
8
|
+
|
|
9
|
+
#ifndef _WIN32
|
|
10
|
+
#error Only Win32 target is supported!
|
|
11
|
+
#endif
|
|
12
|
+
|
|
13
|
+
#include <_mingw.h>
|
|
14
|
+
|
|
15
|
+
#pragma pack(push,_CRT_PACKING)
|
|
16
|
+
|
|
17
|
+
#ifdef __cplusplus
|
|
18
|
+
extern "C" {
|
|
19
|
+
#endif
|
|
20
|
+
|
|
21
|
+
#ifndef _CRTIMP
|
|
22
|
+
#define _CRTIMP __declspec(dllimport)
|
|
23
|
+
#endif
|
|
24
|
+
|
|
25
|
+
#ifndef _WCHAR_T_DEFINED
|
|
26
|
+
typedef unsigned short wchar_t;
|
|
27
|
+
#define _WCHAR_T_DEFINED
|
|
28
|
+
#endif
|
|
29
|
+
|
|
30
|
+
#ifndef _WCTYPE_T_DEFINED
|
|
31
|
+
typedef unsigned short wint_t;
|
|
32
|
+
typedef unsigned short wctype_t;
|
|
33
|
+
#define _WCTYPE_T_DEFINED
|
|
34
|
+
#endif
|
|
35
|
+
|
|
36
|
+
#ifndef WEOF
|
|
37
|
+
#define WEOF (wint_t)(0xFFFF)
|
|
38
|
+
#endif
|
|
39
|
+
|
|
40
|
+
#ifndef _CRT_CTYPEDATA_DEFINED
|
|
41
|
+
#define _CRT_CTYPEDATA_DEFINED
|
|
42
|
+
#ifndef _CTYPE_DISABLE_MACROS
|
|
43
|
+
|
|
44
|
+
#ifndef __PCTYPE_FUNC
|
|
45
|
+
#define __PCTYPE_FUNC __pctype_func()
|
|
46
|
+
#ifdef _MSVCRT_
|
|
47
|
+
#define __pctype_func() (_pctype)
|
|
48
|
+
#else
|
|
49
|
+
#define __pctype_func() (*_imp___pctype)
|
|
50
|
+
#endif
|
|
51
|
+
#endif
|
|
52
|
+
|
|
53
|
+
#ifndef _pctype
|
|
54
|
+
#ifdef _MSVCRT_
|
|
55
|
+
extern unsigned short *_pctype;
|
|
56
|
+
#else
|
|
57
|
+
extern unsigned short **_imp___pctype;
|
|
58
|
+
#define _pctype (*_imp___pctype)
|
|
59
|
+
#endif
|
|
60
|
+
#endif
|
|
61
|
+
|
|
62
|
+
#endif
|
|
63
|
+
#endif
|
|
64
|
+
|
|
65
|
+
#ifndef _CRT_WCTYPEDATA_DEFINED
|
|
66
|
+
#define _CRT_WCTYPEDATA_DEFINED
|
|
67
|
+
#ifndef _CTYPE_DISABLE_MACROS
|
|
68
|
+
#ifndef _wctype
|
|
69
|
+
#ifdef _MSVCRT_
|
|
70
|
+
extern unsigned short *_wctype;
|
|
71
|
+
#else
|
|
72
|
+
extern unsigned short **_imp___wctype;
|
|
73
|
+
#define _wctype (*_imp___wctype)
|
|
74
|
+
#endif
|
|
75
|
+
#endif
|
|
76
|
+
|
|
77
|
+
#ifndef _pwctype
|
|
78
|
+
#ifdef _MSVCRT_
|
|
79
|
+
extern unsigned short *_pwctype;
|
|
80
|
+
#else
|
|
81
|
+
extern unsigned short **_imp___pwctype;
|
|
82
|
+
#define _pwctype (*_imp___pwctype)
|
|
83
|
+
#define __pwctype_func() (*_imp___pwctype)
|
|
84
|
+
#endif
|
|
85
|
+
#endif
|
|
86
|
+
#endif
|
|
87
|
+
#endif
|
|
88
|
+
|
|
89
|
+
#define _UPPER 0x1
|
|
90
|
+
#define _LOWER 0x2
|
|
91
|
+
#define _DIGIT 0x4
|
|
92
|
+
#define _SPACE 0x8
|
|
93
|
+
|
|
94
|
+
#define _PUNCT 0x10
|
|
95
|
+
#define _CONTROL 0x20
|
|
96
|
+
#define _BLANK 0x40
|
|
97
|
+
#define _HEX 0x80
|
|
98
|
+
|
|
99
|
+
#define _LEADBYTE 0x8000
|
|
100
|
+
#define _ALPHA (0x0100|_UPPER|_LOWER)
|
|
101
|
+
|
|
102
|
+
#ifndef _WCTYPE_DEFINED
|
|
103
|
+
#define _WCTYPE_DEFINED
|
|
104
|
+
|
|
105
|
+
int __cdecl iswalpha(wint_t);
|
|
106
|
+
int __cdecl iswupper(wint_t);
|
|
107
|
+
int __cdecl iswlower(wint_t);
|
|
108
|
+
int __cdecl iswdigit(wint_t);
|
|
109
|
+
int __cdecl iswxdigit(wint_t);
|
|
110
|
+
int __cdecl iswspace(wint_t);
|
|
111
|
+
int __cdecl iswpunct(wint_t);
|
|
112
|
+
int __cdecl iswalnum(wint_t);
|
|
113
|
+
int __cdecl iswprint(wint_t);
|
|
114
|
+
int __cdecl iswgraph(wint_t);
|
|
115
|
+
int __cdecl iswcntrl(wint_t);
|
|
116
|
+
int __cdecl iswascii(wint_t);
|
|
117
|
+
int __cdecl isleadbyte(int);
|
|
118
|
+
wint_t __cdecl towupper(wint_t);
|
|
119
|
+
wint_t __cdecl towlower(wint_t);
|
|
120
|
+
int __cdecl iswctype(wint_t,wctype_t);
|
|
121
|
+
_CRTIMP int __cdecl __iswcsymf(wint_t);
|
|
122
|
+
_CRTIMP int __cdecl __iswcsym(wint_t);
|
|
123
|
+
int __cdecl is_wctype(wint_t,wctype_t);
|
|
124
|
+
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || !defined (NO_OLDNAMES)
|
|
125
|
+
int __cdecl isblank(int _C);
|
|
126
|
+
#endif
|
|
127
|
+
#endif
|
|
128
|
+
|
|
129
|
+
#ifndef _WCTYPE_INLINE_DEFINED
|
|
130
|
+
#define _WCTYPE_INLINE_DEFINED
|
|
131
|
+
#ifndef __cplusplus
|
|
132
|
+
#define iswalpha(_c) (iswctype(_c,_ALPHA))
|
|
133
|
+
#define iswupper(_c) (iswctype(_c,_UPPER))
|
|
134
|
+
#define iswlower(_c) (iswctype(_c,_LOWER))
|
|
135
|
+
#define iswdigit(_c) (iswctype(_c,_DIGIT))
|
|
136
|
+
#define iswxdigit(_c) (iswctype(_c,_HEX))
|
|
137
|
+
#define iswspace(_c) (iswctype(_c,_SPACE))
|
|
138
|
+
#define iswpunct(_c) (iswctype(_c,_PUNCT))
|
|
139
|
+
#define iswalnum(_c) (iswctype(_c,_ALPHA|_DIGIT))
|
|
140
|
+
#define iswprint(_c) (iswctype(_c,_BLANK|_PUNCT|_ALPHA|_DIGIT))
|
|
141
|
+
#define iswgraph(_c) (iswctype(_c,_PUNCT|_ALPHA|_DIGIT))
|
|
142
|
+
#define iswcntrl(_c) (iswctype(_c,_CONTROL))
|
|
143
|
+
#define iswascii(_c) ((unsigned)(_c) < 0x80)
|
|
144
|
+
#define isleadbyte(c) (__pctype_func()[(unsigned char)(c)] & _LEADBYTE)
|
|
145
|
+
#else
|
|
146
|
+
__CRT_INLINE int __cdecl iswalpha(wint_t _C) {return (iswctype(_C,_ALPHA)); }
|
|
147
|
+
__CRT_INLINE int __cdecl iswupper(wint_t _C) {return (iswctype(_C,_UPPER)); }
|
|
148
|
+
__CRT_INLINE int __cdecl iswlower(wint_t _C) {return (iswctype(_C,_LOWER)); }
|
|
149
|
+
__CRT_INLINE int __cdecl iswdigit(wint_t _C) {return (iswctype(_C,_DIGIT)); }
|
|
150
|
+
__CRT_INLINE int __cdecl iswxdigit(wint_t _C) {return (iswctype(_C,_HEX)); }
|
|
151
|
+
__CRT_INLINE int __cdecl iswspace(wint_t _C) {return (iswctype(_C,_SPACE)); }
|
|
152
|
+
__CRT_INLINE int __cdecl iswpunct(wint_t _C) {return (iswctype(_C,_PUNCT)); }
|
|
153
|
+
__CRT_INLINE int __cdecl iswalnum(wint_t _C) {return (iswctype(_C,_ALPHA|_DIGIT)); }
|
|
154
|
+
__CRT_INLINE int __cdecl iswprint(wint_t _C) {return (iswctype(_C,_BLANK|_PUNCT|_ALPHA|_DIGIT)); }
|
|
155
|
+
__CRT_INLINE int __cdecl iswgraph(wint_t _C) {return (iswctype(_C,_PUNCT|_ALPHA|_DIGIT)); }
|
|
156
|
+
__CRT_INLINE int __cdecl iswcntrl(wint_t _C) {return (iswctype(_C,_CONTROL)); }
|
|
157
|
+
__CRT_INLINE int __cdecl iswascii(wint_t _C) {return ((unsigned)(_C) < 0x80); }
|
|
158
|
+
__CRT_INLINE int __cdecl isleadbyte(int _C) {return (__pctype_func()[(unsigned char)(_C)] & _LEADBYTE); }
|
|
159
|
+
#endif
|
|
160
|
+
#endif
|
|
161
|
+
|
|
162
|
+
typedef wchar_t wctrans_t;
|
|
163
|
+
wint_t __cdecl towctrans(wint_t,wctrans_t);
|
|
164
|
+
wctrans_t __cdecl wctrans(const char *);
|
|
165
|
+
wctype_t __cdecl wctype(const char *);
|
|
166
|
+
|
|
167
|
+
#ifdef __cplusplus
|
|
168
|
+
}
|
|
169
|
+
#endif
|
|
170
|
+
|
|
171
|
+
#pragma pack(pop)
|
|
172
|
+
#endif
|
|
@@ -1,149 +1,149 @@
|
|
|
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 _BASETSD_H_
|
|
7
|
-
#define _BASETSD_H_
|
|
8
|
-
|
|
9
|
-
#if (defined(__x86_64) || defined(__ia64__)) && !defined(RC_INVOKED)
|
|
10
|
-
typedef unsigned __int64 POINTER_64_INT;
|
|
11
|
-
#else
|
|
12
|
-
typedef unsigned long POINTER_64_INT;
|
|
13
|
-
#endif
|
|
14
|
-
|
|
15
|
-
#define POINTER_32
|
|
16
|
-
#define POINTER_64
|
|
17
|
-
#define FIRMWARE_PTR
|
|
18
|
-
|
|
19
|
-
#ifdef __cplusplus
|
|
20
|
-
extern "C" {
|
|
21
|
-
#endif
|
|
22
|
-
|
|
23
|
-
typedef signed char INT8,*PINT8;
|
|
24
|
-
typedef signed short INT16,*PINT16;
|
|
25
|
-
typedef signed int INT32,*PINT32;
|
|
26
|
-
typedef signed __int64 INT64,*PINT64;
|
|
27
|
-
typedef unsigned char UINT8,*PUINT8;
|
|
28
|
-
typedef unsigned short UINT16,*PUINT16;
|
|
29
|
-
typedef unsigned int UINT32,*PUINT32;
|
|
30
|
-
typedef unsigned __int64 UINT64,*PUINT64;
|
|
31
|
-
typedef signed int LONG32,*PLONG32;
|
|
32
|
-
typedef unsigned int ULONG32,*PULONG32;
|
|
33
|
-
typedef unsigned int DWORD32,*PDWORD32;
|
|
34
|
-
|
|
35
|
-
#ifndef _W64
|
|
36
|
-
#define _W64
|
|
37
|
-
#endif
|
|
38
|
-
|
|
39
|
-
#ifdef _WIN64
|
|
40
|
-
typedef __int64 INT_PTR,*PINT_PTR;
|
|
41
|
-
typedef unsigned __int64 UINT_PTR,*PUINT_PTR;
|
|
42
|
-
typedef __int64 LONG_PTR,*PLONG_PTR;
|
|
43
|
-
typedef unsigned __int64 ULONG_PTR,*PULONG_PTR;
|
|
44
|
-
#define __int3264 __int64
|
|
45
|
-
#else
|
|
46
|
-
typedef int INT_PTR,*PINT_PTR;
|
|
47
|
-
typedef unsigned int UINT_PTR,*PUINT_PTR;
|
|
48
|
-
typedef long LONG_PTR,*PLONG_PTR;
|
|
49
|
-
typedef unsigned long ULONG_PTR,*PULONG_PTR;
|
|
50
|
-
#define __int3264 __int32
|
|
51
|
-
#endif
|
|
52
|
-
|
|
53
|
-
#ifdef _WIN64
|
|
54
|
-
#define ADDRESS_TAG_BIT 0x40000000000ULL
|
|
55
|
-
typedef __int64 SHANDLE_PTR;
|
|
56
|
-
typedef unsigned __int64 HANDLE_PTR;
|
|
57
|
-
typedef unsigned int UHALF_PTR,*PUHALF_PTR;
|
|
58
|
-
typedef int HALF_PTR,*PHALF_PTR;
|
|
59
|
-
|
|
60
|
-
static __inline unsigned long HandleToULong(const void *h) { return((unsigned long) (ULONG_PTR) h); }
|
|
61
|
-
static __inline long HandleToLong(const void *h) { return((long) (LONG_PTR) h); }
|
|
62
|
-
static __inline void *ULongToHandle(const unsigned long h) { return((void *) (UINT_PTR) h); }
|
|
63
|
-
static __inline void *LongToHandle(const long h) { return((void *) (INT_PTR) h); }
|
|
64
|
-
static __inline unsigned long PtrToUlong(const void *p) { return((unsigned long) (ULONG_PTR) p); }
|
|
65
|
-
static __inline unsigned int PtrToUint(const void *p) { return((unsigned int) (UINT_PTR) p); }
|
|
66
|
-
static __inline unsigned short PtrToUshort(const void *p) { return((unsigned short) (unsigned long) (ULONG_PTR) p); }
|
|
67
|
-
static __inline long PtrToLong(const void *p) { return((long) (LONG_PTR) p); }
|
|
68
|
-
static __inline int PtrToInt(const void *p) { return((int) (INT_PTR) p); }
|
|
69
|
-
static __inline short PtrToShort(const void *p) { return((short) (long) (LONG_PTR) p); }
|
|
70
|
-
static __inline void *IntToPtr(const int i) { return((void *)(INT_PTR)i); }
|
|
71
|
-
static __inline void *UIntToPtr(const unsigned int ui) { return((void *)(UINT_PTR)ui); }
|
|
72
|
-
static __inline void *LongToPtr(const long l) { return((void *)(LONG_PTR)l); }
|
|
73
|
-
static __inline void *ULongToPtr(const unsigned long ul) { return((void *)(ULONG_PTR)ul); }
|
|
74
|
-
|
|
75
|
-
#define PtrToPtr64(p) ((void *) p)
|
|
76
|
-
#define Ptr64ToPtr(p) ((void *) p)
|
|
77
|
-
#define HandleToHandle64(h) (PtrToPtr64(h))
|
|
78
|
-
#define Handle64ToHandle(h) (Ptr64ToPtr(h))
|
|
79
|
-
|
|
80
|
-
static __inline void *Ptr32ToPtr(const void *p) { return (void *)p; }
|
|
81
|
-
static __inline void *Handle32ToHandle(const void *h) { return((void *) h); }
|
|
82
|
-
static __inline void *PtrToPtr32(const void *p) { return((void *) (ULONG_PTR) p); }
|
|
83
|
-
|
|
84
|
-
#define HandleToHandle32(h) (PtrToPtr32(h))
|
|
85
|
-
#else
|
|
86
|
-
|
|
87
|
-
#define ADDRESS_TAG_BIT 0x80000000UL
|
|
88
|
-
|
|
89
|
-
typedef unsigned short UHALF_PTR,*PUHALF_PTR;
|
|
90
|
-
typedef short HALF_PTR,*PHALF_PTR;
|
|
91
|
-
typedef long SHANDLE_PTR;
|
|
92
|
-
typedef unsigned long HANDLE_PTR;
|
|
93
|
-
|
|
94
|
-
#define HandleToULong(h) ((ULONG)(ULONG_PTR)(h))
|
|
95
|
-
#define HandleToLong(h) ((LONG)(LONG_PTR) (h))
|
|
96
|
-
#define ULongToHandle(ul) ((HANDLE)(ULONG_PTR) (ul))
|
|
97
|
-
#define LongToHandle(h) ((HANDLE)(LONG_PTR) (h))
|
|
98
|
-
#define PtrToUlong(p) ((ULONG)(ULONG_PTR) (p))
|
|
99
|
-
#define PtrToLong(p) ((LONG)(LONG_PTR) (p))
|
|
100
|
-
#define PtrToUint(p) ((UINT)(UINT_PTR) (p))
|
|
101
|
-
#define PtrToInt(p) ((INT)(INT_PTR) (p))
|
|
102
|
-
#define PtrToUshort(p) ((unsigned short)(ULONG_PTR)(p))
|
|
103
|
-
#define PtrToShort(p) ((short)(LONG_PTR)(p))
|
|
104
|
-
#define IntToPtr(i) ((VOID *)(INT_PTR)((int)i))
|
|
105
|
-
#define UIntToPtr(ui) ((VOID *)(UINT_PTR)((unsigned int)ui))
|
|
106
|
-
#define LongToPtr(l) ((VOID *)(LONG_PTR)((long)l))
|
|
107
|
-
#define ULongToPtr(ul) ((VOID *)(ULONG_PTR)((unsigned long)ul))
|
|
108
|
-
|
|
109
|
-
static __inline void *PtrToPtr64(const void *p) { return((void *) (ULONG_PTR)p); }
|
|
110
|
-
static __inline void *Ptr64ToPtr(const void *p) { return((void *) (ULONG_PTR) p); }
|
|
111
|
-
static __inline void *HandleToHandle64(const void *h) { return((void *) h); }
|
|
112
|
-
static __inline void *Handle64ToHandle(const void *h) { return((void *) (ULONG_PTR) h); }
|
|
113
|
-
|
|
114
|
-
#define Ptr32ToPtr(p) ((void *) p)
|
|
115
|
-
#define Handle32ToHandle(h) (Ptr32ToPtr(h))
|
|
116
|
-
#define PtrToPtr32(p) ((void *) p)
|
|
117
|
-
#define HandleToHandle32(h) (PtrToPtr32(h))
|
|
118
|
-
#endif
|
|
119
|
-
|
|
120
|
-
#define HandleToUlong(h) HandleToULong(h)
|
|
121
|
-
#define UlongToHandle(ul) ULongToHandle(ul)
|
|
122
|
-
#define UlongToPtr(ul) ULongToPtr(ul)
|
|
123
|
-
#define UintToPtr(ui) UIntToPtr(ui)
|
|
124
|
-
|
|
125
|
-
#define MAXUINT_PTR (~((UINT_PTR)0))
|
|
126
|
-
#define MAXINT_PTR ((INT_PTR)(MAXUINT_PTR >> 1))
|
|
127
|
-
#define MININT_PTR (~MAXINT_PTR)
|
|
128
|
-
|
|
129
|
-
#define MAXULONG_PTR (~((ULONG_PTR)0))
|
|
130
|
-
#define MAXLONG_PTR ((LONG_PTR)(MAXULONG_PTR >> 1))
|
|
131
|
-
#define MINLONG_PTR (~MAXLONG_PTR)
|
|
132
|
-
|
|
133
|
-
#define MAXUHALF_PTR ((UHALF_PTR)~0)
|
|
134
|
-
#define MAXHALF_PTR ((HALF_PTR)(MAXUHALF_PTR >> 1))
|
|
135
|
-
#define MINHALF_PTR (~MAXHALF_PTR)
|
|
136
|
-
|
|
137
|
-
typedef ULONG_PTR SIZE_T,*PSIZE_T;
|
|
138
|
-
typedef LONG_PTR SSIZE_T,*PSSIZE_T;
|
|
139
|
-
typedef ULONG_PTR DWORD_PTR,*PDWORD_PTR;
|
|
140
|
-
typedef __int64 LONG64,*PLONG64;
|
|
141
|
-
typedef unsigned __int64 ULONG64,*PULONG64;
|
|
142
|
-
typedef unsigned __int64 DWORD64,*PDWORD64;
|
|
143
|
-
typedef ULONG_PTR KAFFINITY;
|
|
144
|
-
typedef KAFFINITY *PKAFFINITY;
|
|
145
|
-
|
|
146
|
-
#ifdef __cplusplus
|
|
147
|
-
}
|
|
148
|
-
#endif
|
|
149
|
-
#endif
|
|
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 _BASETSD_H_
|
|
7
|
+
#define _BASETSD_H_
|
|
8
|
+
|
|
9
|
+
#if (defined(__x86_64) || defined(__ia64__)) && !defined(RC_INVOKED)
|
|
10
|
+
typedef unsigned __int64 POINTER_64_INT;
|
|
11
|
+
#else
|
|
12
|
+
typedef unsigned long POINTER_64_INT;
|
|
13
|
+
#endif
|
|
14
|
+
|
|
15
|
+
#define POINTER_32
|
|
16
|
+
#define POINTER_64
|
|
17
|
+
#define FIRMWARE_PTR
|
|
18
|
+
|
|
19
|
+
#ifdef __cplusplus
|
|
20
|
+
extern "C" {
|
|
21
|
+
#endif
|
|
22
|
+
|
|
23
|
+
typedef signed char INT8,*PINT8;
|
|
24
|
+
typedef signed short INT16,*PINT16;
|
|
25
|
+
typedef signed int INT32,*PINT32;
|
|
26
|
+
typedef signed __int64 INT64,*PINT64;
|
|
27
|
+
typedef unsigned char UINT8,*PUINT8;
|
|
28
|
+
typedef unsigned short UINT16,*PUINT16;
|
|
29
|
+
typedef unsigned int UINT32,*PUINT32;
|
|
30
|
+
typedef unsigned __int64 UINT64,*PUINT64;
|
|
31
|
+
typedef signed int LONG32,*PLONG32;
|
|
32
|
+
typedef unsigned int ULONG32,*PULONG32;
|
|
33
|
+
typedef unsigned int DWORD32,*PDWORD32;
|
|
34
|
+
|
|
35
|
+
#ifndef _W64
|
|
36
|
+
#define _W64
|
|
37
|
+
#endif
|
|
38
|
+
|
|
39
|
+
#ifdef _WIN64
|
|
40
|
+
typedef __int64 INT_PTR,*PINT_PTR;
|
|
41
|
+
typedef unsigned __int64 UINT_PTR,*PUINT_PTR;
|
|
42
|
+
typedef __int64 LONG_PTR,*PLONG_PTR;
|
|
43
|
+
typedef unsigned __int64 ULONG_PTR,*PULONG_PTR;
|
|
44
|
+
#define __int3264 __int64
|
|
45
|
+
#else
|
|
46
|
+
typedef int INT_PTR,*PINT_PTR;
|
|
47
|
+
typedef unsigned int UINT_PTR,*PUINT_PTR;
|
|
48
|
+
typedef long LONG_PTR,*PLONG_PTR;
|
|
49
|
+
typedef unsigned long ULONG_PTR,*PULONG_PTR;
|
|
50
|
+
#define __int3264 __int32
|
|
51
|
+
#endif
|
|
52
|
+
|
|
53
|
+
#ifdef _WIN64
|
|
54
|
+
#define ADDRESS_TAG_BIT 0x40000000000ULL
|
|
55
|
+
typedef __int64 SHANDLE_PTR;
|
|
56
|
+
typedef unsigned __int64 HANDLE_PTR;
|
|
57
|
+
typedef unsigned int UHALF_PTR,*PUHALF_PTR;
|
|
58
|
+
typedef int HALF_PTR,*PHALF_PTR;
|
|
59
|
+
|
|
60
|
+
static __inline unsigned long HandleToULong(const void *h) { return((unsigned long) (ULONG_PTR) h); }
|
|
61
|
+
static __inline long HandleToLong(const void *h) { return((long) (LONG_PTR) h); }
|
|
62
|
+
static __inline void *ULongToHandle(const unsigned long h) { return((void *) (UINT_PTR) h); }
|
|
63
|
+
static __inline void *LongToHandle(const long h) { return((void *) (INT_PTR) h); }
|
|
64
|
+
static __inline unsigned long PtrToUlong(const void *p) { return((unsigned long) (ULONG_PTR) p); }
|
|
65
|
+
static __inline unsigned int PtrToUint(const void *p) { return((unsigned int) (UINT_PTR) p); }
|
|
66
|
+
static __inline unsigned short PtrToUshort(const void *p) { return((unsigned short) (unsigned long) (ULONG_PTR) p); }
|
|
67
|
+
static __inline long PtrToLong(const void *p) { return((long) (LONG_PTR) p); }
|
|
68
|
+
static __inline int PtrToInt(const void *p) { return((int) (INT_PTR) p); }
|
|
69
|
+
static __inline short PtrToShort(const void *p) { return((short) (long) (LONG_PTR) p); }
|
|
70
|
+
static __inline void *IntToPtr(const int i) { return((void *)(INT_PTR)i); }
|
|
71
|
+
static __inline void *UIntToPtr(const unsigned int ui) { return((void *)(UINT_PTR)ui); }
|
|
72
|
+
static __inline void *LongToPtr(const long l) { return((void *)(LONG_PTR)l); }
|
|
73
|
+
static __inline void *ULongToPtr(const unsigned long ul) { return((void *)(ULONG_PTR)ul); }
|
|
74
|
+
|
|
75
|
+
#define PtrToPtr64(p) ((void *) p)
|
|
76
|
+
#define Ptr64ToPtr(p) ((void *) p)
|
|
77
|
+
#define HandleToHandle64(h) (PtrToPtr64(h))
|
|
78
|
+
#define Handle64ToHandle(h) (Ptr64ToPtr(h))
|
|
79
|
+
|
|
80
|
+
static __inline void *Ptr32ToPtr(const void *p) { return (void *)p; }
|
|
81
|
+
static __inline void *Handle32ToHandle(const void *h) { return((void *) h); }
|
|
82
|
+
static __inline void *PtrToPtr32(const void *p) { return((void *) (ULONG_PTR) p); }
|
|
83
|
+
|
|
84
|
+
#define HandleToHandle32(h) (PtrToPtr32(h))
|
|
85
|
+
#else
|
|
86
|
+
|
|
87
|
+
#define ADDRESS_TAG_BIT 0x80000000UL
|
|
88
|
+
|
|
89
|
+
typedef unsigned short UHALF_PTR,*PUHALF_PTR;
|
|
90
|
+
typedef short HALF_PTR,*PHALF_PTR;
|
|
91
|
+
typedef long SHANDLE_PTR;
|
|
92
|
+
typedef unsigned long HANDLE_PTR;
|
|
93
|
+
|
|
94
|
+
#define HandleToULong(h) ((ULONG)(ULONG_PTR)(h))
|
|
95
|
+
#define HandleToLong(h) ((LONG)(LONG_PTR) (h))
|
|
96
|
+
#define ULongToHandle(ul) ((HANDLE)(ULONG_PTR) (ul))
|
|
97
|
+
#define LongToHandle(h) ((HANDLE)(LONG_PTR) (h))
|
|
98
|
+
#define PtrToUlong(p) ((ULONG)(ULONG_PTR) (p))
|
|
99
|
+
#define PtrToLong(p) ((LONG)(LONG_PTR) (p))
|
|
100
|
+
#define PtrToUint(p) ((UINT)(UINT_PTR) (p))
|
|
101
|
+
#define PtrToInt(p) ((INT)(INT_PTR) (p))
|
|
102
|
+
#define PtrToUshort(p) ((unsigned short)(ULONG_PTR)(p))
|
|
103
|
+
#define PtrToShort(p) ((short)(LONG_PTR)(p))
|
|
104
|
+
#define IntToPtr(i) ((VOID *)(INT_PTR)((int)i))
|
|
105
|
+
#define UIntToPtr(ui) ((VOID *)(UINT_PTR)((unsigned int)ui))
|
|
106
|
+
#define LongToPtr(l) ((VOID *)(LONG_PTR)((long)l))
|
|
107
|
+
#define ULongToPtr(ul) ((VOID *)(ULONG_PTR)((unsigned long)ul))
|
|
108
|
+
|
|
109
|
+
static __inline void *PtrToPtr64(const void *p) { return((void *) (ULONG_PTR)p); }
|
|
110
|
+
static __inline void *Ptr64ToPtr(const void *p) { return((void *) (ULONG_PTR) p); }
|
|
111
|
+
static __inline void *HandleToHandle64(const void *h) { return((void *) h); }
|
|
112
|
+
static __inline void *Handle64ToHandle(const void *h) { return((void *) (ULONG_PTR) h); }
|
|
113
|
+
|
|
114
|
+
#define Ptr32ToPtr(p) ((void *) p)
|
|
115
|
+
#define Handle32ToHandle(h) (Ptr32ToPtr(h))
|
|
116
|
+
#define PtrToPtr32(p) ((void *) p)
|
|
117
|
+
#define HandleToHandle32(h) (PtrToPtr32(h))
|
|
118
|
+
#endif
|
|
119
|
+
|
|
120
|
+
#define HandleToUlong(h) HandleToULong(h)
|
|
121
|
+
#define UlongToHandle(ul) ULongToHandle(ul)
|
|
122
|
+
#define UlongToPtr(ul) ULongToPtr(ul)
|
|
123
|
+
#define UintToPtr(ui) UIntToPtr(ui)
|
|
124
|
+
|
|
125
|
+
#define MAXUINT_PTR (~((UINT_PTR)0))
|
|
126
|
+
#define MAXINT_PTR ((INT_PTR)(MAXUINT_PTR >> 1))
|
|
127
|
+
#define MININT_PTR (~MAXINT_PTR)
|
|
128
|
+
|
|
129
|
+
#define MAXULONG_PTR (~((ULONG_PTR)0))
|
|
130
|
+
#define MAXLONG_PTR ((LONG_PTR)(MAXULONG_PTR >> 1))
|
|
131
|
+
#define MINLONG_PTR (~MAXLONG_PTR)
|
|
132
|
+
|
|
133
|
+
#define MAXUHALF_PTR ((UHALF_PTR)~0)
|
|
134
|
+
#define MAXHALF_PTR ((HALF_PTR)(MAXUHALF_PTR >> 1))
|
|
135
|
+
#define MINHALF_PTR (~MAXHALF_PTR)
|
|
136
|
+
|
|
137
|
+
typedef ULONG_PTR SIZE_T,*PSIZE_T;
|
|
138
|
+
typedef LONG_PTR SSIZE_T,*PSSIZE_T;
|
|
139
|
+
typedef ULONG_PTR DWORD_PTR,*PDWORD_PTR;
|
|
140
|
+
typedef __int64 LONG64,*PLONG64;
|
|
141
|
+
typedef unsigned __int64 ULONG64,*PULONG64;
|
|
142
|
+
typedef unsigned __int64 DWORD64,*PDWORD64;
|
|
143
|
+
typedef ULONG_PTR KAFFINITY;
|
|
144
|
+
typedef KAFFINITY *PKAFFINITY;
|
|
145
|
+
|
|
146
|
+
#ifdef __cplusplus
|
|
147
|
+
}
|
|
148
|
+
#endif
|
|
149
|
+
#endif
|