Module: wine Branch: master Commit: f82871e76838b3d73eb34d6ef4d732e17a043af5 URL: https://gitlab.winehq.org/wine/wine/-/commit/f82871e76838b3d73eb34d6ef4d732e...
Author: Bartosz Kosiorek gang65@poczta.onet.pl Date: Tue Nov 7 23:06:26 2023 +0100
msvcrt: Add __iswcsym implementation.
---
dlls/msvcr100/msvcr100.spec | 2 +- dlls/msvcr110/msvcr110.spec | 2 +- dlls/msvcr120/msvcr120.spec | 2 +- dlls/msvcr120_app/msvcr120_app.spec | 2 +- dlls/msvcr80/msvcr80.spec | 2 +- dlls/msvcr90/msvcr90.spec | 2 +- dlls/msvcrt/ctype.c | 8 ++++++++ dlls/ucrtbase/ucrtbase.spec | 2 +- 8 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/dlls/msvcr100/msvcr100.spec b/dlls/msvcr100/msvcr100.spec index 5796f353d9c..6e0148d1b6b 100644 --- a/dlls/msvcr100/msvcr100.spec +++ b/dlls/msvcr100/msvcr100.spec @@ -598,7 +598,7 @@ @ cdecl __isascii(long) @ cdecl __iscsym(long) @ cdecl __iscsymf(long) -@ stub __iswcsym +@ cdecl __iswcsym(long) @ stub __iswcsymf # extern __lconv @ cdecl __lconv_init() diff --git a/dlls/msvcr110/msvcr110.spec b/dlls/msvcr110/msvcr110.spec index cd54513a59e..c92c984748f 100644 --- a/dlls/msvcr110/msvcr110.spec +++ b/dlls/msvcr110/msvcr110.spec @@ -946,7 +946,7 @@ @ cdecl __isascii(long) @ cdecl __iscsym(long) @ cdecl __iscsymf(long) -@ stub __iswcsym +@ cdecl __iswcsym(long) @ stub __iswcsymf @ stdcall -arch=arm __jump_unwind(ptr ptr) ntdll.__jump_unwind # extern __lconv diff --git a/dlls/msvcr120/msvcr120.spec b/dlls/msvcr120/msvcr120.spec index 1bb81f3f257..5c525f8d1af 100644 --- a/dlls/msvcr120/msvcr120.spec +++ b/dlls/msvcr120/msvcr120.spec @@ -937,7 +937,7 @@ @ cdecl __isascii(long) @ cdecl __iscsym(long) @ cdecl __iscsymf(long) -@ stub __iswcsym +@ cdecl __iswcsym(long) @ stub __iswcsymf @ stdcall -arch=arm __jump_unwind(ptr ptr) ntdll.__jump_unwind # extern __lconv diff --git a/dlls/msvcr120_app/msvcr120_app.spec b/dlls/msvcr120_app/msvcr120_app.spec index 591a25f3cce..1b11b90da92 100644 --- a/dlls/msvcr120_app/msvcr120_app.spec +++ b/dlls/msvcr120_app/msvcr120_app.spec @@ -914,7 +914,7 @@ @ cdecl __isascii(long) msvcr120.__isascii @ cdecl __iscsym(long) msvcr120.__iscsym @ cdecl __iscsymf(long) msvcr120.__iscsymf -@ stub __iswcsym +@ cdecl __iswcsym(long) msvcr120.__iswcsym @ stub __iswcsymf @ stdcall -arch=arm __jump_unwind(ptr ptr) msvcr120.__jump_unwind # extern __lconv diff --git a/dlls/msvcr80/msvcr80.spec b/dlls/msvcr80/msvcr80.spec index 9dbe665cd02..22fdab9bacd 100644 --- a/dlls/msvcr80/msvcr80.spec +++ b/dlls/msvcr80/msvcr80.spec @@ -237,7 +237,7 @@ @ cdecl __isascii(long) @ cdecl __iscsym(long) @ cdecl __iscsymf(long) -@ stub __iswcsym +@ cdecl __iswcsym(long) @ stub __iswcsymf # extern __lc_clike @ extern __lc_codepage MSVCRT___lc_codepage diff --git a/dlls/msvcr90/msvcr90.spec b/dlls/msvcr90/msvcr90.spec index 391be34a624..67f6cc77c46 100644 --- a/dlls/msvcr90/msvcr90.spec +++ b/dlls/msvcr90/msvcr90.spec @@ -226,7 +226,7 @@ @ cdecl __isascii(long) @ cdecl __iscsym(long) @ cdecl __iscsymf(long) -@ stub __iswcsym +@ cdecl __iswcsym(long) @ stub __iswcsymf # extern __lc_clike @ extern __lc_codepage MSVCRT___lc_codepage diff --git a/dlls/msvcrt/ctype.c b/dlls/msvcrt/ctype.c index 5a7d3450eda..7e12841c91f 100644 --- a/dlls/msvcrt/ctype.c +++ b/dlls/msvcrt/ctype.c @@ -452,6 +452,14 @@ int CDECL __iscsymf(int c) return (c < 127 && (isalpha(c) || c == '_')); }
+/********************************************************************* + * __iswcsym (MSVCRT.@) + */ +int CDECL __iswcsym(wint_t c) +{ + return (iswalnum(c) || c == '_'); +} + /********************************************************************* * _toupper_l (MSVCRT.@) */ diff --git a/dlls/ucrtbase/ucrtbase.spec b/dlls/ucrtbase/ucrtbase.spec index 8b0420987de..f010f3eee37 100644 --- a/dlls/ucrtbase/ucrtbase.spec +++ b/dlls/ucrtbase/ucrtbase.spec @@ -99,7 +99,7 @@ @ cdecl __isascii(long) @ cdecl __iscsym(long) @ cdecl __iscsymf(long) -@ stub __iswcsym +@ cdecl __iswcsym(long) @ stub __iswcsymf @ stdcall -arch=arm __jump_unwind(ptr ptr) ntdll.__jump_unwind @ cdecl -arch=i386 -norelay __libm_sse2_acos()