source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/sec_api/tchar_s.h@ 1181

Last change on this file since 1181 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 8.1 KB
RevLine 
[1166]1/**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6#ifndef _INC_TCHAR_S
7#define _INC_TCHAR_S
8
9#include <tchar.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#ifdef _UNICODE
16
17#define _tprintf_s wprintf_s
18#define _tprintf_s_l _wprintf_s_l
19#define _tcprintf_s _cwprintf_s
20#define _tcprintf_s_l _cwprintf_s_l
21#define _vtcprintf_s _vcwprintf_s
22#define _vtcprintf_s_l _vcwprintf_s_l
23#define _ftprintf_s fwprintf_s
24#define _ftprintf_s_l _fwprintf_s_l
25#define _stprintf_s swprintf_s
26#define _stprintf_s_l _swprintf_s_l
27#define _sntprintf_s _snwprintf_s
28#define _sntprintf_s_l _snwprintf_s_l
29#define _vtprintf_s vwprintf_s
30#define _vtprintf_s_l _vwprintf_s_l
31#define _vftprintf_s vfwprintf_s
32#define _vftprintf_s_l _vfwprintf_s_l
33#define _vstprintf_s vswprintf_s
34#define _vstprintf_s_l _vswprintf_s_l
35#define _vsntprintf_s _vsnwprintf_s
36#define _vsntprintf_s_l _vsnwprintf_s_l
37
38#define _tscanf_s wscanf_s
39#define _tscanf_s_l _wscanf_s_l
40#define _tcscanf_s _cwscanf_s
41#define _tcscanf_s_l _cwscanf_s_l
42#define _ftscanf_s fwscanf_s
43#define _ftscanf_s_l _fwscanf_s_l
44#define _stscanf_s swscanf_s
45#define _stscanf_s_l _swscanf_s_l
46#define _sntscanf_s _snwscanf_s
47#define _sntscanf_s_l _snwscanf_s_l
48
49#define _cgetts_s _cgetws_s
50#define _getts_s _getws_s
51
52#define _itot_s _itow_s
53#define _ltot_s _ltow_s
54#define _ultot_s _ultow_s
55#define _i64tot_s _i64tow_s
56#define _ui64tot_s _ui64tow_s
57
58#define _tcscat_s wcscat_s
59#define _tcscpy_s wcscpy_s
60#define _tcsncat_s wcsncat_s
61#define _tcsncat_s_l _wcsncat_s_l
62#define _tcsncpy_s wcsncpy_s
63#define _tcsncpy_s_l _wcsncpy_s_l
64#define _tcstok_s wcstok_s
65#define _tcstok_s_l _wcstok_s_l
66#define _tcserror_s _wcserror_s
67#define __tcserror_s __wcserror_s
68
69#define _tcsnset_s _wcsnset_s
70#define _tcsnset_s_l _wcsnset_s_l
71#define _tcsset_s _wcsset_s
72#define _tcsset_s_l _wcsset_s_l
73
74#define _tasctime_s _wasctime_s
75#define _tctime_s _wctime_s
76#define _tctime32_s _wctime32_s
77#define _tctime64_s _wctime64_s
78#define _tstrdate_s _wstrdate_s
79#define _tstrtime_s _wstrtime_s
80
81#define _tgetenv_s _wgetenv_s
82#define _tdupenv_s _wdupenv_s
83#define _tmakepath_s _wmakepath_s
84#define _tputenv_s _wputenv_s
85#define _tsearchenv_s _wsearchenv_s
86#define _tsplitpath_s _wsplitpath_s
87
88#define _tfopen_s _wfopen_s
89#define _tfreopen_s _wfreopen_s
90#define _ttmpnam_s _wtmpnam_s
91#define _taccess_s _waccess_s
92#define _tmktemp_s _wmktemp_s
93
94#define _tcsnccat_s wcsncat_s
95#define _tcsnccat_s_l _wcsncat_s_l
96#define _tcsnccpy_s wcsncpy_s
97#define _tcsnccpy_s_l _wcsncpy_s_l
98
99#define _tcslwr_s _wcslwr_s
100#define _tcslwr_s_l _wcslwr_s_l
101#define _tcsupr_s _wcsupr_s
102#define _tcsupr_s_l _wcsupr_s_l
103
104#define _wcstok_s_l(_String,_Delimiters,_Current_position,_Locale) (wcstok_s(_String,_Delimiters,_Current_position))
105#define _wcsnset_s_l(_Destination,_Destination_size_chars,_Value,_Count,_Locale) (_wcsnset_s(_Destination,_Destination_size_chars,_Value,_Count))
106#define _wcsset_s_l(_Destination,_Destination_size_chars,_Value,_Locale) (_wcsset_s(_Destination,_Destination_size_chars,_Value))
107
108#else
109
110#define _tprintf_s printf_s
111#define _tprintf_s_l _printf_s_l
112#define _tcprintf_s _cprintf_s
113#define _tcprintf_s_l _cprintf_s_l
114#define _vtcprintf_s _vcprintf_s
115#define _vtcprintf_s_l _vcprintf_s_l
116#define _ftprintf_s fprintf_s
117#define _ftprintf_s_l _fprintf_s_l
118#define _stprintf_s sprintf_s
119#define _stprintf_s_l _sprintf_s_l
120#define _sntprintf_s _snprintf_s
121#define _sntprintf_s_l _snprintf_s_l
122#define _vtprintf_s vprintf_s
123#define _vtprintf_s_l _vprintf_s_l
124#define _vftprintf_s vfprintf_s
125#define _vftprintf_s_l _vfprintf_s_l
126#define _vstprintf_s vsprintf_s
127#define _vstprintf_s_l _vsprintf_s_l
128#define _vsntprintf_s _vsnprintf_s
129#define _vsntprintf_s_l _vsnprintf_s_l
130#define _tscanf_s scanf_s
131#define _tscanf_s_l _scanf_s_l
132#define _tcscanf_s _cscanf_s
133#define _tcscanf_s_l _cscanf_s_l
134#define _ftscanf_s fscanf_s
135#define _ftscanf_s_l _fscanf_s_l
136#define _stscanf_s sscanf_s
137#define _stscanf_s_l _sscanf_s_l
138#define _sntscanf_s _snscanf_s
139#define _sntscanf_s_l _snscanf_s_l
140
141#define _getts_s gets_s
142#define _cgetts_s _cgets_s
143#define _itot_s _itoa_s
144#define _ltot_s _ltoa_s
145#define _ultot_s _ultoa_s
146#define _i64tot_s _i64toa_s
147#define _ui64tot_s _ui64toa_s
148
149#define _tcscat_s strcat_s
150#define _tcscpy_s strcpy_s
151#define _tcserror_s strerror_s
152#define __tcserror_s _strerror_s
153
154#define _tasctime_s asctime_s
155#define _tctime_s ctime_s
156#define _tctime32_s _ctime32_s
157#define _tctime64_s _ctime64_s
158#define _tstrdate_s _strdate_s
159#define _tstrtime_s _strtime_s
160
161#define _tgetenv_s getenv_s
162#define _tdupenv_s _dupenv_s
163#define _tmakepath_s _makepath_s
164#define _tputenv_s _putenv_s
165#define _tsearchenv_s _searchenv_s
166#define _tsplitpath_s _splitpath_s
167
168#define _tfopen_s fopen_s
169#define _tfreopen_s freopen_s
170#define _ttmpnam_s tmpnam_s
171#define _tmktemp_s _mktemp_s
172
173#ifndef _POSIX_
174#define _taccess_s _access_s
175#endif
176
177#define _tsopen_s _sopen_s
178
179#ifdef _MBCS
180
181#ifdef _MB_MAP_DIRECT
182
183#define _tcsncat_s _mbsnbcat_s
184#define _tcsncat_s_l _mbsnbcat_s_l
185#define _tcsncpy_s _mbsnbcpy_s
186#define _tcsncpy_s_l _mbsnbcpy_s_l
187#define _tcstok_s _mbstok_s
188#define _tcstok_s_l _mbstok_s_l
189
190#define _tcsnset_s _mbsnbset_s
191#define _tcsnset_s_l _mbsnbset_s_l
192#define _tcsset_s _mbsset_s
193#define _tcsset_s_l _mbsset_s_l
194
195#define _tcsnccat_s _mbsncat_s
196#define _tcsnccat_s_l _mbsncat_s_l
197#define _tcsnccpy_s _mbsncpy_s
198#define _tcsnccpy_s_l _mbsncpy_s_l
199#define _tcsncset_s _mbsnset_s
200#define _tcsncset_s_l _mbsnset_s_l
201
202#define _tcslwr_s _mbslwr_s
203#define _tcslwr_s_l _mbslwr_s_l
204#define _tcsupr_s _mbsupr_s
205#define _tcsupr_s_l _mbsupr_s_l
206
207#define _tccpy_s _mbccpy_s
208#define _tccpy_s_l _mbccpy_s_l
209#else
210
211 _CRTIMP char *__cdecl _tcsncat_s(char *_Dst,size_t _DstSizeInChars,const char *_Src,size_t _MaxCount);
212 _CRTIMP char *__cdecl _tcsncat_s_l(char *_Dst,size_t _DstSizeInChars,const char *_Src,size_t _MaxCount,_locale_t _Locale);
213 _CRTIMP char *__cdecl _tcsncpy_s(char *_Dst,size_t _DstSizeInChars,const char *_Src,size_t _MaxCount);
214 _CRTIMP char *__cdecl _tcsncpy_s_l(char *_Dst,size_t _DstSizeInChars,const char *_Src,size_t _MaxCount,_locale_t _Locale);
215 _CRTIMP char *__cdecl _tcstok_s(char *_Str,const char *_Delim,char **_Context);
216 _CRTIMP char *__cdecl _tcstok_s_l(char *_Str,const char *_Delim,char **_Context,_locale_t _Locale);
217 _CRTIMP errno_t __cdecl _tcsset_s(char *_Str,size_t _SizeInChars,unsigned int _Val);
218 _CRTIMP errno_t __cdecl _tcsset_s_l(char *_Str,size_t _SizeInChars,unsigned int,_locale_t _Locale);
219 _CRTIMP char *__cdecl _tcsnccat_s(char *_Dst,size_t _DstSizeInChars,const char *_Src,size_t _MaxCount);
220 _CRTIMP char *__cdecl _tcsnccat_s_l(char *_Dst,size_t _DstSizeInChars,const char *_Src,size_t _MaxCount,_locale_t _Locale);
221 _CRTIMP char *__cdecl _tcsnccpy_s(char *_Dst,size_t _DstSizeInChars,const char *_Src,size_t _MaxCount);
222 _CRTIMP char *__cdecl _tcsnccpy_s_l(char *_Dst,size_t _DstSizeInChars,const char *_Src,size_t _MaxCount,_locale_t _Locale);
223 _CRTIMP char *__cdecl _tcslwr_s(char *_Str,size_t _SizeInChars);
224 _CRTIMP char *__cdecl _tcslwr_s_l(char *_Str,size_t _SizeInChars,_locale_t _Locale);
225 _CRTIMP char *__cdecl _tcsupr_s(char *_Str,size_t _SizeInChars);
226 _CRTIMP char *__cdecl _tcsupr_s_l(char *_Str,size_t _SizeInChars,_locale_t _Locale);
227
228#endif
229
230#else
231
232#define _tcsncat_s strncat_s
233#define _tcsncat_s_l _strncat_s_l
234#define _tcsncpy_s strncpy_s
235#define _tcsncpy_s_l _strncpy_s_l
236#define _tcstok_s strtok_s
237#define _tcstok_s_l _strtok_s_l
238
239#define _tcsnset_s _strnset_s
240#define _tcsnset_s_l _strnset_s_l
241#define _tcsset_s _strset_s
242#define _tcsset_s _strset_s
243#define _tcsset_s_l _strset_s_l
244
245#define _tcsnccat_s strncat_s
246#define _tcsnccat_s_l _strncat_s_l
247#define _tcsnccpy_s strncpy_s
248#define _tcsnccpy_s_l _strncpy_s_l
249
250#define _tcslwr_s _strlwr_s
251#define _tcslwr_s_l _strlwr_s_l
252#define _tcsupr_s _strupr_s
253#define _tcsupr_s_l _strupr_s_l
254
255#define _strnset_s_l(_Destination,_Destination_size_chars,_Value,_Count,_Locale) (_strnset_s(_Destination,_Destination_size_chars,_Value,_Count))
256#define _strset_s_l(_Destination,_Destination_size_chars,_Value,_Locale) (_strset_s(_Destination,_Destination_size_chars,_Value))
257#endif
258#endif
259
260#ifdef __cplusplus
261}
262#endif
263#endif
Note: See TracBrowser for help on using the repository browser.