| 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 |
#include <crtdefs.h> |
| 7 |
|
| 8 |
#ifndef _INC_TCHAR |
| 9 |
#define _INC_TCHAR |
| 10 |
|
| 11 |
#ifdef _STRSAFE_H_INCLUDED_ |
| 12 |
#error Need to include strsafe.h after tchar.h |
| 13 |
#endif |
| 14 |
|
| 15 |
#ifdef __cplusplus |
| 16 |
extern "C" { |
| 17 |
#endif |
| 18 |
|
| 19 |
#ifndef __CYGWIN__ |
| 20 |
|
| 21 |
#define _ftcscat _tcscat |
| 22 |
#define _ftcschr _tcschr |
| 23 |
#define _ftcscpy _tcscpy |
| 24 |
#define _ftcscspn _tcscspn |
| 25 |
#define _ftcslen _tcslen |
| 26 |
#define _ftcsncat _tcsncat |
| 27 |
#define _ftcsncpy _tcsncpy |
| 28 |
#define _ftcspbrk _tcspbrk |
| 29 |
#define _ftcsrchr _tcsrchr |
| 30 |
#define _ftcsspn _tcsspn |
| 31 |
#define _ftcsstr _tcsstr |
| 32 |
#define _ftcstok _tcstok |
| 33 |
|
| 34 |
#define _ftcsdup _tcsdup |
| 35 |
#define _ftcsnset _tcsnset |
| 36 |
#define _ftcsrev _tcsrev |
| 37 |
#define _ftcsset _tcsset |
| 38 |
|
| 39 |
#define _ftcscmp _tcscmp |
| 40 |
#define _ftcsicmp _tcsicmp |
| 41 |
#define _ftcsnccmp _tcsnccmp |
| 42 |
#define _ftcsncmp _tcsncmp |
| 43 |
#define _ftcsncicmp _tcsncicmp |
| 44 |
#define _ftcsnicmp _tcsnicmp |
| 45 |
|
| 46 |
#define _ftcscoll _tcscoll |
| 47 |
#define _ftcsicoll _tcsicoll |
| 48 |
#define _ftcsnccoll _tcsnccoll |
| 49 |
#define _ftcsncoll _tcsncoll |
| 50 |
#define _ftcsncicoll _tcsncicoll |
| 51 |
#define _ftcsnicoll _tcsnicoll |
| 52 |
|
| 53 |
#define _ftcsclen _tcsclen |
| 54 |
#define _ftcsnccat _tcsnccat |
| 55 |
#define _ftcsnccpy _tcsnccpy |
| 56 |
#define _ftcsncset _tcsncset |
| 57 |
|
| 58 |
#define _ftcsdec _tcsdec |
| 59 |
#define _ftcsinc _tcsinc |
| 60 |
#define _ftcsnbcnt _tcsnbcnt |
| 61 |
#define _ftcsnccnt _tcsnccnt |
| 62 |
#define _ftcsnextc _tcsnextc |
| 63 |
#define _ftcsninc _tcsninc |
| 64 |
#define _ftcsspnp _tcsspnp |
| 65 |
|
| 66 |
#define _ftcslwr _tcslwr |
| 67 |
#define _ftcsupr _tcsupr |
| 68 |
|
| 69 |
#define _ftclen _tclen |
| 70 |
#define _ftccpy _tccpy |
| 71 |
#define _ftccmp _tccmp |
| 72 |
|
| 73 |
#ifndef _CONST_RETURN |
| 74 |
#ifdef __cplusplus |
| 75 |
#define _CONST_RETURN const |
| 76 |
#define _CRT_CONST_CORRECT_OVERLOADS |
| 77 |
#else |
| 78 |
#define _CONST_RETURN |
| 79 |
#endif |
| 80 |
#endif |
| 81 |
|
| 82 |
#define _WConst_return _CONST_RETURN |
| 83 |
|
| 84 |
#endif /* __CYGWIN__ */ |
| 85 |
|
| 86 |
#ifdef _UNICODE |
| 87 |
|
| 88 |
#ifdef __cplusplus |
| 89 |
} |
| 90 |
#endif |
| 91 |
|
| 92 |
#include <wchar.h> |
| 93 |
|
| 94 |
#ifdef __cplusplus |
| 95 |
extern "C" { |
| 96 |
#endif |
| 97 |
|
| 98 |
#ifndef __CYGWIN__ |
| 99 |
|
| 100 |
#ifndef _WCTYPE_T_DEFINED |
| 101 |
#define _WCTYPE_T_DEFINED |
| 102 |
typedef unsigned short wint_t; |
| 103 |
typedef unsigned short wctype_t; |
| 104 |
#endif |
| 105 |
|
| 106 |
#endif /* __CYGWIN__ */ |
| 107 |
|
| 108 |
#ifndef __TCHAR_DEFINED |
| 109 |
#define __TCHAR_DEFINED |
| 110 |
typedef wchar_t _TCHAR; |
| 111 |
typedef wchar_t _TSCHAR; |
| 112 |
typedef wchar_t _TUCHAR; |
| 113 |
typedef wchar_t _TXCHAR; |
| 114 |
typedef wint_t _TINT; |
| 115 |
#endif |
| 116 |
|
| 117 |
#ifndef NO_OLDNAMES |
| 118 |
#ifndef _TCHAR_DEFINED |
| 119 |
#define _TCHAR_DEFINED |
| 120 |
typedef wchar_t TCHAR,*PTCHAR; |
| 121 |
typedef wchar_t TBYTE,*PTBYTE; |
| 122 |
#endif |
| 123 |
#endif |
| 124 |
|
| 125 |
#define _TEOF WEOF |
| 126 |
|
| 127 |
#define __T(x) L##x |
| 128 |
|
| 129 |
#ifndef __CYGWIN__ |
| 130 |
|
| 131 |
#define _tmain wmain |
| 132 |
#define _tWinMain wWinMain |
| 133 |
#define _tenviron _wenviron |
| 134 |
#define __targv __wargv |
| 135 |
|
| 136 |
#define _tprintf wprintf |
| 137 |
#define _tprintf_l _wprintf_l |
| 138 |
#define _tprintf_p _wprintf_p |
| 139 |
#define _tprintf_p_l _wprintf_p_l |
| 140 |
#define _tcprintf _cwprintf |
| 141 |
#define _tcprintf_l _cwprintf_l |
| 142 |
#define _tcprintf_p _cwprintf_p |
| 143 |
#define _tcprintf_p_l _cwprintf_p_l |
| 144 |
#define _vtcprintf _vcwprintf |
| 145 |
#define _vtcprintf_l _vcwprintf_l |
| 146 |
#define _vtcprintf_p _vcwprintf_p |
| 147 |
#define _vtcprintf_p_l _vcwprintf_p_l |
| 148 |
#define _ftprintf fwprintf |
| 149 |
#define _ftprintf_l _fwprintf_l |
| 150 |
#define _ftprintf_p _fwprintf_p |
| 151 |
#define _ftprintf_p_l _fwprintf_p_l |
| 152 |
#define _stprintf swprintf |
| 153 |
#define _stprintf_l __swprintf_l |
| 154 |
#define _stprintf_p _swprintf_p |
| 155 |
#define _stprintf_p_l _swprintf_p_l |
| 156 |
#define _sctprintf _scwprintf |
| 157 |
#define _sctprintf_l _scwprintf_l |
| 158 |
#define _sctprintf_p _scwprintf_p |
| 159 |
#define _sctprintf_p_l _scwprintf_p_l |
| 160 |
#define _sntprintf _snwprintf |
| 161 |
#define _sntprintf_l _snwprintf_l |
| 162 |
#define _vtprintf vwprintf |
| 163 |
#define _vtprintf_l _vwprintf_l |
| 164 |
#define _vtprintf_p _vwprintf_p |
| 165 |
#define _vtprintf_p_l _vwprintf_p_l |
| 166 |
#define _vftprintf vfwprintf |
| 167 |
#define _vftprintf_l _vfwprintf_l |
| 168 |
#define _vftprintf_p _vfwprintf_p |
| 169 |
#define _vftprintf_p_l _vfwprintf_p_l |
| 170 |
#define _vstprintf vswprintf |
| 171 |
#define _vstprintf_l _vswprintf_l |
| 172 |
#define _vstprintf_p _vswprintf_p |
| 173 |
#define _vstprintf_p_l _vswprintf_p_l |
| 174 |
#define _vsctprintf _vscwprintf |
| 175 |
#define _vsctprintf_l _vscwprintf_l |
| 176 |
#define _vsctprintf_p _vscwprintf_p |
| 177 |
#define _vsctprintf_p_l _vscwprintf_p_l |
| 178 |
#define _vsntprintf _vsnwprintf |
| 179 |
#define _vsntprintf_l _vsnwprintf_l |
| 180 |
|
| 181 |
#define _tscanf wscanf |
| 182 |
#define _tscanf_l _wscanf_l |
| 183 |
#define _tcscanf _cwscanf |
| 184 |
#define _tcscanf_l _cwscanf_l |
| 185 |
#define _ftscanf fwscanf |
| 186 |
#define _ftscanf_l _fwscanf_l |
| 187 |
#define _stscanf swscanf |
| 188 |
#define _stscanf_l _swscanf_l |
| 189 |
#define _sntscanf _snwscanf |
| 190 |
#define _sntscanf_l _snwscanf_l |
| 191 |
|
| 192 |
#define _fgettc fgetwc |
| 193 |
#define _fgettchar _fgetwchar |
| 194 |
#define _fgetts fgetws |
| 195 |
#define _fputtc fputwc |
| 196 |
#define _fputtchar _fputwchar |
| 197 |
#define _fputts fputws |
| 198 |
#define _cputts _cputws |
| 199 |
#define _cgetts _cgetws |
| 200 |
#define _gettc getwc |
| 201 |
#define _gettch _getwch |
| 202 |
#define _gettche _getwche |
| 203 |
#define _gettchar getwchar |
| 204 |
#define _getts _getws |
| 205 |
#define _puttc putwc |
| 206 |
#define _puttchar putwchar |
| 207 |
#define _puttch _putwch |
| 208 |
#define _putts _putws |
| 209 |
#define _ungettc ungetwc |
| 210 |
#define _ungettch _ungetwch |
| 211 |
|
| 212 |
#define _tcstod wcstod |
| 213 |
#define _tcstol wcstol |
| 214 |
#define _tcstoul wcstoul |
| 215 |
#define _tcstoi64 _wcstoi64 |
| 216 |
#define _tcstoui64 _wcstoui64 |
| 217 |
#define _tstof _wtof |
| 218 |
#define _tstol _wtol |
| 219 |
#define _tstoi _wtoi |
| 220 |
#define _tstoi64 _wtoi64 |
| 221 |
#define _tcstod_l _wcstod_l |
| 222 |
#define _tcstol_l _wcstol_l |
| 223 |
#define _tcstoul_l _wcstoul_l |
| 224 |
#define _tcstoi64_l _wcstoi64_l |
| 225 |
#define _tcstoui64_l _wcstoui64_l |
| 226 |
#define _tstof_l _wtof_l |
| 227 |
#define _tstol_l _wtol_l |
| 228 |
#define _tstoi_l _wtoi_l |
| 229 |
#define _tstoi64_l _wtoi64_l |
| 230 |
|
| 231 |
#define _itot _itow |
| 232 |
#define _ltot _ltow |
| 233 |
#define _ultot _ultow |
| 234 |
#define _ttoi _wtoi |
| 235 |
#define _ttol _wtol |
| 236 |
|
| 237 |
#define _ttoi64 _wtoi64 |
| 238 |
#define _i64tot _i64tow |
| 239 |
#define _ui64tot _ui64tow |
| 240 |
|
| 241 |
#define _tcscat wcscat |
| 242 |
#define _tcschr wcschr |
| 243 |
#define _tcscpy wcscpy |
| 244 |
#define _tcscspn wcscspn |
| 245 |
#define _tcslen wcslen |
| 246 |
#define _tcsnlen wcsnlen |
| 247 |
#define _tcsncat wcsncat |
| 248 |
#define _tcsncat_l _wcsncat_l |
| 249 |
#define _tcsncpy wcsncpy |
| 250 |
#define _tcsncpy_l _wcsncpy_l |
| 251 |
#define _tcspbrk wcspbrk |
| 252 |
#define _tcsrchr wcsrchr |
| 253 |
#define _tcsspn wcsspn |
| 254 |
#define _tcsstr wcsstr |
| 255 |
#define _tcstok wcstok |
| 256 |
#define _tcstok_l _wcstok_l |
| 257 |
#define _tcserror _wcserror |
| 258 |
#define __tcserror __wcserror |
| 259 |
|
| 260 |
#define _tcsdup _wcsdup |
| 261 |
#define _tcsnset _wcsnset |
| 262 |
#define _tcsnset_l _wcsnset_l |
| 263 |
#define _tcsrev _wcsrev |
| 264 |
#define _tcsset _wcsset |
| 265 |
#define _tcsset_l _wcsset_l |
| 266 |
|
| 267 |
#define _tcscmp wcscmp |
| 268 |
#define _tcsicmp _wcsicmp |
| 269 |
#define _tcsicmp_l _wcsicmp_l |
| 270 |
#define _tcsnccmp wcsncmp |
| 271 |
#define _tcsncmp wcsncmp |
| 272 |
#define _tcsncicmp _wcsnicmp |
| 273 |
#define _tcsncicmp_l _wcsnicmp_l |
| 274 |
#define _tcsnicmp _wcsnicmp |
| 275 |
#define _tcsnicmp_l _wcsnicmp_l |
| 276 |
|
| 277 |
#define _tcscoll wcscoll |
| 278 |
#define _tcscoll_l _wcscoll_l |
| 279 |
#define _tcsicoll _wcsicoll |
| 280 |
#define _tcsicoll_l _wcsicoll_l |
| 281 |
#define _tcsnccoll _wcsncoll |
| 282 |
#define _tcsnccoll_l _wcsncoll_l |
| 283 |
#define _tcsncoll _wcsncoll |
| 284 |
#define _tcsncoll_l _wcsncoll_l |
| 285 |
#define _tcsncicoll _wcsnicoll |
| 286 |
#define _tcsncicoll_l _wcsnicoll_l |
| 287 |
#define _tcsnicoll _wcsnicoll |
| 288 |
#define _tcsnicoll_l _wcsnicoll_l |
| 289 |
|
| 290 |
#define _texecl _wexecl |
| 291 |
#define _texecle _wexecle |
| 292 |
#define _texeclp _wexeclp |
| 293 |
#define _texeclpe _wexeclpe |
| 294 |
#define _texecv _wexecv |
| 295 |
#define _texecve _wexecve |
| 296 |
#define _texecvp _wexecvp |
| 297 |
#define _texecvpe _wexecvpe |
| 298 |
|
| 299 |
#define _tspawnl _wspawnl |
| 300 |
#define _tspawnle _wspawnle |
| 301 |
#define _tspawnlp _wspawnlp |
| 302 |
#define _tspawnlpe _wspawnlpe |
| 303 |
#define _tspawnv _wspawnv |
| 304 |
#define _tspawnve _wspawnve |
| 305 |
#define _tspawnvp _wspawnvp |
| 306 |
#define _tspawnvp _wspawnvp |
| 307 |
#define _tspawnvpe _wspawnvpe |
| 308 |
|
| 309 |
#define _tsystem _wsystem |
| 310 |
|
| 311 |
#define _tasctime _wasctime |
| 312 |
#define _tctime _wctime |
| 313 |
#define _tctime32 _wctime32 |
| 314 |
#define _tctime64 _wctime64 |
| 315 |
#define _tstrdate _wstrdate |
| 316 |
#define _tstrtime _wstrtime |
| 317 |
#define _tutime _wutime |
| 318 |
#define _tutime32 _wutime |
| 319 |
#define _tutime64 _wutime64 |
| 320 |
#define _tcsftime wcsftime |
| 321 |
#define _tcsftime_l _wcsftime_l |
| 322 |
|
| 323 |
#define _tchdir _wchdir |
| 324 |
#define _tgetcwd _wgetcwd |
| 325 |
#define _tgetdcwd _wgetdcwd |
| 326 |
#define _tmkdir _wmkdir |
| 327 |
#define _trmdir _wrmdir |
| 328 |
|
| 329 |
#define _tfullpath _wfullpath |
| 330 |
#define _tgetenv _wgetenv |
| 331 |
#define _tmakepath _wmakepath |
| 332 |
#define _tpgmptr _wpgmptr |
| 333 |
#define _get_tpgmptr _get_wpgmptr |
| 334 |
#define _tputenv _wputenv |
| 335 |
#define _tsearchenv _wsearchenv |
| 336 |
#define _tsplitpath _wsplitpath |
| 337 |
|
| 338 |
#define _tfdopen _wfdopen |
| 339 |
#define _tfsopen _wfsopen |
| 340 |
#define _tfopen _wfopen |
| 341 |
#define _tfreopen _wfreopen |
| 342 |
#define _tperror _wperror |
| 343 |
#define _tpopen _wpopen |
| 344 |
#define _ttempnam _wtempnam |
| 345 |
#define _ttmpnam _wtmpnam |
| 346 |
|
| 347 |
#define _taccess _waccess |
| 348 |
#define _tchmod _wchmod |
| 349 |
#define _tcreat _wcreat |
| 350 |
#define _tfindfirst _wfindfirst |
| 351 |
#define _tfindfirst32 _wfindfirst32 |
| 352 |
#define _tfindfirst64 _wfindfirst64 |
| 353 |
#define _tfindfirsti64 _wfindfirsti64 |
| 354 |
#define _tfindfirst32i64 _wfindfirst32i64 |
| 355 |
#define _tfindfirst64i32 _wfindfirst64i32 |
| 356 |
#define _tfindnext _wfindnext |
| 357 |
#define _tfindnext32 _wfindnext32 |
| 358 |
#define _tfindnext64 _wfindnext64 |
| 359 |
#define _tfindnexti64 _wfindnexti64 |
| 360 |
#define _tfindnext32i64 _wfindnext32i64 |
| 361 |
#define _tfindnext64i32 _wfindnext64i32 |
| 362 |
#define _tmktemp _wmktemp |
| 363 |
#define _topen _wopen |
| 364 |
#define _tremove _wremove |
| 365 |
#define _trename _wrename |
| 366 |
#define _tsopen _wsopen |
| 367 |
#define _tunlink _wunlink |
| 368 |
|
| 369 |
#define _tfinddata_t _wfinddata_t |
| 370 |
#define _tfinddata32_t _wfinddata32_t |
| 371 |
#define _tfinddata64_t _wfinddata64_t |
| 372 |
#define _tfinddatai64_t _wfinddatai64_t |
| 373 |
#define _tfinddata32i64_t _wfinddata32i64_t |
| 374 |
#define _tfinddata64i32_t _wfinddata64i32_t |
| 375 |
|
| 376 |
#define _tstat _wstat |
| 377 |
#define _tstat32 _wstat32 |
| 378 |
#define _tstat32i64 _wstat32i64 |
| 379 |
#define _tstat64 _wstat64 |
| 380 |
#define _tstat64i32 _wstat64i32 |
| 381 |
#define _tstati64 _wstati64 |
| 382 |
|
| 383 |
#define _tsetlocale _wsetlocale |
| 384 |
|
| 385 |
#define _tcsclen wcslen |
| 386 |
#define _tcscnlen wcsnlen |
| 387 |
#define _tcsclen_l(_String,_Locale) wcslen(_String) |
| 388 |
#define _tcscnlen_l(_String,_Max_count,_Locale) wcsnlen_l((_String),(_Max_count)) |
| 389 |
#define _tcsnccat wcsncat |
| 390 |
#define _tcsnccat_l _wcsncat_l |
| 391 |
#define _tcsnccpy wcsncpy |
| 392 |
#define _tcsnccpy_l _wcsncpy_l |
| 393 |
#define _tcsncset _wcsnset |
| 394 |
|
| 395 |
#define _tcsdec _wcsdec |
| 396 |
#define _tcsinc _wcsinc |
| 397 |
#define _tcsnbcnt _wcsncnt |
| 398 |
#define _tcsnccnt _wcsncnt |
| 399 |
#define _tcsnextc _wcsnextc |
| 400 |
#define _tcsninc _wcsninc |
| 401 |
#define _tcsspnp _wcsspnp |
| 402 |
|
| 403 |
#define _tcslwr _wcslwr |
| 404 |
#define _tcslwr_l _wcslwr_l |
| 405 |
#define _tcsupr _wcsupr |
| 406 |
#define _tcsupr_l _wcsupr_l |
| 407 |
#define _tcsxfrm wcsxfrm |
| 408 |
#define _tcsxfrm_l _wcsxfrm_l |
| 409 |
|
| 410 |
#define _tclen(_pc) (1) |
| 411 |
#define _tccpy(_pc1,_cpc2) ((*(_pc1) = *(_cpc2))) |
| 412 |
#define _tccmp(_cpc1,_cpc2) ((*(_cpc1))-(*(_cpc2))) |
| 413 |
|
| 414 |
#define _istalnum iswalnum |
| 415 |
#define _istalnum_l _iswalnum_l |
| 416 |
#define _istalpha iswalpha |
| 417 |
#define _istalpha_l _iswalpha_l |
| 418 |
#define _istascii iswascii |
| 419 |
#define _istcntrl iswcntrl |
| 420 |
#define _istcntrl_l _iswcntrl_l |
| 421 |
#define _istdigit iswdigit |
| 422 |
#define _istdigit_l _iswdigit_l |
| 423 |
#define _istgraph iswgraph |
| 424 |
#define _istgraph_l _iswgraph_l |
| 425 |
#define _istlower iswlower |
| 426 |
#define _istlower_l _iswlower_l |
| 427 |
#define _istprint iswprint |
| 428 |
#define _istprint_l _iswprint_l |
| 429 |
#define _istpunct iswpunct |
| 430 |
#define _istpunct_l _iswpunct_l |
| 431 |
#define _istspace iswspace |
| 432 |
#define _istspace_l _iswspace_l |
| 433 |
#define _istupper iswupper |
| 434 |
#define _istupper_l _iswupper_l |
| 435 |
#define _istxdigit iswxdigit |
| 436 |
#define _istxdigit_l _iswxdigit_l |
| 437 |
|
| 438 |
#define _totupper towupper |
| 439 |
#define _totupper_l _towupper_l |
| 440 |
#define _totlower towlower |
| 441 |
#define _totlower_l _towlower_l |
| 442 |
|
| 443 |
#define _istlegal(_Char) (1) |
| 444 |
#define _istlead(_Char) (0) |
| 445 |
#define _istleadbyte(_Char) (0) |
| 446 |
#define _istleadbyte_l(_Char,_Locale) (0) |
| 447 |
|
| 448 |
#define _wcsdec(_cpc1,_cpc2) ((_cpc1)>=(_cpc2) ? NULL : (_cpc2)-1) |
| 449 |
#define _wcsinc(_pc) ((_pc)+1) |
| 450 |
#define _wcsnextc(_cpc) ((unsigned int) *(_cpc)) |
| 451 |
#define _wcsninc(_pc,_sz) (((_pc)+(_sz))) |
| 452 |
_CRTIMP size_t __cdecl __wcsncnt(const wchar_t *_Str,size_t _MaxCount); |
| 453 |
#define _wcsncnt(_cpc,_sz) (__wcsncnt(_cpc,_sz)) |
| 454 |
#define _wcsspnp(_cpc1,_cpc2) (!_cpc1 ? NULL : ((*((_cpc1)+wcsspn(_cpc1,_cpc2))) ? ((_cpc1)+wcsspn(_cpc1,_cpc2)) : NULL)) |
| 455 |
#define _wcsncpy_l(_Destination,_Source,_Count,_Locale) (wcsncpy(_Destination,_Source,_Count)) |
| 456 |
#define _wcsncat_l(_Destination,_Source,_Count,_Locale) (wcsncat(_Destination,_Source,_Count)) |
| 457 |
#define _wcstok_l(_String,_Delimiters,_Locale) (wcstok(_String,_Delimiters)) |
| 458 |
#define _wcsnset_l(_Destination,_Value,_Count,_Locale) (_wcsnset(_Destination,_Value,_Count)) |
| 459 |
#define _wcsset_l(_Destination,_Value,_Locale) (_wcsset(_Destination,_Value)) |
| 460 |
|
| 461 |
/* dirent structures and functions */ |
| 462 |
#define _tdirent _wdirent |
| 463 |
#define _TDIR _WDIR |
| 464 |
#define _topendir _wopendir |
| 465 |
#define _tclosedir _wclosedir |
| 466 |
#define _treaddir _wreaddir |
| 467 |
#define _trewinddir _wrewinddir |
| 468 |
#define _ttelldir _wtelldir |
| 469 |
#define _tseekdir _wseekdir |
| 470 |
|
| 471 |
#endif /* __CYGWIN__ */ |
| 472 |
|
| 473 |
#else |
| 474 |
|
| 475 |
#ifdef __cplusplus |
| 476 |
} |
| 477 |
#endif |
| 478 |
|
| 479 |
#include <string.h> |
| 480 |
|
| 481 |
#ifdef __cplusplus |
| 482 |
extern "C" { |
| 483 |
#endif |
| 484 |
|
| 485 |
#define _TEOF EOF |
| 486 |
|
| 487 |
#define __T(x) x |
| 488 |
|
| 489 |
#ifndef __CYGWIN__ |
| 490 |
|
| 491 |
#define _tmain main |
| 492 |
#define _tWinMain WinMain |
| 493 |
#ifdef _POSIX_ |
| 494 |
#define _tenviron environ |
| 495 |
#else |
| 496 |
#define _tenviron _environ |
| 497 |
#endif |
| 498 |
#define __targv __argv |
| 499 |
|
| 500 |
#define _tprintf printf |
| 501 |
#define _tprintf_l _printf_l |
| 502 |
#define _tprintf_p _printf_p |
| 503 |
#define _tprintf_p_l _printf_p_l |
| 504 |
#define _tcprintf _cprintf |
| 505 |
#define _tcprintf_l _cprintf_l |
| 506 |
#define _tcprintf_p _cprintf_p |
| 507 |
#define _tcprintf_p_l _cprintf_p_l |
| 508 |
#define _vtcprintf _vcprintf |
| 509 |
#define _vtcprintf_l _vcprintf_l |
| 510 |
#define _vtcprintf_p _vcprintf_p |
| 511 |
#define _vtcprintf_p_l _vcprintf_p_l |
| 512 |
#define _ftprintf fprintf |
| 513 |
#define _ftprintf_l _fprintf_l |
| 514 |
#define _ftprintf_p _fprintf_p |
| 515 |
#define _ftprintf_p_l _fprintf_p_l |
| 516 |
#define _stprintf sprintf |
| 517 |
#define _stprintf_l _sprintf_l |
| 518 |
#define _stprintf_p _sprintf_p |
| 519 |
#define _stprintf_p_l _sprintf_p_l |
| 520 |
#define _sctprintf _scprintf |
| 521 |
#define _sctprintf_l _scprintf_l |
| 522 |
#define _sctprintf_p _scprintf_p |
| 523 |
#define _sctprintf_p_l _scprintf_p_l |
| 524 |
#define _sntprintf _snprintf |
| 525 |
#define _sntprintf_l _snprintf_l |
| 526 |
#define _vtprintf vprintf |
| 527 |
#define _vtprintf_l _vprintf_l |
| 528 |
#define _vtprintf_p _vprintf_p |
| 529 |
#define _vtprintf_p_l _vprintf_p_l |
| 530 |
#define _vftprintf vfprintf |
| 531 |
#define _vftprintf_l _vfprintf_l |
| 532 |
#define _vftprintf_p _vfprintf_p |
| 533 |
#define _vftprintf_p_l _vfprintf_p_l |
| 534 |
#define _vstprintf vsprintf |
| 535 |
#define _vstprintf_l _vsprintf_l |
| 536 |
#define _vstprintf_p _vsprintf_p |
| 537 |
#define _vstprintf_p_l _vsprintf_p_l |
| 538 |
#define _vsctprintf _vscprintf |
| 539 |
#define _vsctprintf_l _vscprintf_l |
| 540 |
#define _vsctprintf_p _vscprintf_p |
| 541 |
#define _vsctprintf_p_l _vscprintf_p_l |
| 542 |
#define _vsntprintf _vsnprintf |
| 543 |
#define _vsntprintf_l _vsnprintf_l |
| 544 |
|
| 545 |
#define _tscanf scanf |
| 546 |
#define _tscanf_l _scanf_l |
| 547 |
#define _tcscanf _cscanf |
| 548 |
#define _tcscanf_l _cscanf_l |
| 549 |
#define _ftscanf fscanf |
| 550 |
#define _ftscanf_l _fscanf_l |
| 551 |
#define _stscanf sscanf |
| 552 |
#define _stscanf_l _sscanf_l |
| 553 |
#define _sntscanf _snscanf |
| 554 |
#define _sntscanf_l _snscanf_l |
| 555 |
|
| 556 |
#define _fgettc fgetc |
| 557 |
#define _fgettchar _fgetchar |
| 558 |
#define _fgetts fgets |
| 559 |
#define _fputtc fputc |
| 560 |
#define _fputtchar _fputchar |
| 561 |
#define _fputts fputs |
| 562 |
#define _cputts _cputs |
| 563 |
#define _gettc getc |
| 564 |
#define _gettch _getch |
| 565 |
#define _gettche _getche |
| 566 |
#define _gettchar getchar |
| 567 |
#define _getts gets |
| 568 |
#define _cgetts _cgets |
| 569 |
#define _puttc putc |
| 570 |
#define _puttchar putchar |
| 571 |
#define _puttch _putch |
| 572 |
#define _putts puts |
| 573 |
#define _ungettc ungetc |
| 574 |
#define _ungettch _ungetch |
| 575 |
|
| 576 |
#define _tcstod strtod |
| 577 |
#define _tcstol strtol |
| 578 |
#define _tcstoul strtoul |
| 579 |
#define _tstof atof |
| 580 |
#define _tstol atol |
| 581 |
#define _tstoi atoi |
| 582 |
#define _tstoi64 _atoi64 |
| 583 |
#define _tcstod_l _strtod_l |
| 584 |
#define _tcstol_l _strtol_l |
| 585 |
#define _tcstoul_l _strtoul_l |
| 586 |
#define _tstof_l _atof_l |
| 587 |
#define _tstol_l _atol_l |
| 588 |
#define _tstoi_l _atoi_l |
| 589 |
#define _tstoi64_l _atoi64_l |
| 590 |
|
| 591 |
#define _itot _itoa |
| 592 |
#define _ltot _ltoa |
| 593 |
#define _ultot _ultoa |
| 594 |
#define _ttoi atoi |
| 595 |
#define _ttol atol |
| 596 |
|
| 597 |
#define _ttoi64 _atoi64 |
| 598 |
#define _tcstoi64 _strtoi64 |
| 599 |
#define _tcstoi64_l _strtoi64_l |
| 600 |
#define _tcstoui64 _strtoui64 |
| 601 |
#define _tcstoui64_l _strtoui64_l |
| 602 |
#define _i64tot _i64toa |
| 603 |
#define _ui64tot _ui64toa |
| 604 |
|
| 605 |
#define _tcscat strcat |
| 606 |
#define _tcscpy strcpy |
| 607 |
#define _tcsdup _strdup |
| 608 |
#define _tcslen strlen |
| 609 |
#define _tcsnlen strnlen |
| 610 |
#define _tcsxfrm strxfrm |
| 611 |
#define _tcsxfrm_l _strxfrm_l |
| 612 |
#define _tcserror strerror |
| 613 |
#define __tcserror _strerror |
| 614 |
|
| 615 |
#define _texecl _execl |
| 616 |
#define _texecle _execle |
| 617 |
#define _texeclp _execlp |
| 618 |
#define _texeclpe _execlpe |
| 619 |
#define _texecv _execv |
| 620 |
#define _texecve _execve |
| 621 |
#define _texecvp _execvp |
| 622 |
#define _texecvpe _execvpe |
| 623 |
|
| 624 |
#define _tspawnl _spawnl |
| 625 |
#define _tspawnle _spawnle |
| 626 |
#define _tspawnlp _spawnlp |
| 627 |
#define _tspawnlpe _spawnlpe |
| 628 |
#define _tspawnv _spawnv |
| 629 |
#define _tspawnve _spawnve |
| 630 |
#define _tspawnvp _spawnvp |
| 631 |
#define _tspawnvpe _spawnvpe |
| 632 |
|
| 633 |
#define _tsystem system |
| 634 |
|
| 635 |
#define _tasctime asctime |
| 636 |
#define _tctime ctime |
| 637 |
#define _tctime32 _ctime32 |
| 638 |
#define _tctime64 _ctime64 |
| 639 |
#define _tstrdate _strdate |
| 640 |
#define _tstrtime _strtime |
| 641 |
#define _tutime _utime |
| 642 |
#define _tutime32 _utime32 |
| 643 |
#define _tutime64 _utime64 |
| 644 |
#define _tcsftime strftime |
| 645 |
#define _tcsftime_l _strftime_l |
| 646 |
|
| 647 |
#define _tchdir _chdir |
| 648 |
#define _tgetcwd _getcwd |
| 649 |
#define _tgetdcwd _getdcwd |
| 650 |
#define _tmkdir _mkdir |
| 651 |
#define _trmdir _rmdir |
| 652 |
|
| 653 |
#define _tfullpath _fullpath |
| 654 |
#define _tgetenv getenv |
| 655 |
#define _tmakepath _makepath |
| 656 |
#define _tpgmptr _pgmptr |
| 657 |
#define _get_tpgmptr _get_pgmptr |
| 658 |
#define _tputenv _putenv |
| 659 |
#define _tsearchenv _searchenv |
| 660 |
#define _tsplitpath _splitpath |
| 661 |
|
| 662 |
#ifdef _POSIX_ |
| 663 |
#define _tfdopen fdopen |
| 664 |
#else |
| 665 |
#define _tfdopen _fdopen |
| 666 |
#endif |
| 667 |
#define _tfsopen _fsopen |
| 668 |
#define _tfopen fopen |
| 669 |
#define _tfreopen freopen |
| 670 |
#define _tperror perror |
| 671 |
#define _tpopen _popen |
| 672 |
#define _ttempnam _tempnam |
| 673 |
#define _ttmpnam tmpnam |
| 674 |
|
| 675 |
#define _tchmod _chmod |
| 676 |
#define _tcreat _creat |
| 677 |
#define _tfindfirst _findfirst |
| 678 |
#define _tfindfirst32 _findfirst32 |
| 679 |
#define _tfindfirst64 _findfirst64 |
| 680 |
#define _tfindfirsti64 _findfirsti64 |
| 681 |
#define _tfindfirst32i64 _findfirst32i64 |
| 682 |
#define _tfindfirst64i32 _findfirst64i32 |
| 683 |
#define _tfindnext _findnext |
| 684 |
#define _tfindnext32 _findnext32 |
| 685 |
#define _tfindnext64 _findnext64 |
| 686 |
#define _tfindnexti64 _findnexti64 |
| 687 |
#define _tfindnext32i64 _findnext32i64 |
| 688 |
#define _tfindnext64i32 _findnext64i32 |
| 689 |
#define _tmktemp _mktemp |
| 690 |
|
| 691 |
#ifdef _POSIX_ |
| 692 |
#define _topen open |
| 693 |
#define _taccess access |
| 694 |
#else |
| 695 |
#define _topen _open |
| 696 |
#define _taccess _access |
| 697 |
#endif |
| 698 |
|
| 699 |
#define _tremove remove |
| 700 |
#define _trename rename |
| 701 |
#define _tsopen _sopen |
| 702 |
#define _tunlink _unlink |
| 703 |
|
| 704 |
#define _tfinddata_t _finddata_t |
| 705 |
#define _tfinddata32_t _finddata32_t |
| 706 |
#define _tfinddata64_t __finddata64_t |
| 707 |
#define _tfinddatai64_t _finddatai64_t |
| 708 |
#define _tfinddata32i64_t _finddata32i64_t |
| 709 |
#define _tfinddata64i32_t _finddata64i32_t |
| 710 |
|
| 711 |
#define _istascii __isascii |
| 712 |
#define _istcntrl iscntrl |
| 713 |
#define _istcntrl_l _iscntrl_l |
| 714 |
#define _istxdigit isxdigit |
| 715 |
#define _istxdigit_l _isxdigit_l |
| 716 |
|
| 717 |
#define _tstat _stat |
| 718 |
#define _tstat32 _stat32 |
| 719 |
#define _tstat32i64 _stat32i64 |
| 720 |
#define _tstat64 _stat64 |
| 721 |
#define _tstat64i32 _stat64i32 |
| 722 |
#define _tstati64 _stati64 |
| 723 |
|
| 724 |
#define _tsetlocale setlocale |
| 725 |
|
| 726 |
#if __MSVCRT_VERSION__ >= 0x800 |
| 727 |
#define _fgettc_nolock _fgetwc_nolock |
| 728 |
#define _fputtc_nolock _fputwc_nolock |
| 729 |
#define _gettc_nolock _getwc_nolock |
| 730 |
#define _gettch_nolock _getwch_nolock |
| 731 |
#define _gettche_nolock _getwche_nolock |
| 732 |
#define _gettchar_nolock _getwchar_nolock |
| 733 |
#define _puttc_nolock _putwc_nolock |
| 734 |
#define _puttchar_nolock _putwchar_nolock |
| 735 |
#define _puttch_nolock _putwch_nolock |
| 736 |
#define _ungettc_nolock _ungetwc_nolock |
| 737 |
#define _ungettch_nolock _ungetwch_nolock |
| 738 |
#define _tgetdcwd_nolock _wgetdcwd_nolock |
| 739 |
#define _fgettc_nolock _fgetc_nolock |
| 740 |
#define _fputtc_nolock _fputc_nolock |
| 741 |
#define _gettc_nolock _getc_nolock |
| 742 |
#define _gettch_nolock _getch_nolock |
| 743 |
#define _gettche_nolock _getche_nolock |
| 744 |
#define _gettchar_nolock _getchar_nolock |
| 745 |
#define _puttc_nolock _putc_nolock |
| 746 |
#define _puttchar_nolock _putchar_nolock |
| 747 |
#define _puttch_nolock _putch_nolock |
| 748 |
#define _ungettc_nolock _ungetc_nolock |
| 749 |
#define _ungettch_nolock _ungetch_nolock |
| 750 |
#define _tgetdcwd_nolock _getdcwd_nolock |
| 751 |
#endif |
| 752 |
|
| 753 |
#endif /* __CYGWIN__ */ |
| 754 |
|
| 755 |
#ifdef _MBCS |
| 756 |
|
| 757 |
#ifdef __cplusplus |
| 758 |
} |
| 759 |
#endif |
| 760 |
|
| 761 |
#ifndef __CYGWIN__ |
| 762 |
|
| 763 |
#include <mbstring.h> |
| 764 |
|
| 765 |
#ifdef __cplusplus |
| 766 |
extern "C" { |
| 767 |
#endif |
| 768 |
|
| 769 |
#ifndef __TCHAR_DEFINED |
| 770 |
typedef char _TCHAR; |
| 771 |
typedef signed char _TSCHAR; |
| 772 |
typedef unsigned char _TUCHAR; |
| 773 |
typedef unsigned char _TXCHAR; |
| 774 |
typedef unsigned int _TINT; |
| 775 |
#define __TCHAR_DEFINED |
| 776 |
#endif |
| 777 |
|
| 778 |
#ifndef NO_OLDNAMES |
| 779 |
#ifndef _TCHAR_DEFINED |
| 780 |
#define _TCHAR_DEFINED |
| 781 |
typedef char TCHAR,*PTCHAR; |
| 782 |
typedef unsigned char TBYTE,*PTBYTE; |
| 783 |
#endif |
| 784 |
#endif |
| 785 |
|
| 786 |
#ifdef _MB_MAP_DIRECT |
| 787 |
|
| 788 |
#define _tcschr _mbschr |
| 789 |
#define _tcscspn _mbscspn |
| 790 |
#define _tcsncat _mbsnbcat |
| 791 |
#define _tcsncat_l _mbsnbcat_l |
| 792 |
#define _tcsncpy _mbsnbcpy |
| 793 |
#define _tcsncpy_l _mbsnbcpy_l |
| 794 |
#define _tcspbrk _mbspbrk |
| 795 |
#define _tcsrchr _mbsrchr |
| 796 |
#define _tcsspn _mbsspn |
| 797 |
#define _tcsstr _mbsstr |
| 798 |
#define _tcstok _mbstok |
| 799 |
#define _tcstok_l _mbstok_l |
| 800 |
|
| 801 |
#define _tcsnset _mbsnbset |
| 802 |
#define _tcsnset_l _mbsnbset_l |
| 803 |
#define _tcsrev _mbsrev |
| 804 |
#define _tcsset _mbsset |
| 805 |
#define _tcsset_l _mbsset_l |
| 806 |
|
| 807 |
#define _tcscmp _mbscmp |
| 808 |
#define _tcsicmp _mbsicmp |
| 809 |
#define _tcsicmp_l _mbsicmp_l |
| 810 |
#define _tcsnccmp _mbsncmp |
| 811 |
#define _tcsncmp _mbsnbcmp |
| 812 |
#define _tcsncicmp _mbsnicmp |
| 813 |
#define _tcsncicmp_l _mbsnicmp_l |
| 814 |
#define _tcsnicmp _mbsnbicmp |
| 815 |
#define _tcsnicmp_l _mbsnbicmp_l |
| 816 |
|
| 817 |
#define _tcscoll _mbscoll |
| 818 |
#define _tcscoll_l _mbscoll_l |
| 819 |
#define _tcsicoll _mbsicoll |
| 820 |
#define _tcsicoll_l _mbsicoll_l |
| 821 |
#define _tcsnccoll _mbsncoll |
| 822 |
#define _tcsnccoll_l _mbsncoll_l |
| 823 |
#define _tcsncoll _mbsnbcoll |
| 824 |
#define _tcsncoll_l _mbsnbcoll_l |
| 825 |
#define _tcsncicoll _mbsnicoll |
| 826 |
#define _tcsncicoll_l _mbsnicoll_l |
| 827 |
#define _tcsnicoll _mbsnbicoll |
| 828 |
#define _tcsnicoll_l _mbsnbicoll_l |
| 829 |
|
| 830 |
#define _tcsclen _mbslen |
| 831 |
#define _tcscnlen _mbsnlen |
| 832 |
#define _tcsclen_l _mbslen_l |
| 833 |
#define _tcscnlen_l _mbsnlen_l |
| 834 |
#define _tcsnccat _mbsncat |
| 835 |
#define _tcsnccat_l _mbsncat_l |
| 836 |
#define _tcsnccpy _mbsncpy |
| 837 |
#define _tcsnccpy_l _mbsncpy_l |
| 838 |
#define _tcsncset _mbsnset |
| 839 |
#define _tcsncset_l _mbsnset_l |
| 840 |
|
| 841 |
#define _tcsdec _mbsdec |
| 842 |
#define _tcsinc _mbsinc |
| 843 |
#define _tcsnbcnt _mbsnbcnt |
| 844 |
#define _tcsnccnt _mbsnccnt |
| 845 |
#define _tcsnextc _mbsnextc |
| 846 |
#define _tcsninc _mbsninc |
| 847 |
#define _tcsspnp _mbsspnp |
| 848 |
|
| 849 |
#define _tcslwr _mbslwr |
| 850 |
#define _tcslwr_l _mbslwr_l |
| 851 |
#define _tcsupr _mbsupr |
| 852 |
#define _tcsupr_l _mbsupr_l |
| 853 |
|
| 854 |
#define _tclen _mbclen |
| 855 |
#define _tccpy _mbccpy |
| 856 |
#define _tccpy_l _mbccpy_l |
| 857 |
#else |
| 858 |
|
| 859 |
_CRTIMP _CONST_RETURN char *__cdecl _tcschr(const char *_Str,unsigned int _Val); |
| 860 |
_CRTIMP size_t __cdecl _tcscspn(const char *_Str,const char *_Control); |
| 861 |
_CRTIMP char *__cdecl _tcsncat(char *_Dst,const char *_Src,size_t _MaxCount); |
| 862 |
_CRTIMP char *__cdecl _tcsncat_l(char *_Dst,const char *_Src,size_t _MaxCount,_locale_t _Locale); |
| 863 |
_CRTIMP char *__cdecl _tcsncpy(char *_Dst,const char *_Src,size_t _MaxCount); |
| 864 |
_CRTIMP char *__cdecl _tcsncpy_l(char *_Dst,const char *_Src,size_t _MaxCount,_locale_t _Locale); |
| 865 |
_CRTIMP _CONST_RETURN char *__cdecl _tcspbrk(const char *_Str,const char *_Control); |
| 866 |
_CRTIMP _CONST_RETURN char *__cdecl _tcsrchr(const char *_Str,unsigned int _Ch); |
| 867 |
_CRTIMP size_t __cdecl _tcsspn(const char *_Str,const char *_Control); |
| 868 |
_CRTIMP _CONST_RETURN char *__cdecl _tcsstr(const char *_Str,const char *_Substr); |
| 869 |
_CRTIMP char *__cdecl _tcstok(char *_Str,const char *_Delim); |
| 870 |
_CRTIMP char *__cdecl _tcstok_l(char *_Str,const char *_Delim,_locale_t _Locale); |
| 871 |
_CRTIMP char *__cdecl _tcsnset(char *_Str,unsigned int _Val,size_t _MaxCount); |
| 872 |
_CRTIMP char *__cdecl _tcsrev(char *_Str); |
| 873 |
_CRTIMP char *__cdecl _tcsset(char *_Str,unsigned int _Val); |
| 874 |
_CRTIMP char *__cdecl _tcsset_l(char *_Str,unsigned int _Val,_locale_t _Locale); |
| 875 |
_CRTIMP int __cdecl _tcscmp(const char *_Str1,const char *_Str); |
| 876 |
_CRTIMP int __cdecl _tcsicmp(const char *_Str1,const char *_Str2); |
| 877 |
_CRTIMP int __cdecl _tcsicmp_l(const char *_Str1,const char *_Str2,_locale_t _Locale); |
| 878 |
_CRTIMP int __cdecl _tcsnccmp(const char *_Str1,const char *_Str2,size_t _MaxCount); |
| 879 |
_CRTIMP int __cdecl _tcsncmp(const char *_Str1,const char *_Str2,size_t _MaxCount); |
| 880 |
_CRTIMP int __cdecl _tcsncicmp(const char *_Str1,const char *_Str2,size_t _MaxCount); |
| 881 |
_CRTIMP int __cdecl _tcsncicmp_l(const char *_Str1,const char *_Str2,size_t _MaxCount,_locale_t _Locale); |
| 882 |
_CRTIMP int __cdecl _tcsnicmp(const char *_Str1,const char *_Str2,size_t _MaxCount); |
| 883 |
_CRTIMP int __cdecl _tcsnicmp_l(const char *_Str1,const char *_Str2,size_t _MaxCount,_locale_t _Locale); |
| 884 |
_CRTIMP int __cdecl _tcscoll(const char *_Str1,const char *_Str2); |
| 885 |
_CRTIMP int __cdecl _tcscoll_l(const char *_Str1,const char *_Str2,_locale_t _Locale); |
| 886 |
_CRTIMP int __cdecl _tcsicoll(const char *_Str1,const char *_Str2); |
| 887 |
_CRTIMP int __cdecl _tcsicoll_l(const char *_Str1,const char *_Str2,_locale_t _Locale); |
| 888 |
_CRTIMP int __cdecl _tcsnccoll(const char *_Str1,const char *_Str2,size_t _MaxCount); |
| 889 |
_CRTIMP int __cdecl _tcsnccoll_l(const char *_Str1,const char *_Str2,size_t _MaxCount,_locale_t _Locale); |
| 890 |
_CRTIMP int __cdecl _tcsncoll(const char *_Str1,const char *_Str2,size_t _MaxCount); |
| 891 |
_CRTIMP int __cdecl _tcsncoll_l(const char *_Str1,const char *_Str2,size_t _MaxCount,_locale_t _Locale); |
| 892 |
_CRTIMP int __cdecl _tcsncicoll(const char *_Str1,const char *_Str2,size_t _MaxCount); |
| 893 |
_CRTIMP int __cdecl _tcsncicoll_l(const char *_Str1,const char *_Str2,size_t _MaxCount,_locale_t _Locale); |
| 894 |
_CRTIMP int __cdecl _tcsnicoll(const char *_Str1,const char *_Str2,size_t _MaxCount); |
| 895 |
_CRTIMP int __cdecl _tcsnicoll_l(const char *_Str1,const char *_Str2,size_t _MaxCount,_locale_t _Locale); |
| 896 |
_CRTIMP size_t __cdecl _tcsclen(const char *_Str); |
| 897 |
_CRTIMP size_t __cdecl _tcscnlen(const char *_Str,size_t _MaxCount); |
| 898 |
_CRTIMP size_t __cdecl _tcsclen_l(const char *_Str,_locale_t _Locale); |
| 899 |
_CRTIMP size_t __cdecl _tcscnlen_l(const char *_Str,size_t _MaxCount,_locale_t _Locale); |
| 900 |
_CRTIMP char *__cdecl _tcsnccat(char *_Dst,const char *_Src,size_t _MaxCount); |
| 901 |
_CRTIMP char *__cdecl _tcsnccat_l(char *_Dst,const char *_Src,size_t _MaxCount,_locale_t _Locale); |
| 902 |
_CRTIMP char *__cdecl _tcsnccpy(char *_Dst,const char *_Src,size_t _MaxCount); |
| 903 |
_CRTIMP char *__cdecl _tcsnccpy_l(char *_Dst,const char *_Src,size_t _MaxCount,_locale_t _Locale); |
| 904 |
_CRTIMP char *__cdecl _tcsncset(char *_Str,unsigned int _Val,size_t _MaxCount); |
| 905 |
_CRTIMP char *__cdecl _tcsdec(const char *_Start,const char *_Pos); |
| 906 |
_CRTIMP char *__cdecl _tcsinc(const char *_Ptr); |
| 907 |
_CRTIMP size_t __cdecl _tcsnbcnt(const char *_Str,size_t _MaxCount); |
| 908 |
_CRTIMP size_t __cdecl _tcsnccnt(const char *_Str,size_t _MaxCount); |
| 909 |
_CRTIMP unsigned int __cdecl _tcsnextc (const char *_Str); |
| 910 |
_CRTIMP char *__cdecl _tcsninc(const char *_Ptr,size_t _Count); |
| 911 |
_CRTIMP char *__cdecl _tcsspnp(const char *_Str1,const char *_Str2); |
| 912 |
_CRTIMP char *__cdecl _tcslwr(char *_Str); |
| 913 |
_CRTIMP char *__cdecl _tcslwr_l(char *_Str,_locale_t _Locale); |
| 914 |
_CRTIMP char *__cdecl _tcsupr(char *_Str); |
| 915 |
_CRTIMP char *__cdecl _tcsupr_l(char *_Str,_locale_t _Locale); |
| 916 |
_CRTIMP size_t __cdecl _tclen(const char *_Str); |
| 917 |
_CRTIMP void __cdecl _tccpy(char *_DstCh,const char *_SrcCh); |
| 918 |
|
| 919 |
#ifdef __cplusplus |
| 920 |
#ifndef _CPP_TCHAR_INLINES_DEFINED |
| 921 |
#define _CPP_TCHAR_INLINES_DEFINED |
| 922 |
extern "C++" { |
| 923 |
extern inline char *__cdecl _tcschr(char *_S,unsigned int _C) { return ((char *)_tcschr((const char *)_S,_C)); } |
| 924 |
extern inline char *__cdecl _tcspbrk(char *_S,const char *_P) { return ((char *)_tcspbrk((const char *)_S,_P)); } |
| 925 |
extern inline char *__cdecl _tcsrchr(char *_S,unsigned int _C) { return ((char *)_tcsrchr((const char *)_S,_C)); } |
| 926 |
extern inline char *__cdecl _tcsstr(char *_S,const char *_P) { return ((char *)_tcsstr((const char *)_S,_P)); } |
| 927 |
} |
| 928 |
#endif |
| 929 |
#endif |
| 930 |
#endif |
| 931 |
|
| 932 |
#define _tccmp(_cp1,_cp2) _tcsnccmp(_cp1,_cp2,1) |
| 933 |
|
| 934 |
#define _istalnum _ismbcalnum |
| 935 |
#define _istalnum_l _ismbcalnum_l |
| 936 |
#define _istalpha _ismbcalpha |
| 937 |
#define _istalpha_l _ismbcalpha_l |
| 938 |
#define _istdigit _ismbcdigit |
| 939 |
#define _istdigit_l _ismbcdigit_l |
| 940 |
#define _istgraph _ismbcgraph |
| 941 |
#define _istgraph_l _ismbcgraph_l |
| 942 |
#define _istlegal _ismbclegal |
| 943 |
#define _istlegal_l _ismbclegal_l |
| 944 |
#define _istlower _ismbclower |
| 945 |
#define _istlower_l _ismbclower_l |
| 946 |
#define _istprint _ismbcprint |
| 947 |
#define _istprint_l _ismbcprint_l |
| 948 |
#define _istpunct _ismbcpunct |
| 949 |
#define _istpunct_l _ismbcpunct_l |
| 950 |
#define _istspace _ismbcspace |
| 951 |
#define _istspace_l _ismbcspace_l |
| 952 |
#define _istupper _ismbcupper |
| 953 |
#define _istupper_l _ismbcupper_l |
| 954 |
|
| 955 |
#define _totupper _mbctoupper |
| 956 |
#define _totupper_l _mbctoupper_l |
| 957 |
#define _totlower _mbctolower |
| 958 |
#define _totlower_l _mbctolower_l |
| 959 |
|
| 960 |
#define _istlead _ismbblead |
| 961 |
#define _istleadbyte isleadbyte |
| 962 |
#define _istleadbyte_l _isleadbyte_l |
| 963 |
|
| 964 |
#endif /* __CYGWIN__ */ |
| 965 |
|
| 966 |
#else |
| 967 |
|
| 968 |
#ifndef __TCHAR_DEFINED |
| 969 |
#define __TCHAR_DEFINED |
| 970 |
typedef char _TCHAR; |
| 971 |
typedef signed char _TSCHAR; |
| 972 |
typedef unsigned char _TUCHAR; |
| 973 |
typedef char _TXCHAR; |
| 974 |
typedef int _TINT; |
| 975 |
#endif |
| 976 |
|
| 977 |
#ifndef NO_OLDNAMES |
| 978 |
#ifndef _TCHAR_DEFINED |
| 979 |
#define _TCHAR_DEFINED |
| 980 |
typedef char TCHAR,*PTCHAR; |
| 981 |
typedef unsigned char TBYTE,*PTBYTE; |
| 982 |
#endif |
| 983 |
#endif |
| 984 |
|
| 985 |
#ifndef __CYGWIN__ |
| 986 |
|
| 987 |
#define _tcschr strchr |
| 988 |
#define _tcscspn strcspn |
| 989 |
#define _tcsncat strncat |
| 990 |
#define _tcsncat_l _strncat_l |
| 991 |
#define _tcsncpy strncpy |
| 992 |
#define _tcsncpy_l _strncpy_l |
| 993 |
#define _tcspbrk strpbrk |
| 994 |
#define _tcsrchr strrchr |
| 995 |
#define _tcsspn strspn |
| 996 |
#define _tcsstr strstr |
| 997 |
#define _tcstok strtok |
| 998 |
#define _tcstok_l _strtok_l |
| 999 |
|
| 1000 |
#define _tcsnset _strnset |
| 1001 |
#define _tcsnset_l _strnset_l |
| 1002 |
#define _tcsrev _strrev |
| 1003 |
#define _tcsset _strset |
| 1004 |
|
| 1005 |
#define _tcscmp strcmp |
| 1006 |
#define _tcsicmp _stricmp |
| 1007 |
#define _tcsicmp_l _stricmp_l |
| 1008 |
#define _tcsnccmp strncmp |
| 1009 |
#define _tcsncmp strncmp |
| 1010 |
#define _tcsncicmp _strnicmp |
| 1011 |
#define _tcsncicmp_l _strnicmp_l |
| 1012 |
#define _tcsnicmp _strnicmp |
| 1013 |
#define _tcsnicmp_l _strnicmp_l |
| 1014 |
|
| 1015 |
#define _tcscoll strcoll |
| 1016 |
#define _tcscoll_l _strcoll_l |
| 1017 |
#define _tcsicoll _stricoll |
| 1018 |
#define _tcsicoll_l _stricoll_l |
| 1019 |
#define _tcsnccoll _strncoll |
| 1020 |
#define _tcsnccoll_l _strncoll_l |
| 1021 |
#define _tcsncoll _strncoll |
| 1022 |
#define _tcsncoll_l _strncoll_l |
| 1023 |
#define _tcsncicoll _strnicoll |
| 1024 |
#define _tcsncicoll_l _strnicoll_l |
| 1025 |
#define _tcsnicoll _strnicoll |
| 1026 |
#define _tcsnicoll_l _strnicoll_l |
| 1027 |
|
| 1028 |
#define _tcsclen strlen |
| 1029 |
#define _tcscnlen strnlen |
| 1030 |
#define _tcsclen_l(_String,_Locale) strlen(_String) |
| 1031 |
#define _tcscnlen_l(_String,_Max_count,_Locale) strnlen_l((_String),(_Max_count)) |
| 1032 |
#define _tcsnccat strncat |
| 1033 |
#define _tcsnccat_l _strncat_l |
| 1034 |
#define _tcsnccpy strncpy |
| 1035 |
#define _tcsnccpy_l _strncpy_l |
| 1036 |
#define _tcsncset _strnset |
| 1037 |
|
| 1038 |
#define _tcsdec _strdec |
| 1039 |
#define _tcsinc _strinc |
| 1040 |
#define _tcsnbcnt _strncnt |
| 1041 |
#define _tcsnccnt _strncnt |
| 1042 |
#define _tcsnextc _strnextc |
| 1043 |
#define _tcsninc _strninc |
| 1044 |
#define _tcsspnp _strspnp |
| 1045 |
|
| 1046 |
#define _tcslwr _strlwr |
| 1047 |
#define _tcslwr_l _strlwr_l |
| 1048 |
#define _tcsupr _strupr |
| 1049 |
#define _tcsupr_l _strupr_l |
| 1050 |
#define _tcsxfrm strxfrm |
| 1051 |
#define _tcsxfrm_l _strxfrm_l |
| 1052 |
|
| 1053 |
#define _istlead(_Char) (0) |
| 1054 |
#define _istleadbyte(_Char) (0) |
| 1055 |
#define _istleadbyte_l(_Char,_Locale) (0) |
| 1056 |
|
| 1057 |
#define _tclen(_pc) (1) |
| 1058 |
#define _tccpy(_pc1,_cpc2) (*(_pc1) = *(_cpc2)) |
| 1059 |
#define _tccmp(_cpc1,_cpc2) (((unsigned char)*(_cpc1))-((unsigned char)*(_cpc2))) |
| 1060 |
|
| 1061 |
/* dirent structures and functions */ |
| 1062 |
#define _tdirent dirent |
| 1063 |
#define _TDIR DIR |
| 1064 |
#define _topendir opendir |
| 1065 |
#define _tclosedir closedir |
| 1066 |
#define _treaddir readdir |
| 1067 |
#define _trewinddir rewinddir |
| 1068 |
#define _ttelldir telldir |
| 1069 |
#define _tseekdir seekdir |
| 1070 |
|
| 1071 |
#define _istalnum isalnum |
| 1072 |
#define _istalnum_l _isalnum_l |
| 1073 |
#define _istalpha isalpha |
| 1074 |
#define _istalpha_l _isalpha_l |
| 1075 |
#define _istdigit isdigit |
| 1076 |
#define _istdigit_l _isdigit_l |
| 1077 |
#define _istgraph isgraph |
| 1078 |
#define _istgraph_l _isgraph_l |
| 1079 |
#define _istlower islower |
| 1080 |
#define _istlower_l _islower_l |
| 1081 |
#define _istprint isprint |
| 1082 |
#define _istprint_l _isprint_l |
| 1083 |
#define _istpunct ispunct |
| 1084 |
#define _istpunct_l _ispunct_l |
| 1085 |
#define _istspace isspace |
| 1086 |
#define _istspace_l _isspace_l |
| 1087 |
#define _istupper isupper |
| 1088 |
#define _istupper_l _isupper_l |
| 1089 |
|
| 1090 |
#define _totupper toupper |
| 1091 |
#define _totupper_l _toupper_l |
| 1092 |
#define _totlower tolower |
| 1093 |
#define _totlower_l _tolower_l |
| 1094 |
|
| 1095 |
#define _istlegal(_c) (1) |
| 1096 |
|
| 1097 |
#ifndef NULL |
| 1098 |
#ifdef __cplusplus |
| 1099 |
#ifndef _WIN64 |
| 1100 |
#define NULL 0 |
| 1101 |
#else |
| 1102 |
#define NULL 0LL |
| 1103 |
#endif /* W64 */ |
| 1104 |
#else |
| 1105 |
#define NULL ((void *)0) |
| 1106 |
#endif |
| 1107 |
#endif |
| 1108 |
|
| 1109 |
#define _strdec(_cpc1,_cpc2) ((_cpc1)>=(_cpc2) ? NULL : (_cpc2)-1) |
| 1110 |
#define _strinc(_pc) ((_pc)+1) |
| 1111 |
#define _strnextc(_cpc) ((unsigned int) *(const unsigned char *)(_cpc)) |
| 1112 |
#define _strninc(_pc,_sz) (((_pc)+(_sz))) |
| 1113 |
_CRTIMP size_t __cdecl __strncnt(const char *_Str,size_t _Cnt); |
| 1114 |
#define _strncnt(_cpc,_sz) (__strncnt(_cpc,_sz)) |
| 1115 |
#define _strspnp(_cpc1,_cpc2) (!_cpc1 ? NULL : ((*((_cpc1)+strspn(_cpc1,_cpc2))) ? ((_cpc1)+strspn(_cpc1,_cpc2)) : NULL)) |
| 1116 |
|
| 1117 |
#define _strncpy_l(_Destination,_Source,_Count,_Locale) (strncpy(_Destination,_Source,_Count)) |
| 1118 |
#define _strncat_l(_Destination,_Source,_Count,_Locale) (strncat(_Destination,_Source,_Count)) |
| 1119 |
#define _strtok_l(_String,_Delimiters,_Locale) (strtok(_String,_Delimiters)) |
| 1120 |
#define _strnset_l(_Destination,_Value,_Count,_Locale) (_strnset(_Destination,_Value,_Count)) |
| 1121 |
#define _strset_l(_Destination,_Value,_Locale) (_strset(_Destination,_Value)) |
| 1122 |
#endif |
| 1123 |
#endif |
| 1124 |
|
| 1125 |
#endif /* __CYGWIN__ */ |
| 1126 |
|
| 1127 |
#define _T(x) __T(x) |
| 1128 |
#define _TEXT(x) __T(x) |
| 1129 |
|
| 1130 |
#ifdef __cplusplus |
| 1131 |
} |
| 1132 |
#endif |
| 1133 |
|
| 1134 |
#ifndef __CYGWIN__ |
| 1135 |
#include <sec_api/tchar_s.h> |
| 1136 |
#endif /* __CYGWIN__ */ |
| 1137 |
#endif |