Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
707198ba
Commit
707198ba
authored
Nov 07, 2023
by
Bartosz Kosiorek
Committed by
Alexandre Julliard
Nov 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add _mblen_l implementation.
parent
8bb0692f
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
31 additions
and
18 deletions
+31
-18
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+1
-1
msvcr110.spec
dlls/msvcr110/msvcr110.spec
+1
-1
msvcr120.spec
dlls/msvcr120/msvcr120.spec
+1
-1
msvcr120_app.spec
dlls/msvcr120_app/msvcr120_app.spec
+1
-1
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+1
-1
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+1
-1
mbcs.c
dlls/msvcrt/mbcs.c
+22
-9
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
ucrtbase.spec
dlls/ucrtbase/ucrtbase.spec
+2
-2
No files found.
dlls/msvcr100/msvcr100.spec
View file @
707198ba
...
...
@@ -1094,7 +1094,7 @@
@ cdecl _mbctoupper(long)
@ cdecl _mbctoupper_l(long ptr)
@ extern _mbctype MSVCRT_mbctype
@
stub _mblen_l
@
cdecl _mblen_l(str long ptr)
@ cdecl _mbsbtype(str long)
@ cdecl _mbsbtype_l(str long ptr)
@ cdecl _mbscat_s(ptr long str)
...
...
dlls/msvcr110/msvcr110.spec
View file @
707198ba
...
...
@@ -1451,7 +1451,7 @@
@ cdecl _mbctoupper(long)
@ cdecl _mbctoupper_l(long ptr)
@ extern _mbctype MSVCRT_mbctype
@
stub _mblen_l
@
cdecl _mblen_l(str long ptr)
@ cdecl _mbsbtype(str long)
@ cdecl _mbsbtype_l(str long ptr)
@ cdecl _mbscat_s(ptr long str)
...
...
dlls/msvcr120/msvcr120.spec
View file @
707198ba
...
...
@@ -1462,7 +1462,7 @@
@ cdecl _mbctoupper(long)
@ cdecl _mbctoupper_l(long ptr)
@ extern _mbctype MSVCRT_mbctype
@
stub _mblen_l
@
cdecl _mblen_l(str long ptr)
@ cdecl _mbsbtype(str long)
@ cdecl _mbsbtype_l(str long ptr)
@ cdecl _mbscat_s(ptr long str)
...
...
dlls/msvcr120_app/msvcr120_app.spec
View file @
707198ba
...
...
@@ -1302,7 +1302,7 @@
@ cdecl _malloc_crt(long) msvcr120._malloc_crt
# extern _mbcasemap
@ extern _mbctype msvcr120._mbctype
@
stub
_mblen_l
@
cdecl _mblen_l(str long ptr) msvcr120.
_mblen_l
@ cdecl _mbstowcs_l(ptr str long ptr) msvcr120._mbstowcs_l
@ cdecl _mbstowcs_s_l(ptr ptr long str long ptr) msvcr120._mbstowcs_s_l
@ cdecl _mbstrlen(str) msvcr120._mbstrlen
...
...
dlls/msvcr80/msvcr80.spec
View file @
707198ba
...
...
@@ -766,7 +766,7 @@
@ cdecl _mbctoupper(long)
@ cdecl _mbctoupper_l(long ptr)
@ extern _mbctype MSVCRT_mbctype
@
stub _mblen_l
@
cdecl _mblen_l(str long ptr)
@ cdecl _mbsbtype(str long)
@ cdecl _mbsbtype_l(str long ptr)
@ cdecl _mbscat_s(ptr long str)
...
...
dlls/msvcr90/msvcr90.spec
View file @
707198ba
...
...
@@ -744,7 +744,7 @@
@ cdecl _mbctoupper(long)
@ cdecl _mbctoupper_l(long ptr)
@ extern _mbctype MSVCRT_mbctype
@
stub _mblen_l
@
cdecl _mblen_l(str long ptr)
@ cdecl _mbsbtype(str long)
@ cdecl _mbsbtype_l(str long ptr)
@ cdecl _mbscat_s(ptr long str)
...
...
dlls/msvcrt/mbcs.c
View file @
707198ba
...
...
@@ -2984,21 +2984,34 @@ unsigned char* CDECL _mbspbrk(const unsigned char *str, const unsigned char *acc
*/
/*********************************************************************
*
mblen
(MSVCRT.@)
*
_mblen_l
(MSVCRT.@)
* REMARKS
* Unlike most of the multibyte string functions this function uses
* the locale codepage, not the codepage set by _setmbcp
*/
int
CDECL
mblen
(
const
char
*
str
,
size_t
siz
e
)
int
CDECL
_mblen_l
(
const
char
*
str
,
size_t
size
,
_locale_t
local
e
)
{
if
(
str
&&
*
str
&&
size
)
{
if
(
get_locinfo
()
->
mb_cur_max
==
1
)
return
1
;
/* ASCII CP */
pthreadlocinfo
locinfo
;
return
!
isleadbyte
((
unsigned
char
)
*
str
)
?
1
:
(
size
>
1
?
2
:
-
1
);
}
return
0
;
if
(
!
str
||
!*
str
||
!
size
)
return
0
;
if
(
locale
)
locinfo
=
locale
->
locinfo
;
else
locinfo
=
get_locinfo
();
if
(
locinfo
->
mb_cur_max
==
1
)
return
1
;
/* ASCII CP */
return
!
_isleadbyte_l
((
unsigned
char
)
*
str
,
locale
)
?
1
:
(
size
>
1
?
2
:
-
1
);
}
/*********************************************************************
* mblen(MSVCRT.@)
*/
int
CDECL
mblen
(
const
char
*
str
,
size_t
size
)
{
return
_mblen_l
(
str
,
size
,
NULL
);
}
/*********************************************************************
...
...
dlls/msvcrt/msvcrt.spec
View file @
707198ba
...
...
@@ -711,7 +711,7 @@
@ cdecl _mbctoupper(long)
@ cdecl _mbctoupper_l(long ptr)
@ extern _mbctype MSVCRT_mbctype
# stub
_mblen_l(str long ptr)
@ cdecl
_mblen_l(str long ptr)
@ cdecl _mbsbtype(str long)
@ cdecl _mbsbtype_l(str long ptr)
@ cdecl _mbscat(str str)
...
...
dlls/ucrtbase/ucrtbase.spec
View file @
707198ba
...
...
@@ -609,7 +609,7 @@
@ cdecl _mbctombb_l(long ptr)
@ cdecl _mbctoupper(long)
@ cdecl _mbctoupper_l(long ptr)
@
stub _mblen_l
@
cdecl _mblen_l(str long ptr)
@ cdecl _mbsbtype(str long)
@ cdecl _mbsbtype_l(str long ptr)
@ cdecl _mbscat_s(ptr long str)
...
...
@@ -1179,7 +1179,7 @@
@ cdecl _o__mbctombb_l(long ptr) _mbctombb_l
@ cdecl _o__mbctoupper(long) _mbctoupper
@ cdecl _o__mbctoupper_l(long ptr) _mbctoupper_l
@
stub _o_
_mblen_l
@
cdecl _o__mblen_l(str long ptr)
_mblen_l
@ cdecl _o__mbsbtype(str long) _mbsbtype
@ cdecl _o__mbsbtype_l(str long ptr) _mbsbtype_l
@ cdecl _o__mbscat_s(ptr long str) _mbscat_s
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment