triton-windows 3.3.0a0.post12__cp312-cp312-win_amd64.whl → 3.3.0a0.post14__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 +0 -12
- triton/backends/nvidia/compiler.py +3 -1
- triton/compiler/compiler.py +4 -4
- triton/runtime/build.py +29 -10
- triton/runtime/tcc/include/_mingw.h +170 -0
- triton/runtime/tcc/include/assert.h +57 -0
- triton/runtime/tcc/include/conio.h +409 -0
- triton/runtime/tcc/include/ctype.h +281 -0
- triton/runtime/tcc/include/dir.h +31 -0
- triton/runtime/tcc/include/direct.h +68 -0
- triton/runtime/tcc/include/dirent.h +135 -0
- triton/runtime/tcc/include/dos.h +55 -0
- triton/runtime/tcc/include/errno.h +75 -0
- triton/runtime/tcc/include/excpt.h +123 -0
- triton/runtime/tcc/include/fcntl.h +52 -0
- triton/runtime/tcc/include/fenv.h +108 -0
- triton/runtime/tcc/include/float.h +57 -0
- triton/runtime/tcc/include/inttypes.h +297 -0
- triton/runtime/tcc/include/io.h +418 -0
- triton/runtime/tcc/include/limits.h +111 -0
- triton/runtime/tcc/include/locale.h +91 -0
- triton/runtime/tcc/include/malloc.h +181 -0
- triton/runtime/tcc/include/math.h +737 -0
- triton/runtime/tcc/include/mem.h +13 -0
- triton/runtime/tcc/include/memory.h +40 -0
- triton/runtime/tcc/include/process.h +176 -0
- triton/runtime/tcc/include/sec_api/conio_s.h +42 -0
- triton/runtime/tcc/include/sec_api/crtdbg_s.h +19 -0
- triton/runtime/tcc/include/sec_api/io_s.h +33 -0
- triton/runtime/tcc/include/sec_api/mbstring_s.h +52 -0
- triton/runtime/tcc/include/sec_api/search_s.h +25 -0
- triton/runtime/tcc/include/sec_api/stdio_s.h +145 -0
- triton/runtime/tcc/include/sec_api/stdlib_s.h +67 -0
- triton/runtime/tcc/include/sec_api/stralign_s.h +30 -0
- triton/runtime/tcc/include/sec_api/string_s.h +41 -0
- triton/runtime/tcc/include/sec_api/sys/timeb_s.h +34 -0
- triton/runtime/tcc/include/sec_api/tchar_s.h +266 -0
- triton/runtime/tcc/include/sec_api/time_s.h +61 -0
- triton/runtime/tcc/include/sec_api/wchar_s.h +128 -0
- triton/runtime/tcc/include/setjmp.h +160 -0
- triton/runtime/tcc/include/share.h +28 -0
- triton/runtime/tcc/include/signal.h +63 -0
- triton/runtime/tcc/include/stdarg.h +79 -0
- triton/runtime/tcc/include/stdbool.h +11 -0
- triton/runtime/tcc/include/stddef.h +54 -0
- triton/runtime/tcc/include/stdint.h +212 -0
- triton/runtime/tcc/include/stdio.h +429 -0
- triton/runtime/tcc/include/stdlib.h +580 -0
- triton/runtime/tcc/include/string.h +164 -0
- triton/runtime/tcc/include/sys/fcntl.h +13 -0
- triton/runtime/tcc/include/sys/file.h +14 -0
- triton/runtime/tcc/include/sys/locking.h +30 -0
- triton/runtime/tcc/include/sys/stat.h +290 -0
- triton/runtime/tcc/include/sys/time.h +69 -0
- triton/runtime/tcc/include/sys/timeb.h +133 -0
- triton/runtime/tcc/include/sys/types.h +118 -0
- triton/runtime/tcc/include/sys/unistd.h +14 -0
- triton/runtime/tcc/include/sys/utime.h +146 -0
- triton/runtime/tcc/include/tcc/tcc_libm.h +201 -0
- triton/runtime/tcc/include/tcclib.h +80 -0
- triton/runtime/tcc/include/tchar.h +1102 -0
- triton/runtime/tcc/include/time.h +287 -0
- triton/runtime/tcc/include/vadefs.h +11 -0
- triton/runtime/tcc/include/values.h +4 -0
- triton/runtime/tcc/include/varargs.h +12 -0
- triton/runtime/tcc/include/wchar.h +873 -0
- triton/runtime/tcc/include/wctype.h +172 -0
- triton/runtime/tcc/include/winapi/basetsd.h +149 -0
- triton/runtime/tcc/include/winapi/basetyps.h +85 -0
- triton/runtime/tcc/include/winapi/guiddef.h +156 -0
- triton/runtime/tcc/include/winapi/poppack.h +8 -0
- triton/runtime/tcc/include/winapi/pshpack1.h +8 -0
- triton/runtime/tcc/include/winapi/pshpack2.h +8 -0
- triton/runtime/tcc/include/winapi/pshpack4.h +8 -0
- triton/runtime/tcc/include/winapi/pshpack8.h +8 -0
- triton/runtime/tcc/include/winapi/winbase.h +2951 -0
- triton/runtime/tcc/include/winapi/wincon.h +301 -0
- triton/runtime/tcc/include/winapi/windef.h +293 -0
- triton/runtime/tcc/include/winapi/windows.h +127 -0
- triton/runtime/tcc/include/winapi/winerror.h +3166 -0
- triton/runtime/tcc/include/winapi/wingdi.h +4080 -0
- triton/runtime/tcc/include/winapi/winnt.h +5835 -0
- triton/runtime/tcc/include/winapi/winreg.h +272 -0
- triton/runtime/tcc/include/winapi/winuser.h +5651 -0
- triton/runtime/tcc/include/winapi/winver.h +160 -0
- triton/runtime/tcc/lib/cuda.def +697 -0
- triton/runtime/tcc/lib/gdi32.def +337 -0
- triton/runtime/tcc/lib/kernel32.def +770 -0
- triton/runtime/tcc/lib/libtcc1-64.a +0 -0
- triton/runtime/tcc/lib/msvcrt.def +1399 -0
- triton/runtime/tcc/lib/python3.def +810 -0
- triton/runtime/tcc/lib/user32.def +658 -0
- triton/runtime/tcc/libtcc.dll +0 -0
- triton/runtime/tcc/tcc.exe +0 -0
- {triton_windows-3.3.0a0.post12.dist-info → triton_windows-3.3.0a0.post14.dist-info}/METADATA +1 -1
- {triton_windows-3.3.0a0.post12.dist-info → triton_windows-3.3.0a0.post14.dist-info}/RECORD +99 -9
- {triton_windows-3.3.0a0.post12.dist-info → triton_windows-3.3.0a0.post14.dist-info}/WHEEL +0 -0
- {triton_windows-3.3.0a0.post12.dist-info → triton_windows-3.3.0a0.post14.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
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_STRING_S
|
|
7
|
+
#define _INC_STRING_S
|
|
8
|
+
|
|
9
|
+
#include <string.h>
|
|
10
|
+
|
|
11
|
+
#if defined(MINGW_HAS_SECURE_API)
|
|
12
|
+
|
|
13
|
+
#ifdef __cplusplus
|
|
14
|
+
extern "C" {
|
|
15
|
+
#endif
|
|
16
|
+
|
|
17
|
+
_CRTIMP errno_t __cdecl _strset_s(char *_Dst,size_t _DstSize,int _Value);
|
|
18
|
+
_CRTIMP errno_t __cdecl _strerror_s(char *_Buf,size_t _SizeInBytes,const char *_ErrMsg);
|
|
19
|
+
_CRTIMP errno_t __cdecl _strlwr_s(char *_Str,size_t _Size);
|
|
20
|
+
_CRTIMP errno_t __cdecl _strlwr_s_l(char *_Str,size_t _Size,_locale_t _Locale);
|
|
21
|
+
_CRTIMP errno_t __cdecl _strnset_s(char *_Str,size_t _Size,int _Val,size_t _MaxCount);
|
|
22
|
+
_CRTIMP errno_t __cdecl _strupr_s(char *_Str,size_t _Size);
|
|
23
|
+
_CRTIMP errno_t __cdecl _strupr_s_l(char *_Str,size_t _Size,_locale_t _Locale);
|
|
24
|
+
#ifndef _WSTRING_S_DEFINED
|
|
25
|
+
#define _WSTRING_S_DEFINED
|
|
26
|
+
_CRTIMP wchar_t *__cdecl wcstok_s(wchar_t *_Str,const wchar_t *_Delim,wchar_t **_Context);
|
|
27
|
+
_CRTIMP errno_t __cdecl _wcserror_s(wchar_t *_Buf,size_t _SizeInWords,int _ErrNum);
|
|
28
|
+
_CRTIMP errno_t __cdecl __wcserror_s(wchar_t *_Buffer,size_t _SizeInWords,const wchar_t *_ErrMsg);
|
|
29
|
+
_CRTIMP errno_t __cdecl _wcsnset_s(wchar_t *_Dst,size_t _DstSizeInWords,wchar_t _Val,size_t _MaxCount);
|
|
30
|
+
_CRTIMP errno_t __cdecl _wcsset_s(wchar_t *_Str,size_t _SizeInWords,wchar_t _Val);
|
|
31
|
+
_CRTIMP errno_t __cdecl _wcslwr_s(wchar_t *_Str,size_t _SizeInWords);
|
|
32
|
+
_CRTIMP errno_t __cdecl _wcslwr_s_l(wchar_t *_Str,size_t _SizeInWords,_locale_t _Locale);
|
|
33
|
+
_CRTIMP errno_t __cdecl _wcsupr_s(wchar_t *_Str,size_t _Size);
|
|
34
|
+
_CRTIMP errno_t __cdecl _wcsupr_s_l(wchar_t *_Str,size_t _Size,_locale_t _Locale);
|
|
35
|
+
#endif
|
|
36
|
+
|
|
37
|
+
#ifdef __cplusplus
|
|
38
|
+
}
|
|
39
|
+
#endif
|
|
40
|
+
#endif
|
|
41
|
+
#endif
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
#ifndef _TIMEB_H_S
|
|
8
|
+
#define _TIMEB_H_S
|
|
9
|
+
|
|
10
|
+
#include <sys/timeb.h>
|
|
11
|
+
|
|
12
|
+
#ifdef __cplusplus
|
|
13
|
+
extern "C" {
|
|
14
|
+
#endif
|
|
15
|
+
|
|
16
|
+
#if defined(MINGW_HAS_SECURE_API)
|
|
17
|
+
|
|
18
|
+
#ifdef _USE_32BIT_TIME_T
|
|
19
|
+
#define _ftime_s _ftime32_s
|
|
20
|
+
#else
|
|
21
|
+
#define _ftime_s _ftime64_s
|
|
22
|
+
#endif
|
|
23
|
+
|
|
24
|
+
_CRTIMP errno_t __cdecl _ftime32_s(struct __timeb32 *_Time);
|
|
25
|
+
#if _INTEGRAL_MAX_BITS >= 64
|
|
26
|
+
_CRTIMP errno_t __cdecl _ftime64_s(struct __timeb64 *_Time);
|
|
27
|
+
#endif
|
|
28
|
+
#endif
|
|
29
|
+
|
|
30
|
+
#ifdef __cplusplus
|
|
31
|
+
}
|
|
32
|
+
#endif
|
|
33
|
+
|
|
34
|
+
#endif
|
|
@@ -0,0 +1,266 @@
|
|
|
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_TCHAR_S
|
|
7
|
+
#define _INC_TCHAR_S
|
|
8
|
+
|
|
9
|
+
#include <tchar.h>
|
|
10
|
+
|
|
11
|
+
#if defined(MINGW_HAS_SECURE_API)
|
|
12
|
+
|
|
13
|
+
#ifdef __cplusplus
|
|
14
|
+
extern "C" {
|
|
15
|
+
#endif
|
|
16
|
+
|
|
17
|
+
#ifdef _UNICODE
|
|
18
|
+
|
|
19
|
+
#define _tprintf_s wprintf_s
|
|
20
|
+
#define _tprintf_s_l _wprintf_s_l
|
|
21
|
+
#define _tcprintf_s _cwprintf_s
|
|
22
|
+
#define _tcprintf_s_l _cwprintf_s_l
|
|
23
|
+
#define _vtcprintf_s _vcwprintf_s
|
|
24
|
+
#define _vtcprintf_s_l _vcwprintf_s_l
|
|
25
|
+
#define _ftprintf_s fwprintf_s
|
|
26
|
+
#define _ftprintf_s_l _fwprintf_s_l
|
|
27
|
+
#define _stprintf_s swprintf_s
|
|
28
|
+
#define _stprintf_s_l _swprintf_s_l
|
|
29
|
+
#define _sntprintf_s _snwprintf_s
|
|
30
|
+
#define _sntprintf_s_l _snwprintf_s_l
|
|
31
|
+
#define _vtprintf_s vwprintf_s
|
|
32
|
+
#define _vtprintf_s_l _vwprintf_s_l
|
|
33
|
+
#define _vftprintf_s vfwprintf_s
|
|
34
|
+
#define _vftprintf_s_l _vfwprintf_s_l
|
|
35
|
+
#define _vstprintf_s vswprintf_s
|
|
36
|
+
#define _vstprintf_s_l _vswprintf_s_l
|
|
37
|
+
#define _vsntprintf_s _vsnwprintf_s
|
|
38
|
+
#define _vsntprintf_s_l _vsnwprintf_s_l
|
|
39
|
+
|
|
40
|
+
#define _tscanf_s wscanf_s
|
|
41
|
+
#define _tscanf_s_l _wscanf_s_l
|
|
42
|
+
#define _tcscanf_s _cwscanf_s
|
|
43
|
+
#define _tcscanf_s_l _cwscanf_s_l
|
|
44
|
+
#define _ftscanf_s fwscanf_s
|
|
45
|
+
#define _ftscanf_s_l _fwscanf_s_l
|
|
46
|
+
#define _stscanf_s swscanf_s
|
|
47
|
+
#define _stscanf_s_l _swscanf_s_l
|
|
48
|
+
#define _sntscanf_s _snwscanf_s
|
|
49
|
+
#define _sntscanf_s_l _snwscanf_s_l
|
|
50
|
+
|
|
51
|
+
#define _cgetts_s _cgetws_s
|
|
52
|
+
#define _getts_s _getws_s
|
|
53
|
+
|
|
54
|
+
#define _itot_s _itow_s
|
|
55
|
+
#define _ltot_s _ltow_s
|
|
56
|
+
#define _ultot_s _ultow_s
|
|
57
|
+
#define _i64tot_s _i64tow_s
|
|
58
|
+
#define _ui64tot_s _ui64tow_s
|
|
59
|
+
|
|
60
|
+
#define _tcscat_s wcscat_s
|
|
61
|
+
#define _tcscpy_s wcscpy_s
|
|
62
|
+
#define _tcsncat_s wcsncat_s
|
|
63
|
+
#define _tcsncat_s_l _wcsncat_s_l
|
|
64
|
+
#define _tcsncpy_s wcsncpy_s
|
|
65
|
+
#define _tcsncpy_s_l _wcsncpy_s_l
|
|
66
|
+
#define _tcstok_s wcstok_s
|
|
67
|
+
#define _tcstok_s_l _wcstok_s_l
|
|
68
|
+
#define _tcserror_s _wcserror_s
|
|
69
|
+
#define __tcserror_s __wcserror_s
|
|
70
|
+
|
|
71
|
+
#define _tcsnset_s _wcsnset_s
|
|
72
|
+
#define _tcsnset_s_l _wcsnset_s_l
|
|
73
|
+
#define _tcsset_s _wcsset_s
|
|
74
|
+
#define _tcsset_s_l _wcsset_s_l
|
|
75
|
+
|
|
76
|
+
#define _tasctime_s _wasctime_s
|
|
77
|
+
#define _tctime_s _wctime_s
|
|
78
|
+
#define _tctime32_s _wctime32_s
|
|
79
|
+
#define _tctime64_s _wctime64_s
|
|
80
|
+
#define _tstrdate_s _wstrdate_s
|
|
81
|
+
#define _tstrtime_s _wstrtime_s
|
|
82
|
+
|
|
83
|
+
#define _tgetenv_s _wgetenv_s
|
|
84
|
+
#define _tdupenv_s _wdupenv_s
|
|
85
|
+
#define _tmakepath_s _wmakepath_s
|
|
86
|
+
#define _tputenv_s _wputenv_s
|
|
87
|
+
#define _tsearchenv_s _wsearchenv_s
|
|
88
|
+
#define _tsplitpath_s _wsplitpath_s
|
|
89
|
+
|
|
90
|
+
#define _tfopen_s _wfopen_s
|
|
91
|
+
#define _tfreopen_s _wfreopen_s
|
|
92
|
+
#define _ttmpnam_s _wtmpnam_s
|
|
93
|
+
#define _taccess_s _waccess_s
|
|
94
|
+
#define _tmktemp_s _wmktemp_s
|
|
95
|
+
|
|
96
|
+
#define _tcsnccat_s wcsncat_s
|
|
97
|
+
#define _tcsnccat_s_l _wcsncat_s_l
|
|
98
|
+
#define _tcsnccpy_s wcsncpy_s
|
|
99
|
+
#define _tcsnccpy_s_l _wcsncpy_s_l
|
|
100
|
+
|
|
101
|
+
#define _tcslwr_s _wcslwr_s
|
|
102
|
+
#define _tcslwr_s_l _wcslwr_s_l
|
|
103
|
+
#define _tcsupr_s _wcsupr_s
|
|
104
|
+
#define _tcsupr_s_l _wcsupr_s_l
|
|
105
|
+
|
|
106
|
+
#define _wcstok_s_l(_String,_Delimiters,_Current_position,_Locale) (wcstok_s(_String,_Delimiters,_Current_position))
|
|
107
|
+
#define _wcsnset_s_l(_Destination,_Destination_size_chars,_Value,_Count,_Locale) (_wcsnset_s(_Destination,_Destination_size_chars,_Value,_Count))
|
|
108
|
+
#define _wcsset_s_l(_Destination,_Destination_size_chars,_Value,_Locale) (_wcsset_s(_Destination,_Destination_size_chars,_Value))
|
|
109
|
+
|
|
110
|
+
#else
|
|
111
|
+
|
|
112
|
+
#define _tprintf_s printf_s
|
|
113
|
+
#define _tprintf_s_l _printf_s_l
|
|
114
|
+
#define _tcprintf_s _cprintf_s
|
|
115
|
+
#define _tcprintf_s_l _cprintf_s_l
|
|
116
|
+
#define _vtcprintf_s _vcprintf_s
|
|
117
|
+
#define _vtcprintf_s_l _vcprintf_s_l
|
|
118
|
+
#define _ftprintf_s fprintf_s
|
|
119
|
+
#define _ftprintf_s_l _fprintf_s_l
|
|
120
|
+
#define _stprintf_s sprintf_s
|
|
121
|
+
#define _stprintf_s_l _sprintf_s_l
|
|
122
|
+
#define _sntprintf_s _snprintf_s
|
|
123
|
+
#define _sntprintf_s_l _snprintf_s_l
|
|
124
|
+
#define _vtprintf_s vprintf_s
|
|
125
|
+
#define _vtprintf_s_l _vprintf_s_l
|
|
126
|
+
#define _vftprintf_s vfprintf_s
|
|
127
|
+
#define _vftprintf_s_l _vfprintf_s_l
|
|
128
|
+
#define _vstprintf_s vsprintf_s
|
|
129
|
+
#define _vstprintf_s_l _vsprintf_s_l
|
|
130
|
+
#define _vsntprintf_s _vsnprintf_s
|
|
131
|
+
#define _vsntprintf_s_l _vsnprintf_s_l
|
|
132
|
+
#define _tscanf_s scanf_s
|
|
133
|
+
#define _tscanf_s_l _scanf_s_l
|
|
134
|
+
#define _tcscanf_s _cscanf_s
|
|
135
|
+
#define _tcscanf_s_l _cscanf_s_l
|
|
136
|
+
#define _ftscanf_s fscanf_s
|
|
137
|
+
#define _ftscanf_s_l _fscanf_s_l
|
|
138
|
+
#define _stscanf_s sscanf_s
|
|
139
|
+
#define _stscanf_s_l _sscanf_s_l
|
|
140
|
+
#define _sntscanf_s _snscanf_s
|
|
141
|
+
#define _sntscanf_s_l _snscanf_s_l
|
|
142
|
+
|
|
143
|
+
#define _getts_s gets_s
|
|
144
|
+
#define _cgetts_s _cgets_s
|
|
145
|
+
#define _itot_s _itoa_s
|
|
146
|
+
#define _ltot_s _ltoa_s
|
|
147
|
+
#define _ultot_s _ultoa_s
|
|
148
|
+
#define _i64tot_s _i64toa_s
|
|
149
|
+
#define _ui64tot_s _ui64toa_s
|
|
150
|
+
|
|
151
|
+
#define _tcscat_s strcat_s
|
|
152
|
+
#define _tcscpy_s strcpy_s
|
|
153
|
+
#define _tcserror_s strerror_s
|
|
154
|
+
#define __tcserror_s _strerror_s
|
|
155
|
+
|
|
156
|
+
#define _tasctime_s asctime_s
|
|
157
|
+
#define _tctime_s ctime_s
|
|
158
|
+
#define _tctime32_s _ctime32_s
|
|
159
|
+
#define _tctime64_s _ctime64_s
|
|
160
|
+
#define _tstrdate_s _strdate_s
|
|
161
|
+
#define _tstrtime_s _strtime_s
|
|
162
|
+
|
|
163
|
+
#define _tgetenv_s getenv_s
|
|
164
|
+
#define _tdupenv_s _dupenv_s
|
|
165
|
+
#define _tmakepath_s _makepath_s
|
|
166
|
+
#define _tputenv_s _putenv_s
|
|
167
|
+
#define _tsearchenv_s _searchenv_s
|
|
168
|
+
#define _tsplitpath_s _splitpath_s
|
|
169
|
+
|
|
170
|
+
#define _tfopen_s fopen_s
|
|
171
|
+
#define _tfreopen_s freopen_s
|
|
172
|
+
#define _ttmpnam_s tmpnam_s
|
|
173
|
+
#define _tmktemp_s _mktemp_s
|
|
174
|
+
|
|
175
|
+
#ifndef _POSIX_
|
|
176
|
+
#define _taccess_s _access_s
|
|
177
|
+
#endif
|
|
178
|
+
|
|
179
|
+
#define _tsopen_s _sopen_s
|
|
180
|
+
|
|
181
|
+
#ifdef _MBCS
|
|
182
|
+
|
|
183
|
+
#ifdef _MB_MAP_DIRECT
|
|
184
|
+
|
|
185
|
+
#define _tcsncat_s _mbsnbcat_s
|
|
186
|
+
#define _tcsncat_s_l _mbsnbcat_s_l
|
|
187
|
+
#define _tcsncpy_s _mbsnbcpy_s
|
|
188
|
+
#define _tcsncpy_s_l _mbsnbcpy_s_l
|
|
189
|
+
#define _tcstok_s _mbstok_s
|
|
190
|
+
#define _tcstok_s_l _mbstok_s_l
|
|
191
|
+
|
|
192
|
+
#define _tcsnset_s _mbsnbset_s
|
|
193
|
+
#define _tcsnset_s_l _mbsnbset_s_l
|
|
194
|
+
#define _tcsset_s _mbsset_s
|
|
195
|
+
#define _tcsset_s_l _mbsset_s_l
|
|
196
|
+
|
|
197
|
+
#define _tcsnccat_s _mbsncat_s
|
|
198
|
+
#define _tcsnccat_s_l _mbsncat_s_l
|
|
199
|
+
#define _tcsnccpy_s _mbsncpy_s
|
|
200
|
+
#define _tcsnccpy_s_l _mbsncpy_s_l
|
|
201
|
+
#define _tcsncset_s _mbsnset_s
|
|
202
|
+
#define _tcsncset_s_l _mbsnset_s_l
|
|
203
|
+
|
|
204
|
+
#define _tcslwr_s _mbslwr_s
|
|
205
|
+
#define _tcslwr_s_l _mbslwr_s_l
|
|
206
|
+
#define _tcsupr_s _mbsupr_s
|
|
207
|
+
#define _tcsupr_s_l _mbsupr_s_l
|
|
208
|
+
|
|
209
|
+
#define _tccpy_s _mbccpy_s
|
|
210
|
+
#define _tccpy_s_l _mbccpy_s_l
|
|
211
|
+
#else
|
|
212
|
+
|
|
213
|
+
_CRTIMP char *__cdecl _tcsncat_s(char *_Dst,size_t _DstSizeInChars,const char *_Src,size_t _MaxCount);
|
|
214
|
+
_CRTIMP char *__cdecl _tcsncat_s_l(char *_Dst,size_t _DstSizeInChars,const char *_Src,size_t _MaxCount,_locale_t _Locale);
|
|
215
|
+
_CRTIMP char *__cdecl _tcsncpy_s(char *_Dst,size_t _DstSizeInChars,const char *_Src,size_t _MaxCount);
|
|
216
|
+
_CRTIMP char *__cdecl _tcsncpy_s_l(char *_Dst,size_t _DstSizeInChars,const char *_Src,size_t _MaxCount,_locale_t _Locale);
|
|
217
|
+
_CRTIMP char *__cdecl _tcstok_s(char *_Str,const char *_Delim,char **_Context);
|
|
218
|
+
_CRTIMP char *__cdecl _tcstok_s_l(char *_Str,const char *_Delim,char **_Context,_locale_t _Locale);
|
|
219
|
+
_CRTIMP errno_t __cdecl _tcsset_s(char *_Str,size_t _SizeInChars,unsigned int _Val);
|
|
220
|
+
_CRTIMP errno_t __cdecl _tcsset_s_l(char *_Str,size_t _SizeInChars,unsigned int,_locale_t _Locale);
|
|
221
|
+
_CRTIMP char *__cdecl _tcsnccat_s(char *_Dst,size_t _DstSizeInChars,const char *_Src,size_t _MaxCount);
|
|
222
|
+
_CRTIMP char *__cdecl _tcsnccat_s_l(char *_Dst,size_t _DstSizeInChars,const char *_Src,size_t _MaxCount,_locale_t _Locale);
|
|
223
|
+
_CRTIMP char *__cdecl _tcsnccpy_s(char *_Dst,size_t _DstSizeInChars,const char *_Src,size_t _MaxCount);
|
|
224
|
+
_CRTIMP char *__cdecl _tcsnccpy_s_l(char *_Dst,size_t _DstSizeInChars,const char *_Src,size_t _MaxCount,_locale_t _Locale);
|
|
225
|
+
_CRTIMP char *__cdecl _tcslwr_s(char *_Str,size_t _SizeInChars);
|
|
226
|
+
_CRTIMP char *__cdecl _tcslwr_s_l(char *_Str,size_t _SizeInChars,_locale_t _Locale);
|
|
227
|
+
_CRTIMP char *__cdecl _tcsupr_s(char *_Str,size_t _SizeInChars);
|
|
228
|
+
_CRTIMP char *__cdecl _tcsupr_s_l(char *_Str,size_t _SizeInChars,_locale_t _Locale);
|
|
229
|
+
|
|
230
|
+
#endif
|
|
231
|
+
|
|
232
|
+
#else
|
|
233
|
+
|
|
234
|
+
#define _tcsncat_s strncat_s
|
|
235
|
+
#define _tcsncat_s_l _strncat_s_l
|
|
236
|
+
#define _tcsncpy_s strncpy_s
|
|
237
|
+
#define _tcsncpy_s_l _strncpy_s_l
|
|
238
|
+
#define _tcstok_s strtok_s
|
|
239
|
+
#define _tcstok_s_l _strtok_s_l
|
|
240
|
+
|
|
241
|
+
#define _tcsnset_s _strnset_s
|
|
242
|
+
#define _tcsnset_s_l _strnset_s_l
|
|
243
|
+
#define _tcsset_s _strset_s
|
|
244
|
+
#define _tcsset_s _strset_s
|
|
245
|
+
#define _tcsset_s_l _strset_s_l
|
|
246
|
+
|
|
247
|
+
#define _tcsnccat_s strncat_s
|
|
248
|
+
#define _tcsnccat_s_l _strncat_s_l
|
|
249
|
+
#define _tcsnccpy_s strncpy_s
|
|
250
|
+
#define _tcsnccpy_s_l _strncpy_s_l
|
|
251
|
+
|
|
252
|
+
#define _tcslwr_s _strlwr_s
|
|
253
|
+
#define _tcslwr_s_l _strlwr_s_l
|
|
254
|
+
#define _tcsupr_s _strupr_s
|
|
255
|
+
#define _tcsupr_s_l _strupr_s_l
|
|
256
|
+
|
|
257
|
+
#define _strnset_s_l(_Destination,_Destination_size_chars,_Value,_Count,_Locale) (_strnset_s(_Destination,_Destination_size_chars,_Value,_Count))
|
|
258
|
+
#define _strset_s_l(_Destination,_Destination_size_chars,_Value,_Locale) (_strset_s(_Destination,_Destination_size_chars,_Value))
|
|
259
|
+
#endif
|
|
260
|
+
#endif
|
|
261
|
+
|
|
262
|
+
#ifdef __cplusplus
|
|
263
|
+
}
|
|
264
|
+
#endif
|
|
265
|
+
#endif
|
|
266
|
+
#endif
|
|
@@ -0,0 +1,61 @@
|
|
|
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 _TIME_H__S
|
|
7
|
+
#define _TIME_H__S
|
|
8
|
+
|
|
9
|
+
#include <time.h>
|
|
10
|
+
|
|
11
|
+
#if defined(MINGW_HAS_SECURE_API)
|
|
12
|
+
|
|
13
|
+
#ifdef __cplusplus
|
|
14
|
+
extern "C" {
|
|
15
|
+
#endif
|
|
16
|
+
|
|
17
|
+
_CRTIMP errno_t __cdecl _ctime32_s(char *_Buf,size_t _SizeInBytes,const __time32_t *_Time);
|
|
18
|
+
_CRTIMP errno_t __cdecl _gmtime32_s(struct tm *_Tm,const __time32_t *_Time);
|
|
19
|
+
_CRTIMP errno_t __cdecl _localtime32_s(struct tm *_Tm,const __time32_t *_Time);
|
|
20
|
+
_CRTIMP errno_t __cdecl _strdate_s(char *_Buf,size_t _SizeInBytes);
|
|
21
|
+
_CRTIMP errno_t __cdecl _strtime_s(char *_Buf ,size_t _SizeInBytes);
|
|
22
|
+
#if _INTEGRAL_MAX_BITS >= 64
|
|
23
|
+
_CRTIMP errno_t __cdecl _ctime64_s(char *_Buf,size_t _SizeInBytes,const __time64_t *_Time);
|
|
24
|
+
_CRTIMP errno_t __cdecl _gmtime64_s(struct tm *_Tm,const __time64_t *_Time);
|
|
25
|
+
_CRTIMP errno_t __cdecl _localtime64_s(struct tm *_Tm,const __time64_t *_Time);
|
|
26
|
+
#endif
|
|
27
|
+
|
|
28
|
+
#ifndef _WTIME_S_DEFINED
|
|
29
|
+
#define _WTIME_S_DEFINED
|
|
30
|
+
_CRTIMP errno_t __cdecl _wasctime_s(wchar_t *_Buf,size_t _SizeInWords,const struct tm *_Tm);
|
|
31
|
+
_CRTIMP errno_t __cdecl _wctime32_s(wchar_t *_Buf,size_t _SizeInWords,const __time32_t *_Time);
|
|
32
|
+
_CRTIMP errno_t __cdecl _wstrdate_s(wchar_t *_Buf,size_t _SizeInWords);
|
|
33
|
+
_CRTIMP errno_t __cdecl _wstrtime_s(wchar_t *_Buf,size_t _SizeInWords);
|
|
34
|
+
#if _INTEGRAL_MAX_BITS >= 64
|
|
35
|
+
_CRTIMP errno_t __cdecl _wctime64_s(wchar_t *_Buf,size_t _SizeInWords,const __time64_t *_Time);
|
|
36
|
+
#endif
|
|
37
|
+
|
|
38
|
+
#if !defined (RC_INVOKED) && !defined (_INC_WTIME_S_INL)
|
|
39
|
+
#define _INC_WTIME_S_INL
|
|
40
|
+
#ifdef _USE_32BIT_TIME_T
|
|
41
|
+
__CRT_INLINE errno_t __cdecl _wctime_s(wchar_t *_Buffer,size_t _SizeInWords,const time_t *_Time) { return _wctime32_s(_Buffer,_SizeInWords,_Time); }
|
|
42
|
+
#else
|
|
43
|
+
__CRT_INLINE errno_t __cdecl _wctime_s(wchar_t *_Buffer,size_t _SizeInWords,const time_t *_Time) { return _wctime64_s(_Buffer,_SizeInWords,_Time); }
|
|
44
|
+
#endif
|
|
45
|
+
#endif
|
|
46
|
+
#endif
|
|
47
|
+
|
|
48
|
+
#ifndef RC_INVOKED
|
|
49
|
+
#ifdef _USE_32BIT_TIME_T
|
|
50
|
+
__CRT_INLINE errno_t __cdecl localtime_s(struct tm *_Tm,const time_t *_Time) { return _localtime32_s(_Tm,_Time); }
|
|
51
|
+
#else
|
|
52
|
+
__CRT_INLINE errno_t __cdecl localtime_s(struct tm *_Tm,const time_t *_Time) { return _localtime64_s(_Tm,_Time); }
|
|
53
|
+
#endif
|
|
54
|
+
#endif
|
|
55
|
+
|
|
56
|
+
#ifdef __cplusplus
|
|
57
|
+
}
|
|
58
|
+
#endif
|
|
59
|
+
|
|
60
|
+
#endif
|
|
61
|
+
#endif
|
|
@@ -0,0 +1,128 @@
|
|
|
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_WCHAR_S
|
|
7
|
+
#define _INC_WCHAR_S
|
|
8
|
+
|
|
9
|
+
#include <wchar.h>
|
|
10
|
+
|
|
11
|
+
#if defined(MINGW_HAS_SECURE_API)
|
|
12
|
+
|
|
13
|
+
#ifdef __cplusplus
|
|
14
|
+
extern "C" {
|
|
15
|
+
#endif
|
|
16
|
+
|
|
17
|
+
#ifndef _WIO_S_DEFINED
|
|
18
|
+
#define _WIO_S_DEFINED
|
|
19
|
+
_CRTIMP errno_t __cdecl _waccess_s(const wchar_t *_Filename,int _AccessMode);
|
|
20
|
+
_CRTIMP errno_t __cdecl _wmktemp_s(wchar_t *_TemplateName,size_t _SizeInWords);
|
|
21
|
+
#endif
|
|
22
|
+
|
|
23
|
+
#ifndef _WCONIO_S_DEFINED
|
|
24
|
+
#define _WCONIO_S_DEFINED
|
|
25
|
+
_CRTIMP errno_t __cdecl _cgetws_s(wchar_t *_Buffer,size_t _SizeInWords,size_t *_SizeRead);
|
|
26
|
+
_CRTIMP int __cdecl _cwprintf_s(const wchar_t *_Format,...);
|
|
27
|
+
_CRTIMP int __cdecl _cwscanf_s(const wchar_t *_Format,...);
|
|
28
|
+
_CRTIMP int __cdecl _cwscanf_s_l(const wchar_t *_Format,_locale_t _Locale,...);
|
|
29
|
+
_CRTIMP int __cdecl _vcwprintf_s(const wchar_t *_Format,va_list _ArgList);
|
|
30
|
+
_CRTIMP int __cdecl _cwprintf_s_l(const wchar_t *_Format,_locale_t _Locale,...);
|
|
31
|
+
_CRTIMP int __cdecl _vcwprintf_s_l(const wchar_t *_Format,_locale_t _Locale,va_list _ArgList);
|
|
32
|
+
#endif
|
|
33
|
+
|
|
34
|
+
#ifndef _WSTDIO_S_DEFINED
|
|
35
|
+
#define _WSTDIO_S_DEFINED
|
|
36
|
+
_CRTIMP wchar_t *__cdecl _getws_s(wchar_t *_Str,size_t _SizeInWords);
|
|
37
|
+
int __cdecl fwprintf_s(FILE *_File,const wchar_t *_Format,...);
|
|
38
|
+
int __cdecl wprintf_s(const wchar_t *_Format,...);
|
|
39
|
+
int __cdecl vfwprintf_s(FILE *_File,const wchar_t *_Format,va_list _ArgList);
|
|
40
|
+
int __cdecl vwprintf_s(const wchar_t *_Format,va_list _ArgList);
|
|
41
|
+
int __cdecl swprintf_s(wchar_t *_Dst,size_t _SizeInWords,const wchar_t *_Format,...);
|
|
42
|
+
int __cdecl vswprintf_s(wchar_t *_Dst,size_t _SizeInWords,const wchar_t *_Format,va_list _ArgList);
|
|
43
|
+
_CRTIMP int __cdecl _snwprintf_s(wchar_t *_DstBuf,size_t _DstSizeInWords,size_t _MaxCount,const wchar_t *_Format,...);
|
|
44
|
+
_CRTIMP int __cdecl _vsnwprintf_s(wchar_t *_DstBuf,size_t _DstSizeInWords,size_t _MaxCount,const wchar_t *_Format,va_list _ArgList);
|
|
45
|
+
_CRTIMP int __cdecl _wprintf_s_l(const wchar_t *_Format,_locale_t _Locale,...);
|
|
46
|
+
_CRTIMP int __cdecl _vwprintf_s_l(const wchar_t *_Format,_locale_t _Locale,va_list _ArgList);
|
|
47
|
+
_CRTIMP int __cdecl _fwprintf_s_l(FILE *_File,const wchar_t *_Format,_locale_t _Locale,...);
|
|
48
|
+
_CRTIMP int __cdecl _vfwprintf_s_l(FILE *_File,const wchar_t *_Format,_locale_t _Locale,va_list _ArgList);
|
|
49
|
+
_CRTIMP int __cdecl _swprintf_s_l(wchar_t *_DstBuf,size_t _DstSize,const wchar_t *_Format,_locale_t _Locale,...);
|
|
50
|
+
_CRTIMP int __cdecl _vswprintf_s_l(wchar_t *_DstBuf,size_t _DstSize,const wchar_t *_Format,_locale_t _Locale,va_list _ArgList);
|
|
51
|
+
_CRTIMP int __cdecl _snwprintf_s_l(wchar_t *_DstBuf,size_t _DstSize,size_t _MaxCount,const wchar_t *_Format,_locale_t _Locale,...);
|
|
52
|
+
_CRTIMP int __cdecl _vsnwprintf_s_l(wchar_t *_DstBuf,size_t _DstSize,size_t _MaxCount,const wchar_t *_Format,_locale_t _Locale,va_list _ArgList);
|
|
53
|
+
_CRTIMP int __cdecl _fwscanf_s_l(FILE *_File,const wchar_t *_Format,_locale_t _Locale,...);
|
|
54
|
+
_CRTIMP int __cdecl _swscanf_s_l(const wchar_t *_Src,const wchar_t *_Format,_locale_t _Locale,...);
|
|
55
|
+
_CRTIMP int __cdecl _snwscanf_s(const wchar_t *_Src,size_t _MaxCount,const wchar_t *_Format,...);
|
|
56
|
+
_CRTIMP int __cdecl _snwscanf_s_l(const wchar_t *_Src,size_t _MaxCount,const wchar_t *_Format,_locale_t _Locale,...);
|
|
57
|
+
_CRTIMP int __cdecl _wscanf_s_l(const wchar_t *_Format,_locale_t _Locale,...);
|
|
58
|
+
_CRTIMP errno_t __cdecl _wfopen_s(FILE **_File,const wchar_t *_Filename,const wchar_t *_Mode);
|
|
59
|
+
_CRTIMP errno_t __cdecl _wfreopen_s(FILE **_File,const wchar_t *_Filename,const wchar_t *_Mode,FILE *_OldFile);
|
|
60
|
+
_CRTIMP errno_t __cdecl _wtmpnam_s(wchar_t *_DstBuf,size_t _SizeInWords);
|
|
61
|
+
#endif
|
|
62
|
+
|
|
63
|
+
#ifndef _WSTDLIB_S_DEFINED
|
|
64
|
+
#define _WSTDLIB_S_DEFINED
|
|
65
|
+
_CRTIMP errno_t __cdecl _itow_s (int _Val,wchar_t *_DstBuf,size_t _SizeInWords,int _Radix);
|
|
66
|
+
_CRTIMP errno_t __cdecl _ltow_s (long _Val,wchar_t *_DstBuf,size_t _SizeInWords,int _Radix);
|
|
67
|
+
_CRTIMP errno_t __cdecl _ultow_s (unsigned long _Val,wchar_t *_DstBuf,size_t _SizeInWords,int _Radix);
|
|
68
|
+
_CRTIMP errno_t __cdecl _wgetenv_s(size_t *_ReturnSize,wchar_t *_DstBuf,size_t _DstSizeInWords,const wchar_t *_VarName);
|
|
69
|
+
_CRTIMP errno_t __cdecl _wdupenv_s(wchar_t **_Buffer,size_t *_BufferSizeInWords,const wchar_t *_VarName);
|
|
70
|
+
#if _INTEGRAL_MAX_BITS >= 64
|
|
71
|
+
_CRTIMP errno_t __cdecl _i64tow_s(__int64 _Val,wchar_t *_DstBuf,size_t _SizeInWords,int _Radix);
|
|
72
|
+
_CRTIMP errno_t __cdecl _ui64tow_s(unsigned __int64 _Val,wchar_t *_DstBuf,size_t _SizeInWords,int _Radix);
|
|
73
|
+
#endif
|
|
74
|
+
#endif
|
|
75
|
+
|
|
76
|
+
#ifndef _POSIX_
|
|
77
|
+
#ifndef _WSTDLIBP_S_DEFINED
|
|
78
|
+
#define _WSTDLIBP_S_DEFINED
|
|
79
|
+
_CRTIMP errno_t __cdecl _wmakepath_s(wchar_t *_PathResult,size_t _SizeInWords,const wchar_t *_Drive,const wchar_t *_Dir,const wchar_t *_Filename,const wchar_t *_Ext);
|
|
80
|
+
_CRTIMP errno_t __cdecl _wputenv_s(const wchar_t *_Name,const wchar_t *_Value);
|
|
81
|
+
_CRTIMP errno_t __cdecl _wsearchenv_s(const wchar_t *_Filename,const wchar_t *_EnvVar,wchar_t *_ResultPath,size_t _SizeInWords);
|
|
82
|
+
_CRTIMP errno_t __cdecl _wsplitpath_s(const wchar_t *_FullPath,wchar_t *_Drive,size_t _DriveSizeInWords,wchar_t *_Dir,size_t _DirSizeInWords,wchar_t *_Filename,size_t _FilenameSizeInWords,wchar_t *_Ext,size_t _ExtSizeInWords);
|
|
83
|
+
#endif
|
|
84
|
+
#endif
|
|
85
|
+
|
|
86
|
+
#ifndef _WSTRING_S_DEFINED
|
|
87
|
+
#define _WSTRING_S_DEFINED
|
|
88
|
+
_CRTIMP wchar_t *__cdecl wcstok_s(wchar_t *_Str,const wchar_t *_Delim,wchar_t **_Context);
|
|
89
|
+
_CRTIMP errno_t __cdecl _wcserror_s(wchar_t *_Buf,size_t _SizeInWords,int _ErrNum);
|
|
90
|
+
_CRTIMP errno_t __cdecl __wcserror_s(wchar_t *_Buffer,size_t _SizeInWords,const wchar_t *_ErrMsg);
|
|
91
|
+
_CRTIMP errno_t __cdecl _wcsnset_s(wchar_t *_Dst,size_t _DstSizeInWords,wchar_t _Val,size_t _MaxCount);
|
|
92
|
+
_CRTIMP errno_t __cdecl _wcsset_s(wchar_t *_Str,size_t _SizeInWords,wchar_t _Val);
|
|
93
|
+
_CRTIMP errno_t __cdecl _wcslwr_s(wchar_t *_Str,size_t _SizeInWords);
|
|
94
|
+
_CRTIMP errno_t __cdecl _wcslwr_s_l(wchar_t *_Str,size_t _SizeInWords,_locale_t _Locale);
|
|
95
|
+
_CRTIMP errno_t __cdecl _wcsupr_s(wchar_t *_Str,size_t _Size);
|
|
96
|
+
_CRTIMP errno_t __cdecl _wcsupr_s_l(wchar_t *_Str,size_t _Size,_locale_t _Locale);
|
|
97
|
+
#endif
|
|
98
|
+
|
|
99
|
+
#ifndef _WTIME_S_DEFINED
|
|
100
|
+
#define _WTIME_S_DEFINED
|
|
101
|
+
_CRTIMP errno_t __cdecl _wasctime_s(wchar_t *_Buf,size_t _SizeInWords,const struct tm *_Tm);
|
|
102
|
+
_CRTIMP errno_t __cdecl _wctime32_s(wchar_t *_Buf,size_t _SizeInWords,const __time32_t *_Time);
|
|
103
|
+
_CRTIMP errno_t __cdecl _wstrdate_s(wchar_t *_Buf,size_t _SizeInWords);
|
|
104
|
+
_CRTIMP errno_t __cdecl _wstrtime_s(wchar_t *_Buf,size_t _SizeInWords);
|
|
105
|
+
#if _INTEGRAL_MAX_BITS >= 64
|
|
106
|
+
_CRTIMP errno_t __cdecl _wctime64_s(wchar_t *_Buf,size_t _SizeInWords,const __time64_t *_Time);
|
|
107
|
+
#endif
|
|
108
|
+
|
|
109
|
+
#if !defined (RC_INVOKED) && !defined (_INC_WTIME_S_INL)
|
|
110
|
+
#define _INC_WTIME_S_INL
|
|
111
|
+
#ifdef _USE_32BIT_TIME_T
|
|
112
|
+
__CRT_INLINE errno_t __cdecl _wctime_s(wchar_t *_Buffer,size_t _SizeInWords,const time_t *_Time) { return _wctime32_s(_Buffer,_SizeInWords,_Time); }
|
|
113
|
+
#else
|
|
114
|
+
__CRT_INLINE errno_t __cdecl _wctime_s(wchar_t *_Buffer,size_t _SizeInWords,const time_t *_Time) { return _wctime64_s(_Buffer,_SizeInWords,_Time); }
|
|
115
|
+
#endif
|
|
116
|
+
#endif
|
|
117
|
+
#endif
|
|
118
|
+
|
|
119
|
+
_CRTIMP errno_t __cdecl mbsrtowcs_s(size_t *_Retval,wchar_t *_Dst,size_t _SizeInWords,const char **_PSrc,size_t _N,mbstate_t *_State);
|
|
120
|
+
_CRTIMP errno_t __cdecl wcrtomb_s(size_t *_Retval,char *_Dst,size_t _SizeInBytes,wchar_t _Ch,mbstate_t *_State);
|
|
121
|
+
_CRTIMP errno_t __cdecl wcsrtombs_s(size_t *_Retval,char *_Dst,size_t _SizeInBytes,const wchar_t **_Src,size_t _Size,mbstate_t *_State);
|
|
122
|
+
|
|
123
|
+
#ifdef __cplusplus
|
|
124
|
+
}
|
|
125
|
+
#endif
|
|
126
|
+
|
|
127
|
+
#endif
|
|
128
|
+
#endif
|
|
@@ -0,0 +1,160 @@
|
|
|
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_SETJMP
|
|
7
|
+
#define _INC_SETJMP
|
|
8
|
+
|
|
9
|
+
#include <_mingw.h>
|
|
10
|
+
|
|
11
|
+
#pragma pack(push,_CRT_PACKING)
|
|
12
|
+
|
|
13
|
+
#ifdef __cplusplus
|
|
14
|
+
extern "C" {
|
|
15
|
+
#endif
|
|
16
|
+
|
|
17
|
+
#if (defined(_X86_) && !defined(__x86_64))
|
|
18
|
+
|
|
19
|
+
#define _JBLEN 16
|
|
20
|
+
#define _JBTYPE int
|
|
21
|
+
|
|
22
|
+
typedef struct __JUMP_BUFFER {
|
|
23
|
+
unsigned long Ebp;
|
|
24
|
+
unsigned long Ebx;
|
|
25
|
+
unsigned long Edi;
|
|
26
|
+
unsigned long Esi;
|
|
27
|
+
unsigned long Esp;
|
|
28
|
+
unsigned long Eip;
|
|
29
|
+
unsigned long Registration;
|
|
30
|
+
unsigned long TryLevel;
|
|
31
|
+
unsigned long Cookie;
|
|
32
|
+
unsigned long UnwindFunc;
|
|
33
|
+
unsigned long UnwindData[6];
|
|
34
|
+
} _JUMP_BUFFER;
|
|
35
|
+
#elif defined(__ia64__)
|
|
36
|
+
typedef _CRT_ALIGN(16) struct _SETJMP_FLOAT128 {
|
|
37
|
+
__int64 LowPart;
|
|
38
|
+
__int64 HighPart;
|
|
39
|
+
} SETJMP_FLOAT128;
|
|
40
|
+
|
|
41
|
+
#define _JBLEN 33
|
|
42
|
+
typedef SETJMP_FLOAT128 _JBTYPE;
|
|
43
|
+
|
|
44
|
+
typedef struct __JUMP_BUFFER {
|
|
45
|
+
|
|
46
|
+
unsigned long iAReserved[6];
|
|
47
|
+
|
|
48
|
+
unsigned long Registration;
|
|
49
|
+
unsigned long TryLevel;
|
|
50
|
+
unsigned long Cookie;
|
|
51
|
+
unsigned long UnwindFunc;
|
|
52
|
+
|
|
53
|
+
unsigned long UnwindData[6];
|
|
54
|
+
|
|
55
|
+
SETJMP_FLOAT128 FltS0;
|
|
56
|
+
SETJMP_FLOAT128 FltS1;
|
|
57
|
+
SETJMP_FLOAT128 FltS2;
|
|
58
|
+
SETJMP_FLOAT128 FltS3;
|
|
59
|
+
SETJMP_FLOAT128 FltS4;
|
|
60
|
+
SETJMP_FLOAT128 FltS5;
|
|
61
|
+
SETJMP_FLOAT128 FltS6;
|
|
62
|
+
SETJMP_FLOAT128 FltS7;
|
|
63
|
+
SETJMP_FLOAT128 FltS8;
|
|
64
|
+
SETJMP_FLOAT128 FltS9;
|
|
65
|
+
SETJMP_FLOAT128 FltS10;
|
|
66
|
+
SETJMP_FLOAT128 FltS11;
|
|
67
|
+
SETJMP_FLOAT128 FltS12;
|
|
68
|
+
SETJMP_FLOAT128 FltS13;
|
|
69
|
+
SETJMP_FLOAT128 FltS14;
|
|
70
|
+
SETJMP_FLOAT128 FltS15;
|
|
71
|
+
SETJMP_FLOAT128 FltS16;
|
|
72
|
+
SETJMP_FLOAT128 FltS17;
|
|
73
|
+
SETJMP_FLOAT128 FltS18;
|
|
74
|
+
SETJMP_FLOAT128 FltS19;
|
|
75
|
+
__int64 FPSR;
|
|
76
|
+
__int64 StIIP;
|
|
77
|
+
__int64 BrS0;
|
|
78
|
+
__int64 BrS1;
|
|
79
|
+
__int64 BrS2;
|
|
80
|
+
__int64 BrS3;
|
|
81
|
+
__int64 BrS4;
|
|
82
|
+
__int64 IntS0;
|
|
83
|
+
__int64 IntS1;
|
|
84
|
+
__int64 IntS2;
|
|
85
|
+
__int64 IntS3;
|
|
86
|
+
__int64 RsBSP;
|
|
87
|
+
__int64 RsPFS;
|
|
88
|
+
__int64 ApUNAT;
|
|
89
|
+
__int64 ApLC;
|
|
90
|
+
__int64 IntSp;
|
|
91
|
+
__int64 IntNats;
|
|
92
|
+
__int64 Preds;
|
|
93
|
+
|
|
94
|
+
} _JUMP_BUFFER;
|
|
95
|
+
#elif defined(__x86_64)
|
|
96
|
+
typedef _CRT_ALIGN(16) struct _SETJMP_FLOAT128 {
|
|
97
|
+
unsigned __int64 Part[2];
|
|
98
|
+
} SETJMP_FLOAT128;
|
|
99
|
+
|
|
100
|
+
#define _JBLEN 16
|
|
101
|
+
typedef SETJMP_FLOAT128 _JBTYPE;
|
|
102
|
+
|
|
103
|
+
typedef struct _JUMP_BUFFER {
|
|
104
|
+
unsigned __int64 Frame;
|
|
105
|
+
unsigned __int64 Rbx;
|
|
106
|
+
unsigned __int64 Rsp;
|
|
107
|
+
unsigned __int64 Rbp;
|
|
108
|
+
unsigned __int64 Rsi;
|
|
109
|
+
unsigned __int64 Rdi;
|
|
110
|
+
unsigned __int64 R12;
|
|
111
|
+
unsigned __int64 R13;
|
|
112
|
+
unsigned __int64 R14;
|
|
113
|
+
unsigned __int64 R15;
|
|
114
|
+
unsigned __int64 Rip;
|
|
115
|
+
unsigned __int64 Spare;
|
|
116
|
+
SETJMP_FLOAT128 Xmm6;
|
|
117
|
+
SETJMP_FLOAT128 Xmm7;
|
|
118
|
+
SETJMP_FLOAT128 Xmm8;
|
|
119
|
+
SETJMP_FLOAT128 Xmm9;
|
|
120
|
+
SETJMP_FLOAT128 Xmm10;
|
|
121
|
+
SETJMP_FLOAT128 Xmm11;
|
|
122
|
+
SETJMP_FLOAT128 Xmm12;
|
|
123
|
+
SETJMP_FLOAT128 Xmm13;
|
|
124
|
+
SETJMP_FLOAT128 Xmm14;
|
|
125
|
+
SETJMP_FLOAT128 Xmm15;
|
|
126
|
+
} _JUMP_BUFFER;
|
|
127
|
+
#endif
|
|
128
|
+
#ifndef _JMP_BUF_DEFINED
|
|
129
|
+
typedef _JBTYPE jmp_buf[_JBLEN];
|
|
130
|
+
#define _JMP_BUF_DEFINED
|
|
131
|
+
#endif
|
|
132
|
+
|
|
133
|
+
void * __cdecl __attribute__ ((__nothrow__)) mingw_getsp(void);
|
|
134
|
+
|
|
135
|
+
#ifdef USE_MINGW_SETJMP_TWO_ARGS
|
|
136
|
+
#ifndef _INC_SETJMPEX
|
|
137
|
+
#define setjmp(BUF) _setjmp((BUF),mingw_getsp())
|
|
138
|
+
int __cdecl __attribute__ ((__nothrow__)) _setjmp(jmp_buf _Buf,void *_Ctx);
|
|
139
|
+
#else
|
|
140
|
+
#undef setjmp
|
|
141
|
+
#define setjmp(BUF) _setjmpex((BUF),mingw_getsp())
|
|
142
|
+
#define setjmpex(BUF) _setjmpex((BUF),mingw_getsp())
|
|
143
|
+
int __cdecl __attribute__ ((__nothrow__)) _setjmpex(jmp_buf _Buf,void *_Ctx);
|
|
144
|
+
#endif
|
|
145
|
+
#else
|
|
146
|
+
#ifndef _INC_SETJMPEX
|
|
147
|
+
#define setjmp _setjmp
|
|
148
|
+
#endif
|
|
149
|
+
int __cdecl __attribute__ ((__nothrow__)) setjmp(jmp_buf _Buf);
|
|
150
|
+
#endif
|
|
151
|
+
|
|
152
|
+
__declspec(noreturn) __attribute__ ((__nothrow__)) void __cdecl ms_longjmp(jmp_buf _Buf,int _Value)/* throw(...)*/;
|
|
153
|
+
__declspec(noreturn) __attribute__ ((__nothrow__)) void __cdecl longjmp(jmp_buf _Buf,int _Value);
|
|
154
|
+
|
|
155
|
+
#ifdef __cplusplus
|
|
156
|
+
}
|
|
157
|
+
#endif
|
|
158
|
+
|
|
159
|
+
#pragma pack(pop)
|
|
160
|
+
#endif
|