msvcrt: Move towctrans to wcs.c file.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2020-11-26 19:19:01 +01:00 committed by Alexandre Julliard
parent 3073097d29
commit 1f5930af51
4 changed files with 13 additions and 12 deletions

View File

@ -2414,7 +2414,7 @@
@ cdecl tmpnam_s(ptr long) MSVCRT_tmpnam_s @ cdecl tmpnam_s(ptr long) MSVCRT_tmpnam_s
@ cdecl tolower(long) MSVCRT_tolower @ cdecl tolower(long) MSVCRT_tolower
@ cdecl toupper(long) MSVCRT_toupper @ cdecl toupper(long) MSVCRT_toupper
@ cdecl towctrans(long long) MSVCR120_towctrans @ cdecl towctrans(long long)
@ cdecl towlower(long) MSVCRT_towlower @ cdecl towlower(long) MSVCRT_towlower
@ cdecl towupper(long) MSVCRT_towupper @ cdecl towupper(long) MSVCRT_towupper
@ cdecl trunc(double) MSVCR120_trunc @ cdecl trunc(double) MSVCR120_trunc

View File

@ -2148,14 +2148,4 @@ wctrans_t CDECL MSVCR120_wctrans(const char *property)
return 1; return 1;
return 0; return 0;
} }
/*********************************************************************
* towctrans (MSVCR120.@)
*/
MSVCRT_wint_t CDECL MSVCR120_towctrans(MSVCRT_wint_t c, wctrans_t category)
{
if(category == 1)
return MSVCRT__towupper_l(c, NULL);
return MSVCRT__towlower_l(c, NULL);
}
#endif #endif

View File

@ -23,6 +23,7 @@
#include <stdio.h> #include <stdio.h>
#include <math.h> #include <math.h>
#include <assert.h> #include <assert.h>
#include <wctype.h>
#include "msvcrt.h" #include "msvcrt.h"
#include "winnls.h" #include "winnls.h"
#include "wtypes.h" #include "wtypes.h"
@ -136,6 +137,16 @@ INT CDECL MSVCRT__wcsicmp_l(const MSVCRT_wchar_t *str1, const MSVCRT_wchar_t *st
return c1 - c2; return c1 - c2;
} }
/*********************************************************************
* towctrans (MSVCR120.@)
*/
wint_t CDECL towctrans(wint_t c, wctrans_t category)
{
if(category == 1)
return MSVCRT__towupper_l(c, NULL);
return MSVCRT__towlower_l(c, NULL);
}
/********************************************************************* /*********************************************************************
* _wcsicmp (MSVCRT.@) * _wcsicmp (MSVCRT.@)
*/ */

View File

@ -2543,7 +2543,7 @@
@ cdecl tmpnam_s(ptr long) MSVCRT_tmpnam_s @ cdecl tmpnam_s(ptr long) MSVCRT_tmpnam_s
@ cdecl tolower(long) MSVCRT_tolower @ cdecl tolower(long) MSVCRT_tolower
@ cdecl toupper(long) MSVCRT_toupper @ cdecl toupper(long) MSVCRT_toupper
@ cdecl towctrans(long long) MSVCR120_towctrans @ cdecl towctrans(long long)
@ cdecl towlower(long) MSVCRT_towlower @ cdecl towlower(long) MSVCRT_towlower
@ cdecl towupper(long) MSVCRT_towupper @ cdecl towupper(long) MSVCRT_towupper
@ cdecl trunc(double) MSVCR120_trunc @ cdecl trunc(double) MSVCR120_trunc