Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
5556eba0
Commit
5556eba0
authored
Nov 02, 2023
by
Bartosz Kosiorek
Committed by
Alexandre Julliard
Nov 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add _mbsupr_l implementation.
parent
2b7dcfb4
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
45 additions
and
28 deletions
+45
-28
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
+37
-20
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 @
5556eba0
...
...
@@ -1200,7 +1200,7 @@
@ stub _mbstrnlen
@ stub _mbstrnlen_l
@ cdecl _mbsupr(str)
@
stub _mbsupr_l
@
cdecl _mbsupr_l(str ptr)
@ cdecl _mbsupr_s(str long)
@ cdecl _mbsupr_s_l(str long ptr)
@ cdecl _mbtowc_l(ptr str long ptr)
...
...
dlls/msvcr110/msvcr110.spec
View file @
5556eba0
...
...
@@ -1557,7 +1557,7 @@
@ stub _mbstrnlen
@ stub _mbstrnlen_l
@ cdecl _mbsupr(str)
@
stub _mbsupr_l
@
cdecl _mbsupr_l(str ptr)
@ cdecl _mbsupr_s(str long)
@ cdecl _mbsupr_s_l(str long ptr)
@ cdecl _mbtowc_l(ptr str long ptr)
...
...
dlls/msvcr120/msvcr120.spec
View file @
5556eba0
...
...
@@ -1568,7 +1568,7 @@
@ stub _mbstrnlen
@ stub _mbstrnlen_l
@ cdecl _mbsupr(str)
@
stub _mbsupr_l
@
cdecl _mbsupr_l(str ptr)
@ cdecl _mbsupr_s(str long)
@ cdecl _mbsupr_s_l(str long ptr)
@ cdecl _mbtowc_l(ptr str long ptr)
...
...
dlls/msvcr80/msvcr80.spec
View file @
5556eba0
...
...
@@ -872,7 +872,7 @@
@ stub _mbstrnlen
@ stub _mbstrnlen_l
@ cdecl _mbsupr(str)
@
stub _mbsupr_l
@
cdecl _mbsupr_l(str ptr)
@ cdecl _mbsupr_s(str long)
@ cdecl _mbsupr_s_l(str long ptr)
@ cdecl _mbtowc_l(ptr str long ptr)
...
...
dlls/msvcr90/msvcr90.spec
View file @
5556eba0
...
...
@@ -850,7 +850,7 @@
@ stub _mbstrnlen
@ stub _mbstrnlen_l
@ cdecl _mbsupr(str)
@
stub _mbsupr_l
@
cdecl _mbsupr_l(str ptr)
@ cdecl _mbsupr_s(str long)
@ cdecl _mbsupr_s_l(str long ptr)
@ cdecl _mbtowc_l(ptr str long ptr)
...
...
dlls/msvcrt/mbcs.c
View file @
5556eba0
...
...
@@ -2437,30 +2437,47 @@ int CDECL _mbslwr_s(unsigned char* str, size_t len)
}
/*********************************************************************
* _mbsupr(MSVCRT.@)
* _mbsupr
_l
(MSVCRT.@)
*/
unsigned
char
*
CDECL
_mbsupr
(
unsigned
char
*
s
)
unsigned
char
*
CDECL
_mbsupr
_l
(
unsigned
char
*
s
,
_locale_t
locale
)
{
unsigned
char
*
ret
=
s
;
if
(
!
s
)
return
NULL
;
if
(
get_mbcinfo
()
->
ismbcodepage
)
{
unsigned
int
c
;
while
(
*
s
)
unsigned
char
*
ret
=
s
;
pthreadmbcinfo
mbcinfo
;
if
(
!
MSVCRT_CHECK_PMT
(
s
))
return
NULL
;
if
(
locale
)
mbcinfo
=
locale
->
mbcinfo
;
else
mbcinfo
=
get_mbcinfo
();
if
(
mbcinfo
->
ismbcodepage
)
{
c
=
_mbctoupper
(
_mbsnextc
(
s
));
/* Note that I assume that the size of the character is unchanged */
if
(
c
>
255
)
{
*
s
++=
(
c
>>
8
);
c
=
c
&
0xff
;
}
*
s
++=
c
;
unsigned
int
c
;
while
(
*
s
)
{
c
=
_mbctoupper_l
(
_mbsnextc_l
(
s
,
locale
),
locale
);
/* Note that I assume that the size of the character is unchanged */
if
(
c
>
255
)
{
*
s
++
=
(
c
>>
8
);
c
=
c
&
0xff
;
}
*
s
++
=
c
;
}
}
}
else
for
(
;
*
s
;
s
++
)
*
s
=
_toupper_l
(
*
s
,
NULL
);
return
ret
;
else
for
(
;
*
s
;
s
++
)
*
s
=
_toupper_l
(
*
s
,
locale
);
return
ret
;
}
/*********************************************************************
* _mbsupr(MSVCRT.@)
*/
unsigned
char
*
CDECL
_mbsupr
(
unsigned
char
*
s
)
{
return
_mbsupr_l
(
s
,
NULL
);
}
/*********************************************************************
...
...
dlls/msvcrt/msvcrt.spec
View file @
5556eba0
...
...
@@ -821,7 +821,7 @@
# stub _mbstrnlen(str long)
# stub _mbstrnlen_l(str long ptr)
@ cdecl _mbsupr(str)
# stub
_mbsupr_l(str ptr)
@ cdecl
_mbsupr_l(str ptr)
@ cdecl _mbsupr_s(str long)
@ cdecl _mbsupr_s_l(str long ptr)
@ cdecl _mbtowc_l(ptr str long ptr)
...
...
dlls/ucrtbase/ucrtbase.spec
View file @
5556eba0
...
...
@@ -716,7 +716,7 @@
@ stub _mbstrnlen
@ stub _mbstrnlen_l
@ cdecl _mbsupr(str)
@
stub _mbsupr_l
@
cdecl _mbsupr_l(str ptr)
@ cdecl _mbsupr_s(str long)
@ cdecl _mbsupr_s_l(str long ptr)
@ cdecl _mbtowc_l(ptr str long ptr)
...
...
@@ -1285,7 +1285,7 @@
@ stub _o__mbstrnlen
@ stub _o__mbstrnlen_l
@ cdecl _o__mbsupr(str) _mbsupr
@
stub _o_
_mbsupr_l
@
cdecl _o__mbsupr_l(str ptr)
_mbsupr_l
@ cdecl _o__mbsupr_s(str long) _mbsupr_s
@ cdecl _o__mbsupr_s_l(str long ptr) _mbsupr_s_l
@ cdecl _o__mbtowc_l(ptr str long ptr) _mbtowc_l
...
...
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