msvcrt: Add _ismbbtrail_l implementation.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2019-02-14 14:35:02 +01:00 committed by Alexandre Julliard
parent 370bf01c7e
commit 790f97cb30
10 changed files with 24 additions and 10 deletions

View File

@ -23,7 +23,7 @@
@ cdecl _ismbbpunct(long) ucrtbase._ismbbpunct @ cdecl _ismbbpunct(long) ucrtbase._ismbbpunct
@ stub _ismbbpunct_l @ stub _ismbbpunct_l
@ cdecl _ismbbtrail(long) ucrtbase._ismbbtrail @ cdecl _ismbbtrail(long) ucrtbase._ismbbtrail
@ stub _ismbbtrail_l @ cdecl _ismbbtrail_l(long ptr) ucrtbase._ismbbtrail_l
@ cdecl _ismbcalnum(long) ucrtbase._ismbcalnum @ cdecl _ismbcalnum(long) ucrtbase._ismbcalnum
@ stub _ismbcalnum_l @ stub _ismbcalnum_l
@ cdecl _ismbcalpha(long) ucrtbase._ismbcalpha @ cdecl _ismbcalpha(long) ucrtbase._ismbcalpha

View File

@ -973,7 +973,7 @@
@ stub _ismbbpunct(long) @ stub _ismbbpunct(long)
@ stub _ismbbpunct_l @ stub _ismbbpunct_l
@ cdecl _ismbbtrail(long) @ cdecl _ismbbtrail(long)
@ stub _ismbbtrail_l @ cdecl _ismbbtrail_l(long ptr)
@ cdecl _ismbcalnum(long) @ cdecl _ismbcalnum(long)
@ stub _ismbcalnum_l @ stub _ismbcalnum_l
@ cdecl _ismbcalpha(long) @ cdecl _ismbcalpha(long)

View File

@ -1319,7 +1319,7 @@
@ stub _ismbbpunct(long) @ stub _ismbbpunct(long)
@ stub _ismbbpunct_l @ stub _ismbbpunct_l
@ cdecl _ismbbtrail(long) @ cdecl _ismbbtrail(long)
@ stub _ismbbtrail_l @ cdecl _ismbbtrail_l(long ptr)
@ cdecl _ismbcalnum(long) @ cdecl _ismbcalnum(long)
@ stub _ismbcalnum_l @ stub _ismbcalnum_l
@ cdecl _ismbcalpha(long) @ cdecl _ismbcalpha(long)

View File

@ -1322,7 +1322,7 @@
@ stub _ismbbpunct(long) @ stub _ismbbpunct(long)
@ stub _ismbbpunct_l @ stub _ismbbpunct_l
@ cdecl _ismbbtrail(long) @ cdecl _ismbbtrail(long)
@ stub _ismbbtrail_l @ cdecl _ismbbtrail_l(long ptr)
@ cdecl _ismbcalnum(long) @ cdecl _ismbcalnum(long)
@ stub _ismbcalnum_l @ stub _ismbcalnum_l
@ cdecl _ismbcalpha(long) @ cdecl _ismbcalpha(long)

View File

@ -1225,7 +1225,7 @@
@ cdecl _ismbbpunct(long) msvcr120._ismbbpunct @ cdecl _ismbbpunct(long) msvcr120._ismbbpunct
@ stub _ismbbpunct_l @ stub _ismbbpunct_l
@ cdecl _ismbbtrail(long) msvcr120._ismbbtrail @ cdecl _ismbbtrail(long) msvcr120._ismbbtrail
@ stub _ismbbtrail_l @ cdecl _ismbbtrail_l(long ptr) msvcr120._ismbbtrail_l
@ cdecl _isnan(double) msvcr120._isnan @ cdecl _isnan(double) msvcr120._isnan
@ cdecl -arch=x86_64 _isnanf(float) msvcr120._isnanf @ cdecl -arch=x86_64 _isnanf(float) msvcr120._isnanf
@ cdecl _isprint_l(long ptr) msvcr120._isprint_l @ cdecl _isprint_l(long ptr) msvcr120._isprint_l

View File

@ -645,7 +645,7 @@
@ stub _ismbbpunct(long) @ stub _ismbbpunct(long)
@ stub _ismbbpunct_l @ stub _ismbbpunct_l
@ cdecl _ismbbtrail(long) @ cdecl _ismbbtrail(long)
@ stub _ismbbtrail_l @ cdecl _ismbbtrail_l(long ptr)
@ cdecl _ismbcalnum(long) @ cdecl _ismbcalnum(long)
@ stub _ismbcalnum_l @ stub _ismbcalnum_l
@ cdecl _ismbcalpha(long) @ cdecl _ismbcalpha(long)

View File

@ -623,7 +623,7 @@
@ stub _ismbbpunct(long) @ stub _ismbbpunct(long)
@ stub _ismbbpunct_l @ stub _ismbbpunct_l
@ cdecl _ismbbtrail(long) @ cdecl _ismbbtrail(long)
@ stub _ismbbtrail_l @ cdecl _ismbbtrail_l(long ptr)
@ cdecl _ismbcalnum(long) @ cdecl _ismbcalnum(long)
@ stub _ismbcalnum_l @ stub _ismbcalnum_l
@ cdecl _ismbcalpha(long) @ cdecl _ismbcalpha(long)

View File

@ -1551,13 +1551,27 @@ int CDECL _ismbblead(unsigned int c)
return _ismbblead_l(c, NULL); return _ismbblead_l(c, NULL);
} }
/*********************************************************************
* _ismbbtrail_l(MSVCRT.@)
*/
int CDECL _ismbbtrail_l(unsigned int c, MSVCRT__locale_t locale)
{
MSVCRT_pthreadmbcinfo mbcinfo;
if(!locale)
mbcinfo = get_mbcinfo();
else
mbcinfo = locale->mbcinfo;
return (mbcinfo->mbctype[(c&0xff) + 1] & _M2) != 0;
}
/********************************************************************* /*********************************************************************
* _ismbbtrail(MSVCRT.@) * _ismbbtrail(MSVCRT.@)
*/ */
int CDECL _ismbbtrail(unsigned int c) int CDECL _ismbbtrail(unsigned int c)
{ {
return (get_mbcinfo()->mbctype[(c&0xff) + 1] & _M2) != 0; return _ismbbtrail_l(c, NULL);
} }
/********************************************************************* /*********************************************************************

View File

@ -594,7 +594,7 @@
@ stub _ismbbpunct(long) @ stub _ismbbpunct(long)
# stub _ismbbpunct_l(long ptr) # stub _ismbbpunct_l(long ptr)
@ cdecl _ismbbtrail(long) @ cdecl _ismbbtrail(long)
# stub _ismbbtrail_l(long ptr) @ cdecl _ismbbtrail_l(long ptr)
@ cdecl _ismbcalnum(long) @ cdecl _ismbcalnum(long)
# stub _ismbcalnum_l(long ptr) # stub _ismbcalnum_l(long ptr)
@ cdecl _ismbcalpha(long) @ cdecl _ismbcalpha(long)

View File

@ -461,7 +461,7 @@
@ stub _ismbbpunct(long) @ stub _ismbbpunct(long)
@ stub _ismbbpunct_l @ stub _ismbbpunct_l
@ cdecl _ismbbtrail(long) @ cdecl _ismbbtrail(long)
@ stub _ismbbtrail_l @ cdecl _ismbbtrail_l(long ptr)
@ cdecl _ismbcalnum(long) @ cdecl _ismbcalnum(long)
@ stub _ismbcalnum_l @ stub _ismbcalnum_l
@ cdecl _ismbcalpha(long) @ cdecl _ismbcalpha(long)