tchar.h 31 KB

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