msvcrt: Added _isctype_l implementation.
This commit is contained in:
parent
69ea5768a6
commit
e3ec37e848
|
@ -66,11 +66,12 @@ WORD** CDECL MSVCRT___pctype_func(void)
|
|||
}
|
||||
|
||||
/*********************************************************************
|
||||
* _isctype (MSVCRT.@)
|
||||
* _isctype_l (MSVCRT.@)
|
||||
*/
|
||||
int CDECL _isctype(int c, int type)
|
||||
int CDECL _isctype_l(int c, int type, MSVCRT__locale_t locale)
|
||||
{
|
||||
MSVCRT__locale_t locale = get_locale();
|
||||
if(!locale)
|
||||
locale = get_locale();
|
||||
|
||||
if (c >= -1 && c <= 255)
|
||||
return locale->locinfo->pctype[c] & type;
|
||||
|
@ -93,6 +94,14 @@ int CDECL _isctype(int c, int type)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* _isctype (MSVCRT.@)
|
||||
*/
|
||||
int CDECL _isctype(int c, int type)
|
||||
{
|
||||
return _isctype_l(c, type, NULL);
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* isalnum (MSVCRT.@)
|
||||
*/
|
||||
|
|
|
@ -535,7 +535,7 @@
|
|||
@ cdecl _isatty(long)
|
||||
# stub _iscntrl_l(long ptr)
|
||||
@ cdecl _isctype(long long)
|
||||
# stub _isctype_l(long long ptr)
|
||||
@ cdecl _isctype_l(long long ptr)
|
||||
# stub _isdigit_l(long ptr)
|
||||
# stub _isgraph_l(long ptr)
|
||||
# stub _isleadbyte_l(long ptr)
|
||||
|
|
Loading…
Reference in New Issue