msvcrt: Add _ismbcl1().

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46644
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2019-02-14 14:35:45 +01:00 committed by Alexandre Julliard
parent 1b86a06ff8
commit 698b26a432
11 changed files with 32 additions and 9 deletions

View File

@ -988,7 +988,7 @@
@ stub _ismbckata_l
@ cdecl _ismbcl0(long)
@ cdecl _ismbcl0_l(long ptr)
@ stub _ismbcl1(long)
@ cdecl _ismbcl1(long)
@ cdecl _ismbcl1_l(long ptr)
@ stub _ismbcl2(long)
@ stub _ismbcl2_l

View File

@ -1334,7 +1334,7 @@
@ stub _ismbckata_l
@ cdecl _ismbcl0(long)
@ cdecl _ismbcl0_l(long ptr)
@ stub _ismbcl1(long)
@ cdecl _ismbcl1(long)
@ cdecl _ismbcl1_l(long ptr)
@ stub _ismbcl2(long)
@ stub _ismbcl2_l

View File

@ -1339,7 +1339,7 @@
@ stub _ismbckata_l
@ cdecl _ismbcl0(long)
@ cdecl _ismbcl0_l(long ptr)
@ stub _ismbcl1(long)
@ cdecl _ismbcl1(long)
@ cdecl _ismbcl1_l(long ptr)
@ stub _ismbcl2(long)
@ stub _ismbcl2_l

View File

@ -382,7 +382,7 @@
@ cdecl _ismbchira(long)
@ cdecl _ismbckata(long)
@ cdecl _ismbcl0(long)
@ stub _ismbcl1(long)
@ cdecl _ismbcl1(long)
@ stub _ismbcl2(long)
@ cdecl _ismbclegal(long)
@ cdecl _ismbclower(long)

View File

@ -377,7 +377,7 @@
@ cdecl _ismbchira(long)
@ cdecl _ismbckata(long)
@ cdecl _ismbcl0(long)
@ stub _ismbcl1(long)
@ cdecl _ismbcl1(long)
@ stub _ismbcl2(long)
@ cdecl _ismbclegal(long)
@ cdecl _ismbclower(long)

View File

@ -660,7 +660,7 @@
@ stub _ismbckata_l
@ cdecl _ismbcl0(long)
@ cdecl _ismbcl0_l(long ptr)
@ stub _ismbcl1(long)
@ cdecl _ismbcl1(long)
@ cdecl _ismbcl1_l(long ptr)
@ stub _ismbcl2(long)
@ stub _ismbcl2_l

View File

@ -638,7 +638,7 @@
@ stub _ismbckata_l
@ cdecl _ismbcl0(long)
@ cdecl _ismbcl0_l(long ptr)
@ stub _ismbcl1(long)
@ cdecl _ismbcl1(long)
@ cdecl _ismbcl1_l(long ptr)
@ stub _ismbcl2(long)
@ stub _ismbcl2_l

View File

@ -2600,3 +2600,11 @@ int CDECL _ismbcl1_l(unsigned int c, MSVCRT__locale_t locale)
return 0;
}
/*********************************************************************
* _ismbcl1 (MSVCRT.@)
*/
int CDECL _ismbcl1(unsigned int c)
{
return _ismbcl1_l(c, NULL);
}

View File

@ -609,7 +609,7 @@
# stub _ismbckata_l(long ptr)
@ cdecl _ismbcl0(long)
@ cdecl _ismbcl0_l(long ptr)
@ stub _ismbcl1(long)
@ cdecl _ismbcl1(long)
@ cdecl _ismbcl1_l(long ptr)
@ stub _ismbcl2(long)
# stub _ismbcl2_l(long ptr)

View File

@ -3275,11 +3275,17 @@ static void test__ismbclx(void)
ret = _ismbcl0(0);
ok(!ret, "got %d\n", ret);
ret = _ismbcl1(0);
ok(!ret, "got %d\n", ret);
cp = _setmbcp(1252);
ret = _ismbcl0(0x8140);
ok(!ret, "got %d\n", ret);
ret = _ismbcl1(0x889f);
ok(!ret, "got %d\n", ret);
_setmbcp(932);
ret = _ismbcl0(0);
@ -3291,6 +3297,15 @@ static void test__ismbclx(void)
ret = _ismbcl0(0x817f);
ok(!ret, "got %d\n", ret);
ret = _ismbcl1(0);
ok(!ret, "got %d\n", ret);
ret = _ismbcl1(0x889f);
ok(ret, "got %d\n", ret);
ret = _ismbcl1(0x88fd);
ok(!ret, "got %d\n", ret);
_setmbcp(cp);
}

View File

@ -478,7 +478,7 @@
@ stub _ismbckata_l
@ cdecl _ismbcl0(long)
@ cdecl _ismbcl0_l(long ptr)
@ stub _ismbcl1(long)
@ cdecl _ismbcl1(long)
@ cdecl _ismbcl1_l(long ptr)
@ stub _ismbcl2(long)
@ stub _ismbcl2_l