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
b0c31c09
Commit
b0c31c09
authored
Nov 06, 2023
by
Bartosz Kosiorek
Committed by
Alexandre Julliard
Nov 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add _mbsnset_l implementation.
parent
fa2248cc
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
39 additions
and
23 deletions
+39
-23
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+1
-1
msvcr110.spec
dlls/msvcr110/msvcr110.spec
+1
-1
msvcr120.spec
dlls/msvcr120/msvcr120.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
+31
-15
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 @
b0c31c09
...
...
@@ -1170,7 +1170,7 @@
@ cdecl _mbsnlen(str long)
@ cdecl _mbsnlen_l(str long ptr)
@ cdecl _mbsnset(ptr long long)
@
stub _mbsnset_l
@
cdecl _mbsnset_l(ptr long long ptr)
@ stub _mbsnset_s
@ stub _mbsnset_s_l
@ cdecl _mbspbrk(str str)
...
...
dlls/msvcr110/msvcr110.spec
View file @
b0c31c09
...
...
@@ -1527,7 +1527,7 @@
@ cdecl _mbsnlen(str long)
@ cdecl _mbsnlen_l(str long ptr)
@ cdecl _mbsnset(ptr long long)
@
stub _mbsnset_l
@
cdecl _mbsnset_l(ptr long long ptr)
@ stub _mbsnset_s
@ stub _mbsnset_s_l
@ cdecl _mbspbrk(str str)
...
...
dlls/msvcr120/msvcr120.spec
View file @
b0c31c09
...
...
@@ -1538,7 +1538,7 @@
@ cdecl _mbsnlen(str long)
@ cdecl _mbsnlen_l(str long ptr)
@ cdecl _mbsnset(ptr long long)
@
stub _mbsnset_l
@
cdecl _mbsnset_l(ptr long long ptr)
@ stub _mbsnset_s
@ stub _mbsnset_s_l
@ cdecl _mbspbrk(str str)
...
...
dlls/msvcr80/msvcr80.spec
View file @
b0c31c09
...
...
@@ -842,7 +842,7 @@
@ cdecl _mbsnlen(str long)
@ cdecl _mbsnlen_l(str long ptr)
@ cdecl _mbsnset(ptr long long)
@
stub _mbsnset_l
@
cdecl _mbsnset_l(ptr long long ptr)
@ stub _mbsnset_s
@ stub _mbsnset_s_l
@ cdecl _mbspbrk(str str)
...
...
dlls/msvcr90/msvcr90.spec
View file @
b0c31c09
...
...
@@ -820,7 +820,7 @@
@ cdecl _mbsnlen(str long)
@ cdecl _mbsnlen_l(str long ptr)
@ cdecl _mbsnset(ptr long long)
@
stub _mbsnset_l
@
cdecl _mbsnset_l(ptr long long ptr)
@ stub _mbsnset_s
@ stub _mbsnset_s_l
@ cdecl _mbspbrk(str str)
...
...
dlls/msvcrt/mbcs.c
View file @
b0c31c09
...
...
@@ -2249,27 +2249,43 @@ unsigned char* CDECL _mbsnbset(unsigned char *str, unsigned int c, size_t len)
/*********************************************************************
* _mbsnset(MSVCRT.@)
*/
unsigned
char
*
CDECL
_mbsnset
(
unsigned
char
*
str
,
unsigned
int
c
,
size_t
len
)
unsigned
char
*
CDECL
_mbsnset
_l
(
unsigned
char
*
str
,
unsigned
int
c
,
size_t
len
,
_locale_t
locale
)
{
unsigned
char
*
ret
=
str
;
unsigned
char
*
ret
=
str
;
pthreadmbcinfo
mbcinfo
;
if
(
!
len
)
return
ret
;
if
(
!
len
)
return
ret
;
if
(
!
MSVCRT_CHECK_PMT
(
str
))
return
NULL
;
if
(
!
get_mbcinfo
()
->
ismbcodepage
||
c
<
256
)
return
u__strnset
(
str
,
c
,
len
);
/* ASCII CP or SB char */
if
(
locale
)
mbcinfo
=
locale
->
mbcinfo
;
else
mbcinfo
=
get_mbcinfo
();
c
&=
0xffff
;
/* Strip high bits */
if
(
!
mbcinfo
->
ismbcodepage
||
c
<
256
)
return
u__strnset
(
str
,
c
,
len
);
/* ASCII CP or SB char */
while
(
str
[
0
]
&&
str
[
1
]
&&
len
--
)
{
*
str
++
=
c
>>
8
;
*
str
++
=
c
&
0xff
;
}
if
(
len
&&
str
[
0
])
str
[
0
]
=
'\0'
;
/* FIXME: OK to shorten? */
c
&=
0xffff
;
/* Strip high bits */
return
ret
;
while
(
str
[
0
]
&&
str
[
1
]
&&
len
--
)
{
*
str
++
=
c
>>
8
;
*
str
++
=
c
&
0xff
;
}
if
(
len
&&
str
[
0
])
str
[
0
]
=
'\0'
;
/* FIXME: OK to shorten? */
return
ret
;
}
/*********************************************************************
* _mbsnset(MSVCRT.@)
*/
unsigned
char
*
CDECL
_mbsnset
(
unsigned
char
*
str
,
unsigned
int
c
,
size_t
len
)
{
return
_mbsnset_l
(
str
,
c
,
len
,
NULL
);
}
/*********************************************************************
...
...
dlls/msvcrt/msvcrt.spec
View file @
b0c31c09
...
...
@@ -791,7 +791,7 @@
@ cdecl _mbsnlen(str long)
@ cdecl _mbsnlen_l(str long ptr)
@ cdecl _mbsnset(ptr long long)
# stub
_mbsnset_l(ptr long long ptr)
@ cdecl
_mbsnset_l(ptr long long ptr)
# stub _mbsnset_s(ptr long long long)
# stub _mbsnset_s_l(ptr long long long ptr)
@ cdecl _mbspbrk(str str)
...
...
dlls/ucrtbase/ucrtbase.spec
View file @
b0c31c09
...
...
@@ -686,7 +686,7 @@
@ cdecl _mbsnlen(str long)
@ cdecl _mbsnlen_l(str long ptr)
@ cdecl _mbsnset(ptr long long)
@
stub _mbsnset_l
@
cdecl _mbsnset_l(ptr long long ptr)
@ stub _mbsnset_s
@ stub _mbsnset_s_l
@ cdecl _mbspbrk(str str)
...
...
@@ -1255,7 +1255,7 @@
@ cdecl _o__mbsnlen(str long) _mbsnlen
@ cdecl _o__mbsnlen_l(str long ptr) _mbsnlen_l
@ cdecl _o__mbsnset(ptr long long) _mbsnset
@
stub _o_
_mbsnset_l
@
cdecl _o__mbsnset_l(ptr long long ptr)
_mbsnset_l
@ stub _o__mbsnset_s
@ stub _o__mbsnset_s_l
@ cdecl _o__mbspbrk(str str) _mbspbrk
...
...
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