2002-03-09 23:29:33 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 1998 Francois Gouget
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 12:49:52 +00:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2002-03-09 23:29:33 +00:00
|
|
|
*/
|
|
|
|
|
1998-12-26 11:50:11 +00:00
|
|
|
#ifndef __WINE_TCHAR_H
|
|
|
|
#define __WINE_TCHAR_H
|
|
|
|
|
2003-01-04 00:52:18 +00:00
|
|
|
#ifdef __WINESRC__
|
2001-04-23 18:23:00 +00:00
|
|
|
#error Wine should not include tchar.h internally
|
|
|
|
#endif
|
|
|
|
|
1999-02-10 06:48:49 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
1998-12-26 11:50:11 +00:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* tchar routines
|
|
|
|
*/
|
2001-04-23 18:23:00 +00:00
|
|
|
#define _strdec(start,current) ((start)<(current) ? ((char*)(current))-1 : NULL)
|
|
|
|
#define _strinc(current) (((char*)(current))+1)
|
|
|
|
#define _strncnt(str,max) (strlen(str)>(max) ? (max) : strlen(str))
|
|
|
|
#define _strnextc(str) ((unsigned int)*(str))
|
|
|
|
#define _strninc(str,n) (((char*)(str))+(n))
|
|
|
|
#define _strspnp(s1,s2) (*((s1)+=strspn((s1),(s2))) ? (s1) : NULL)
|
1998-12-26 11:50:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* tchar mappings
|
|
|
|
*/
|
|
|
|
#ifndef _UNICODE
|
2004-04-26 23:32:15 +00:00
|
|
|
# ifndef _MBCS
|
|
|
|
# include <string.h>
|
|
|
|
# define WINE_tchar_routine(std,mbcs,unicode) std
|
|
|
|
# else
|
|
|
|
# include <mbstring.h>
|
|
|
|
# define WINE_tchar_routine(std,mbcs,unicode) mbcs
|
|
|
|
# endif
|
|
|
|
#else /* _UNICODE */
|
|
|
|
# include <wchar.h>
|
|
|
|
# define WINE_tchar_routine(std,mbcs,unicode) unicode
|
1998-12-26 11:50:11 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define WINE_tchar_true(a) (1)
|
|
|
|
#define WINE_tchar_false(a) (0)
|
|
|
|
#define WINE_tchar_tclen(a) (1)
|
|
|
|
#define WINE_tchar_tccpy(a,b) do { *(a)=*(b); } while (0)
|
|
|
|
|
2001-09-19 22:24:54 +00:00
|
|
|
#define __targv WINE_tchar_routine(__argv, __argv, __wargv)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _fgettc WINE_tchar_routine(fgetc, fgetc, fgetwc)
|
|
|
|
#define _fgettchar WINE_tchar_routine(fgetchar, fgetchar, _fgetwchar)
|
|
|
|
#define _fgetts WINE_tchar_routine(fgets, fgets, fgetws)
|
|
|
|
#define _fputtc WINE_tchar_routine(fputc, fputc, fputwc)
|
|
|
|
#define _fputtchar WINE_tchar_routine(fputchar, fputchar, _fputwchar)
|
|
|
|
#define _fputts WINE_tchar_routine(fputs, fputs, fputws)
|
|
|
|
#define _ftprintf WINE_tchar_routine(fprintf, fprintf, fwprintf)
|
|
|
|
#define _ftscanf WINE_tchar_routine(fscanf, fscanf, fwscanf)
|
|
|
|
#define _gettc WINE_tchar_routine(getc, getc, getwc)
|
|
|
|
#define _gettchar WINE_tchar_routine(getchar, getchar, getwchar)
|
|
|
|
#define _getts WINE_tchar_routine(gets, gets, getws)
|
2016-08-23 01:23:24 +00:00
|
|
|
#define _istalnum WINE_tchar_routine(isalnum, _ismbcalnum, iswalnum)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _istalpha WINE_tchar_routine(isalpha, _ismbcalpha, iswalpha)
|
2003-01-07 23:09:54 +00:00
|
|
|
#define _istascii WINE_tchar_routine(isascii, __isascii, iswascii)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _istcntrl WINE_tchar_routine(iscntrl, iscntrl, iswcntrl)
|
|
|
|
#define _istdigit WINE_tchar_routine(isdigit, _ismbcdigit, iswdigit)
|
|
|
|
#define _istgraph WINE_tchar_routine(isgraph, _ismbcgraph, iswgraph)
|
|
|
|
#define _istlead WINE_tchar_routine(WINE_tchar_false,_ismbblead, WINE_tchar_false)
|
|
|
|
#define _istleadbyte WINE_tchar_routine(WINE_tchar_false,isleadbyte, WINE_tchar_false)
|
|
|
|
#define _istlegal WINE_tchar_routine(WINE_tchar_true, _ismbclegal, WINE_tchar_true)
|
|
|
|
#define _istlower WINE_tchar_routine(islower, _ismbcslower,iswlower)
|
|
|
|
#define _istprint WINE_tchar_routine(isprint, _ismbcprint, iswprint)
|
|
|
|
#define _istpunct WINE_tchar_routine(ispunct, _ismbcpunct, iswpunct)
|
|
|
|
#define _istspace WINE_tchar_routine(isspace, _ismbcspace, iswspace)
|
|
|
|
#define _istupper WINE_tchar_routine(isupper, _ismbcupper, iswupper)
|
|
|
|
#define _istxdigit WINE_tchar_routine(isxdigit, isxdigit, iswxdigit)
|
|
|
|
#define _itot WINE_tchar_routine(_itoa, _itoa, _itow)
|
2019-08-02 02:20:32 +00:00
|
|
|
#define _itot_s WINE_tchar_routine(_itoa_s, _itoa_s, _itow_s)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _ltot WINE_tchar_routine(_ltoa, _ltoa, _ltow)
|
2019-08-02 02:20:32 +00:00
|
|
|
#define _ltot_s WINE_tchar_routine(_ltoa_s, _ltoa_s, _ltow_s)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _puttc WINE_tchar_routine(putc, putc, putwc)
|
|
|
|
#define _puttchar WINE_tchar_routine(putchar, putchar, putwchar)
|
|
|
|
#define _putts WINE_tchar_routine(puts, puts, putws)
|
2018-11-09 23:16:43 +00:00
|
|
|
#define _sntprintf WINE_tchar_routine(snprintf, snprintf, _snwprintf)
|
1999-02-10 06:48:49 +00:00
|
|
|
#define _stprintf WINE_tchar_routine(sprintf, sprintf, swprintf)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _stscanf WINE_tchar_routine(sscanf, sscanf, swscanf)
|
2003-01-07 23:09:54 +00:00
|
|
|
#define _taccess WINE_tchar_routine(access, _access, _waccess)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _tasctime WINE_tchar_routine(asctime, asctime, _wasctime)
|
|
|
|
#define _tccpy WINE_tchar_routine(WINE_tchar_tccpy,_mbccpy, WINE_tchar_tccpy)
|
2003-01-07 23:09:54 +00:00
|
|
|
#define _tchdir WINE_tchar_routine(chdir, _chdir, _wchdir)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _tclen WINE_tchar_routine(WINE_tchar_tclen,_mbclen, WINE_tchar_tclen)
|
2003-01-07 23:09:54 +00:00
|
|
|
#define _tchmod WINE_tchar_routine(chmod, _chmod, _wchmod)
|
|
|
|
#define _tcreat WINE_tchar_routine(creat, _creat, _wcreat)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _tcscat WINE_tchar_routine(strcat, _mbscat, wcscat)
|
2020-02-13 12:13:21 +00:00
|
|
|
#define _tcscat_s WINE_tchar_routine(strcat_s, _mbscat_s, wcscat_s)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _tcschr WINE_tchar_routine(strchr, _mbschr, wcschr)
|
|
|
|
#define _tcsclen WINE_tchar_routine(strlen, _mbslen, wcslen)
|
|
|
|
#define _tcscmp WINE_tchar_routine(strcmp, _mbscmp, wcscmp)
|
|
|
|
#define _tcscoll WINE_tchar_routine(strcoll, _mbscoll, wcscoll)
|
|
|
|
#define _tcscpy WINE_tchar_routine(strcpy, _mbscpy, wcscpy)
|
2019-08-02 02:20:32 +00:00
|
|
|
#define _tcscpy_s WINE_tchar_routine(strcpy_s, _mbscpy_s, wcscpy_s)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _tcscspn WINE_tchar_routine(strcspn, _mbscspn, wcscspn)
|
|
|
|
#define _tcsdec WINE_tchar_routine(_strdec, _mbsdec, _wcsdec)
|
2003-01-07 23:09:54 +00:00
|
|
|
#define _tcsdup WINE_tchar_routine(strdup, _mbsdup, _wcsdup)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _tcsftime WINE_tchar_routine(strftime, strftime, wcsftime)
|
2024-01-18 05:29:59 +00:00
|
|
|
#define _tcsftime_l WINE_tchar_routine(_strftime_l, _strftime_l, _wcsftime_l)
|
2003-01-07 23:09:54 +00:00
|
|
|
#define _tcsicmp WINE_tchar_routine(strcasecmp, _mbsicmp, _wcsicmp)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _tcsicoll WINE_tchar_routine(_stricoll, _stricoll, _wcsicoll)
|
|
|
|
#define _tcsinc WINE_tchar_routine(_strinc, _mbsinc, _wcsinc)
|
|
|
|
#define _tcslen WINE_tchar_routine(strlen, strlen, wcslen)
|
|
|
|
#define _tcslwr WINE_tchar_routine(_strlwr, _mbslwr, _wcslwr)
|
2019-08-02 02:20:32 +00:00
|
|
|
#define _tcslwr_s WINE_tchar_routine(_strlwr_s, _mbslwr_s, _wcslwr_s)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _tcsnbcnt WINE_tchar_routine(_strncnt, _mbsnbcnt, _wcnscnt)
|
|
|
|
#define _tcsncat WINE_tchar_routine(strncat, _mbsnbcat, wcsncat)
|
2020-02-13 12:13:21 +00:00
|
|
|
#define _tcsncat_s WINE_tchar_routine(strncat_s, _mbsncat_s, wcsncat_s)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _tcsnccat WINE_tchar_routine(strncat, _mbsncat, wcsncat)
|
|
|
|
#define _tcsncmp WINE_tchar_routine(strncmp, _mbsnbcmp, wcsncmp)
|
|
|
|
#define _tcsnccmp WINE_tchar_routine(strncmp, _mbsncmp, wcsncmp)
|
|
|
|
#define _tcsnccnt WINE_tchar_routine(_strncnt, _mbsnccnt, _wcsncnt)
|
|
|
|
#define _tcsnccpy WINE_tchar_routine(strncpy, _mbsncpy, wcsncpy)
|
|
|
|
#define _tcsncicmp WINE_tchar_routine(_strnicmp, _mbsnicmp, _wcsnicmp)
|
|
|
|
#define _tcsncpy WINE_tchar_routine(strncpy, _mbsnbcpy, wcsncpy)
|
2020-02-13 12:13:21 +00:00
|
|
|
#define _tcsncpy_s WINE_tchar_routine(strncpy_s, _mbsnbcpy_s, wcsncpy_s)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _tcsncset WINE_tchar_routine(_strnset, _mbsnset, _wcsnset)
|
|
|
|
#define _tcsnextc WINE_tchar_routine(_strnextc, _mbsnextc, _wcsnextc)
|
|
|
|
#define _tcsnicmp WINE_tchar_routine(_strnicmp, _mbsnicmp, _wcsnicmp)
|
|
|
|
#define _tcsnicoll WINE_tchar_routine(_strnicoll, _strnicoll _wcsnicoll)
|
|
|
|
#define _tcsninc WINE_tchar_routine(_strninc, _mbsninc, _wcsninc)
|
|
|
|
#define _tcsnccnt WINE_tchar_routine(_strncnt, _mbsnccnt, _wcsncnt)
|
2019-08-02 02:20:32 +00:00
|
|
|
#define _tcsnlen WINE_tchar_routine(strnlen, _mbsnblen, wcsnlen)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _tcsnset WINE_tchar_routine(_strnset, _mbsnbset, _wcsnset)
|
|
|
|
#define _tcspbrk WINE_tchar_routine(strpbrk, _mbspbrk, wcspbrk)
|
|
|
|
#define _tcsspnp WINE_tchar_routine(_strspnp, _mbsspnp, _wcsspnp)
|
|
|
|
#define _tcsrchr WINE_tchar_routine(strrchr, _mbsrchr, wcsrchr)
|
|
|
|
#define _tcsrev WINE_tchar_routine(_strrev, _mbsrev, _wcsrev)
|
|
|
|
#define _tcsset WINE_tchar_routine(_strset, _mbsset, _wcsset)
|
|
|
|
#define _tcsspn WINE_tchar_routine(strspn, _mbsspn, wcsspn)
|
|
|
|
#define _tcsstr WINE_tchar_routine(strstr, _mbsstr, wcsstr)
|
|
|
|
#define _tcstod WINE_tchar_routine(strtod, strtod, wcstod)
|
2024-01-18 05:29:59 +00:00
|
|
|
#define _tcstof WINE_tchar_routine(strtof, strtof, wcstof)
|
|
|
|
#define _tcstof_l WINE_tchar_routine(_strtof_l, _strtof_l, _wcstof_l)
|
2020-02-21 06:40:24 +00:00
|
|
|
#define _tcstok WINE_tchar_routine(strtok, _mbstok, _wcstok)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _tcstol WINE_tchar_routine(strtol, strtol, wcstol)
|
2024-01-18 05:29:59 +00:00
|
|
|
#define _tcstold WINE_tchar_routine(strtold, strtold, wcstold)
|
|
|
|
#define _tcstold_l WINE_tchar_routine(_strtold_l, _strtold_l, _wcstold_l)
|
2022-06-14 06:17:26 +00:00
|
|
|
#define _tcstoll WINE_tchar_routine(strtoll, strtoll, wcstoll)
|
|
|
|
#define _tcstoll_l WINE_tchar_routine(_strtoll_l, _strtoll_l, _wcstoll_l)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _tcstoul WINE_tchar_routine(strtoul, strtoul, wcstoul)
|
2022-06-14 06:17:26 +00:00
|
|
|
#define _tcstoull WINE_tchar_routine(strtoull, strtoull, wcstoull)
|
|
|
|
#define _tcstoull_l WINE_tchar_routine(_strtoull_l, _strtoull_l, _wcstoull_l)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _tcsupr WINE_tchar_routine(_strupr, _mbsupr, _wcsupr)
|
2019-08-02 02:20:32 +00:00
|
|
|
#define _tcsupr_s WINE_tchar_routine(_strupr_s, _mbsupr_s, _wcsupr_s)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _tcsxfrm WINE_tchar_routine(strxfrm, strxfrm, wcsxfrm)
|
2021-07-24 12:45:26 +00:00
|
|
|
#define _tcsxfrm_l WINE_tchar_routine(_strxfrm_l, _strxfrm_l, _wcsxfrm_l)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _tctime WINE_tchar_routine(ctime, ctime, _wctime)
|
2001-09-19 22:24:54 +00:00
|
|
|
#define _tenviron WINE_tchar_routine(_environ, _environ, _wenviron)
|
2003-01-07 23:09:54 +00:00
|
|
|
#define _texecl WINE_tchar_routine(execl, _execl, _wexecl)
|
|
|
|
#define _texecle WINE_tchar_routine(execle, _execle, _wexecle)
|
|
|
|
#define _texeclp WINE_tchar_routine(execlp, _execlp, _wexeclp)
|
|
|
|
#define _texeclpe WINE_tchar_routine(execlpe, _execlpe, _wexeclpe)
|
|
|
|
#define _texecv WINE_tchar_routine(execv, _execv, _wexecv)
|
|
|
|
#define _texecve WINE_tchar_routine(execve, _execve, _wexecve)
|
|
|
|
#define _texecvp WINE_tchar_routine(execvp, _execvp, _wexecvp)
|
|
|
|
#define _texecvpe WINE_tchar_routine(execvpe, _execvpe, _wexecvpe)
|
|
|
|
#define _tfdopen WINE_tchar_routine(fdopen, _fdopen, _wfdopen)
|
2000-12-19 02:10:07 +00:00
|
|
|
#define _tfinddata_t WINE_tchar_routine(_finddata_t, _finddata_t, _wfinddata_t)
|
|
|
|
#define _tfinddatai64_t WINE_tchar_routine(_finddatai64_t,_finddatai64_t,_wfinddatai64_t)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _tfindfirst WINE_tchar_routine(_findfirst, _findfirst, _wfindfirst)
|
|
|
|
#define _tfindnext WINE_tchar_routine(_findnext, _findnext, _wfindnext)
|
|
|
|
#define _tfopen WINE_tchar_routine(fopen, fopen, _wfopen)
|
|
|
|
#define _tfreopen WINE_tchar_routine(freopen, freopen, _wfreopen)
|
|
|
|
#define _tfsopen WINE_tchar_routine(_fsopen, _fsopen, _wfsopen)
|
|
|
|
#define _tfullpath WINE_tchar_routine(_fullpath, _fullpath, _wfullpath)
|
2003-01-07 23:09:54 +00:00
|
|
|
#define _tgetcwd WINE_tchar_routine(getcwd, _getcwd, _wgetcwd)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _tgetenv WINE_tchar_routine(getenv, getenv, _wgetenv)
|
|
|
|
#define _tmain WINE_tchar_routine(main, main, wmain)
|
|
|
|
#define _tmakepath WINE_tchar_routine(_makepath, _makepath, _wmakepath)
|
2019-08-02 02:20:32 +00:00
|
|
|
#define _tmakepath_s WINE_tchar_routine(_makepath_s, _makepath_s, _wmakepath_s)
|
2003-01-07 23:09:54 +00:00
|
|
|
#define _tmkdir WINE_tchar_routine(mkdir, _mkdir, _wmkdir)
|
|
|
|
#define _tmktemp WINE_tchar_routine(mktemp, _mktemp, _wmktemp)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _tperror WINE_tchar_routine(perror, perror, _wperror)
|
2003-01-07 23:09:54 +00:00
|
|
|
#define _topen WINE_tchar_routine(open, _open, _wopen)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _totlower WINE_tchar_routine(tolower, _mbctolower, towlower)
|
|
|
|
#define _totupper WINE_tchar_routine(toupper, _mbctoupper, towupper)
|
2003-01-07 23:09:54 +00:00
|
|
|
#define _tpopen WINE_tchar_routine(popen, _popen, _wpopen)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _tprintf WINE_tchar_routine(printf, printf, wprintf)
|
|
|
|
#define _tremove WINE_tchar_routine(remove, remove, _wremove)
|
|
|
|
#define _trename WINE_tchar_routine(rename, rename, _wrename)
|
2003-01-07 23:09:54 +00:00
|
|
|
#define _trmdir WINE_tchar_routine(rmdir, _rmdir, _wrmdir)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _tsearchenv WINE_tchar_routine(_searchenv, _searchenv, _wsearchenv)
|
|
|
|
#define _tscanf WINE_tchar_routine(scanf, scanf, wscanf)
|
|
|
|
#define _tsetlocale WINE_tchar_routine(setlocale, setlocale, _wsetlocale)
|
|
|
|
#define _tsopen WINE_tchar_routine(_sopen, _sopen, _wsopen)
|
|
|
|
#define _tspawnl WINE_tchar_routine(_spawnl, _spawnl, _wspawnl)
|
|
|
|
#define _tspawnle WINE_tchar_routine(_spawnle, _spawnle, _wspawnle)
|
|
|
|
#define _tspawnlp WINE_tchar_routine(_spawnlp, _spawnlp, _wspawnlp)
|
|
|
|
#define _tspawnlpe WINE_tchar_routine(_spawnlpe, _spawnlpe, _wspawnlpe)
|
|
|
|
#define _tspawnv WINE_tchar_routine(_spawnv, _spawnv, _wspawnv)
|
|
|
|
#define _tspawnve WINE_tchar_routine(_spawnve, _spawnve, _wspawnve)
|
|
|
|
#define _tspawnvp WINE_tchar_routine(_spawnvp, _spawnvp, _tspawnvp)
|
|
|
|
#define _tspawnvpe WINE_tchar_routine(_spawnvpe, _spawnvpe, _tspawnvpe)
|
|
|
|
#define _tsplitpath WINE_tchar_routine(_splitpath, _splitpath, _wsplitpath)
|
2019-08-02 02:20:32 +00:00
|
|
|
#define _tsplitpath_s WINE_tchar_routine(_splitpath_s, _splitpath_s,_wsplitpath_s)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _tstat WINE_tchar_routine(_stat, _stat, _wstat)
|
2016-08-23 01:23:24 +00:00
|
|
|
#define _tstati64 WINE_tchar_routine(_stati64, _stati64, _wstati64)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _tstrdate WINE_tchar_routine(_strdate, _strdate, _wstrdate)
|
|
|
|
#define _tstrtime WINE_tchar_routine(_strtime, _strtime, _wstrtime)
|
|
|
|
#define _tsystem WINE_tchar_routine(system, system, _wsystem)
|
2003-01-07 23:09:54 +00:00
|
|
|
#define _ttempnam WINE_tchar_routine(tempnam, _tempnam, _wtempnam)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _ttmpnam WINE_tchar_routine(tmpnam, tmpnam, _wtmpnam)
|
|
|
|
#define _ttoi WINE_tchar_routine(atoi, atoi, _wtoi)
|
|
|
|
#define _ttol WINE_tchar_routine(atol, atol, _wtol)
|
2003-01-07 23:09:54 +00:00
|
|
|
#define _tutime WINE_tchar_routine(utime, _utime, _wutime)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _tWinMain WINE_tchar_routine(WinMain, WinMain, wWinMain)
|
|
|
|
#define _ultot WINE_tchar_routine(_ultoa, _ultoa, _ultow)
|
2019-08-02 02:20:32 +00:00
|
|
|
#define _ultot_s WINE_tchar_routine(_ultoa_s, _ultoa_s, _ultow_s)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _ungettc WINE_tchar_routine(ungetc, ungetc, ungetwc)
|
|
|
|
#define _vftprintf WINE_tchar_routine(vfprintf, vfprintf, vfwprintf)
|
2003-01-07 23:09:54 +00:00
|
|
|
#define _vsntprintf WINE_tchar_routine(vsnprintf, _vsnprintf, _vsnwprintf)
|
1998-12-26 11:50:11 +00:00
|
|
|
#define _vstprintf WINE_tchar_routine(vsprintf, vsprintf, vswprintf)
|
|
|
|
#define _vtprintf WINE_tchar_routine(vprintf, vprintf, vwprintf)
|
2000-12-19 04:50:49 +00:00
|
|
|
#define _TEOF WINE_tchar_routine(EOF, EOF, WEOF)
|
1998-12-26 11:50:11 +00:00
|
|
|
|
2000-12-19 04:50:49 +00:00
|
|
|
#define __T(x) __TEXT(x)
|
1999-01-17 16:55:11 +00:00
|
|
|
#define _T(x) __T(x)
|
|
|
|
#define _TEXT(x) __T(x)
|
|
|
|
|
2004-04-26 23:32:15 +00:00
|
|
|
#ifdef _UNICODE
|
2004-10-19 03:57:18 +00:00
|
|
|
#if !defined(_WINT_T_DEFINED) && !defined(__WINT_TYPE__)
|
2004-04-26 23:32:15 +00:00
|
|
|
typedef unsigned short wint_t;
|
2004-10-19 03:57:18 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _WCTYPE_T_DEFINED
|
2004-04-26 23:32:15 +00:00
|
|
|
typedef unsigned short wctype_t;
|
|
|
|
#define _WCTYPE_T_DEFINED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __TCHAR_DEFINED
|
2020-02-11 18:52:22 +00:00
|
|
|
#if defined(WINE_UNICODE_NATIVE)
|
2004-04-26 23:32:15 +00:00
|
|
|
typedef wchar_t _TCHAR;
|
2020-09-24 15:12:09 +00:00
|
|
|
#elif __cpp_unicode_literals >= 200710
|
2020-02-11 18:52:22 +00:00
|
|
|
typedef char16_t _TCHAR;
|
2004-04-26 23:32:15 +00:00
|
|
|
#else
|
|
|
|
typedef unsigned short _TCHAR;
|
|
|
|
#endif
|
|
|
|
typedef _TCHAR _TUCHAR;
|
|
|
|
typedef _TCHAR _TSCHAR;
|
|
|
|
typedef _TCHAR _TXCHAR;
|
|
|
|
typedef _TCHAR _TINT;
|
|
|
|
#define __TCHAR_DEFINED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#else /* _UNICODE */
|
|
|
|
#ifndef __TCHAR_DEFINED
|
|
|
|
typedef char _TCHAR;
|
|
|
|
typedef unsigned char _TUCHAR;
|
|
|
|
typedef signed char _TSCHAR;
|
|
|
|
#ifndef _MBCS
|
|
|
|
typedef unsigned char _TXCHAR;
|
|
|
|
typedef int _TINT;
|
|
|
|
#else
|
|
|
|
typedef char _TXCHAR;
|
|
|
|
typedef unsigned int _TINT;
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _TCHAR_DEFINED
|
|
|
|
typedef _TCHAR TCHAR, *PTCHAR;
|
|
|
|
#define _TCHAR_DEFINED
|
|
|
|
#endif
|
2002-05-31 23:06:46 +00:00
|
|
|
|
1999-02-10 06:48:49 +00:00
|
|
|
#ifdef __cplusplus
|
1999-04-25 19:01:52 +00:00
|
|
|
} /* extern "C" */
|
1999-02-10 06:48:49 +00:00
|
|
|
#endif
|
2002-05-31 23:06:46 +00:00
|
|
|
|
1998-12-26 11:50:11 +00:00
|
|
|
#endif /* __WINE_TCHAR_H */
|