Module: wine Branch: master Commit: e3ec37e848730b2803fff8f1193c44d74b43bacd URL: http://source.winehq.org/git/wine.git/?a=commit;h=e3ec37e848730b2803fff8f119...
Author: Piotr Caban piotr@codeweavers.com Date: Thu May 12 11:37:37 2011 +0200
msvcrt: Added _isctype_l implementation.
---
dlls/msvcrt/ctype.c | 15 ++++++++++++--- dlls/msvcrt/msvcrt.spec | 2 +- 2 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/dlls/msvcrt/ctype.c b/dlls/msvcrt/ctype.c index ba9d9ba..9d5ed1e 100644 --- a/dlls/msvcrt/ctype.c +++ b/dlls/msvcrt/ctype.c @@ -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; @@ -94,6 +95,14 @@ int CDECL _isctype(int c, int type) }
/********************************************************************* + * _isctype (MSVCRT.@) + */ +int CDECL _isctype(int c, int type) +{ + return _isctype_l(c, type, NULL); +} + +/********************************************************************* * isalnum (MSVCRT.@) */ int CDECL MSVCRT_isalnum(int c) diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec index 4e2417b..23ba26d 100644 --- a/dlls/msvcrt/msvcrt.spec +++ b/dlls/msvcrt/msvcrt.spec @@ -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)