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
8bb0692f
Commit
8bb0692f
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 _mbsset_l implementation.
parent
08c603a4
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
40 additions
and
22 deletions
+40
-22
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
+32
-14
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 @
8bb0692f
...
...
@@ -1180,7 +1180,7 @@
@ cdecl _mbsrev(str)
@ cdecl _mbsrev_l(str ptr)
@ cdecl _mbsset(ptr long)
@
stub _mbsset_l
@
cdecl _mbsset_l(ptr long ptr)
@ stub _mbsset_s
@ stub _mbsset_s_l
@ cdecl _mbsspn(str str)
...
...
dlls/msvcr110/msvcr110.spec
View file @
8bb0692f
...
...
@@ -1537,7 +1537,7 @@
@ cdecl _mbsrev(str)
@ cdecl _mbsrev_l(str ptr)
@ cdecl _mbsset(ptr long)
@
stub _mbsset_l
@
cdecl _mbsset_l(ptr long ptr)
@ stub _mbsset_s
@ stub _mbsset_s_l
@ cdecl _mbsspn(str str)
...
...
dlls/msvcr120/msvcr120.spec
View file @
8bb0692f
...
...
@@ -1548,7 +1548,7 @@
@ cdecl _mbsrev(str)
@ cdecl _mbsrev_l(str ptr)
@ cdecl _mbsset(ptr long)
@
stub _mbsset_l
@
cdecl _mbsset_l(ptr long ptr)
@ stub _mbsset_s
@ stub _mbsset_s_l
@ cdecl _mbsspn(str str)
...
...
dlls/msvcr80/msvcr80.spec
View file @
8bb0692f
...
...
@@ -852,7 +852,7 @@
@ cdecl _mbsrev(str)
@ cdecl _mbsrev_l(str ptr)
@ cdecl _mbsset(ptr long)
@
stub _mbsset_l
@
cdecl _mbsset_l(ptr long ptr)
@ stub _mbsset_s
@ stub _mbsset_s_l
@ cdecl _mbsspn(str str)
...
...
dlls/msvcr90/msvcr90.spec
View file @
8bb0692f
...
...
@@ -830,7 +830,7 @@
@ cdecl _mbsrev(str)
@ cdecl _mbsrev_l(str ptr)
@ cdecl _mbsset(ptr long)
@
stub _mbsset_l
@
cdecl _mbsset_l(ptr long ptr)
@ stub _mbsset_s
@ stub _mbsset_s_l
@ cdecl _mbsspn(str str)
...
...
dlls/msvcrt/mbcs.c
View file @
8bb0692f
...
...
@@ -2205,27 +2205,45 @@ int CDECL _mbsbtype(const unsigned char *str, size_t count)
return
_mbsbtype_l
(
str
,
count
,
NULL
);
}
/*********************************************************************
* _mbsset(MSVCRT.@)
* _mbsset
_l
(MSVCRT.@)
*/
unsigned
char
*
CDECL
_mbsset
(
unsigned
char
*
str
,
unsigned
int
c
)
unsigned
char
*
CDECL
_mbsset
_l
(
unsigned
char
*
str
,
unsigned
int
c
,
_locale_t
locale
)
{
unsigned
char
*
ret
=
str
;
unsigned
char
*
ret
=
str
;
pthreadmbcinfo
mbcinfo
;
if
(
!
get_mbcinfo
()
->
ismbcodepage
||
c
<
256
)
return
u__strset
(
str
,
c
);
/* ASCII CP or SB char */
if
(
!
MSVCRT_CHECK_PMT
(
str
)
)
return
NULL
;
c
&=
0xffff
;
/* Strip high bits */
if
(
locale
)
mbcinfo
=
locale
->
mbcinfo
;
else
mbcinfo
=
get_mbcinfo
();
while
(
str
[
0
]
&&
str
[
1
])
{
*
str
++
=
c
>>
8
;
*
str
++
=
c
&
0xff
;
}
if
(
str
[
0
])
str
[
0
]
=
'\0'
;
/* FIXME: OK to shorten? */
if
(
!
mbcinfo
->
ismbcodepage
||
c
<
256
)
return
u__strset
(
str
,
c
);
/* ASCII CP or SB char */
c
&=
0xffff
;
/* Strip high bits */
return
ret
;
while
(
str
[
0
]
&&
str
[
1
])
{
*
str
++
=
c
>>
8
;
*
str
++
=
c
&
0xff
;
}
if
(
str
[
0
])
str
[
0
]
=
'\0'
;
/* FIXME: OK to shorten? */
return
ret
;
}
/*********************************************************************
* _mbsset(MSVCRT.@)
*/
unsigned
char
*
CDECL
_mbsset
(
unsigned
char
*
str
,
unsigned
int
c
)
{
return
_mbsset_l
(
str
,
c
,
NULL
);
}
/*********************************************************************
...
...
dlls/msvcrt/msvcrt.spec
View file @
8bb0692f
...
...
@@ -801,7 +801,7 @@
@ cdecl _mbsrev(str)
@ cdecl _mbsrev_l(str ptr)
@ cdecl _mbsset(ptr long)
# stub
_mbsset_l(ptr long ptr)
@ cdecl
_mbsset_l(ptr long ptr)
# stub _mbsset_s(ptr long long)
# stub _mbsset_s_l(ptr long long ptr)
@ cdecl _mbsspn(str str)
...
...
dlls/ucrtbase/ucrtbase.spec
View file @
8bb0692f
...
...
@@ -696,7 +696,7 @@
@ cdecl _mbsrev(str)
@ cdecl _mbsrev_l(str ptr)
@ cdecl _mbsset(ptr long)
@
stub _mbsset_l
@
cdecl _mbsset_l(ptr long ptr)
@ stub _mbsset_s
@ stub _mbsset_s_l
@ cdecl _mbsspn(str str)
...
...
@@ -1265,7 +1265,7 @@
@ cdecl _o__mbsrev(str) _mbsrev
@ cdecl _o__mbsrev_l(str ptr) _mbsrev_l
@ cdecl _o__mbsset(ptr long) _mbsset
@
stub _o_
_mbsset_l
@
cdecl _o__mbsset_l(ptr long ptr)
_mbsset_l
@ stub _o__mbsset_s
@ stub _o__mbsset_s_l
@ cdecl _o__mbsspn(str str) _mbsspn
...
...
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