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
2853352c
Commit
2853352c
authored
Oct 30, 2023
by
Bartosz Kosiorek
Committed by
Alexandre Julliard
Nov 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add _mbsrchr_l implementation.
parent
3c941962
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
42 additions
and
24 deletions
+42
-24
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
+34
-16
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 @
2853352c
...
...
@@ -1176,7 +1176,7 @@
@ cdecl _mbspbrk(str str)
@ stub _mbspbrk_l
@ cdecl _mbsrchr(str long)
@
stub _mbsrchr_l
@
cdecl _mbsrchr_l(str long ptr)
@ cdecl _mbsrev(str)
@ stub _mbsrev_l
@ cdecl _mbsset(ptr long)
...
...
dlls/msvcr110/msvcr110.spec
View file @
2853352c
...
...
@@ -1533,7 +1533,7 @@
@ cdecl _mbspbrk(str str)
@ stub _mbspbrk_l
@ cdecl _mbsrchr(str long)
@
stub _mbsrchr_l
@
cdecl _mbsrchr_l(str long ptr)
@ cdecl _mbsrev(str)
@ stub _mbsrev_l
@ cdecl _mbsset(ptr long)
...
...
dlls/msvcr120/msvcr120.spec
View file @
2853352c
...
...
@@ -1544,7 +1544,7 @@
@ cdecl _mbspbrk(str str)
@ stub _mbspbrk_l
@ cdecl _mbsrchr(str long)
@
stub _mbsrchr_l
@
cdecl _mbsrchr_l(str long ptr)
@ cdecl _mbsrev(str)
@ stub _mbsrev_l
@ cdecl _mbsset(ptr long)
...
...
dlls/msvcr80/msvcr80.spec
View file @
2853352c
...
...
@@ -848,7 +848,7 @@
@ cdecl _mbspbrk(str str)
@ stub _mbspbrk_l
@ cdecl _mbsrchr(str long)
@
stub _mbsrchr_l
@
cdecl _mbsrchr_l(str long ptr)
@ cdecl _mbsrev(str)
@ stub _mbsrev_l
@ cdecl _mbsset(ptr long)
...
...
dlls/msvcr90/msvcr90.spec
View file @
2853352c
...
...
@@ -826,7 +826,7 @@
@ cdecl _mbspbrk(str str)
@ stub _mbspbrk_l
@ cdecl _mbsrchr(str long)
@
stub _mbsrchr_l
@
cdecl _mbsrchr_l(str long ptr)
@ cdecl _mbsrev(str)
@ stub _mbsrev_l
@ cdecl _mbsset(ptr long)
...
...
dlls/msvcrt/mbcs.c
View file @
2853352c
...
...
@@ -1442,26 +1442,44 @@ unsigned char* CDECL _mbschr(const unsigned char* s, unsigned int x)
}
/*********************************************************************
* _mbsrchr_l(MSVCRT.@)
*/
unsigned
char
*
CDECL
_mbsrchr_l
(
const
unsigned
char
*
s
,
unsigned
int
x
,
_locale_t
locale
)
{
pthreadmbcinfo
mbcinfo
;
if
(
!
MSVCRT_CHECK_PMT
(
s
))
return
NULL
;
if
(
locale
)
mbcinfo
=
locale
->
mbcinfo
;
else
mbcinfo
=
get_mbcinfo
();
if
(
mbcinfo
->
ismbcodepage
)
{
unsigned
char
*
match
=
NULL
;
unsigned
int
c
;
while
(
1
)
{
c
=
_mbsnextc_l
(
s
,
locale
);
if
(
c
==
x
)
match
=
(
unsigned
char
*
)
s
;
if
(
!
c
)
return
match
;
s
+=
(
c
>
255
)
?
2
:
1
;
}
}
return
u_strrchr
(
s
,
x
);
}
/*********************************************************************
* _mbsrchr(MSVCRT.@)
*/
unsigned
char
*
CDECL
_mbsrchr
(
const
unsigned
char
*
s
,
unsigned
int
x
)
{
if
(
get_mbcinfo
()
->
ismbcodepage
)
{
unsigned
int
c
;
unsigned
char
*
match
=
NULL
;
if
(
!
s
)
return
NULL
;
while
(
1
)
{
c
=
_mbsnextc
(
s
);
if
(
c
==
x
)
match
=
(
unsigned
char
*
)
s
;
if
(
!
c
)
return
match
;
s
+=
(
c
>
255
)
?
2
:
1
;
}
}
return
u_strrchr
(
s
,
x
);
return
_mbsrchr_l
(
s
,
x
,
NULL
);
}
/*********************************************************************
...
...
dlls/msvcrt/msvcrt.spec
View file @
2853352c
...
...
@@ -797,7 +797,7 @@
@ cdecl _mbspbrk(str str)
# stub _mbspbrk_l(str str ptr)
@ cdecl _mbsrchr(str long)
# stub
_mbsrchr_l(str long ptr)
@ cdecl
_mbsrchr_l(str long ptr)
@ cdecl _mbsrev(str)
# stub _mbsrev_l(str ptr)
@ cdecl _mbsset(ptr long)
...
...
dlls/ucrtbase/ucrtbase.spec
View file @
2853352c
...
...
@@ -692,7 +692,7 @@
@ cdecl _mbspbrk(str str)
@ stub _mbspbrk_l
@ cdecl _mbsrchr(str long)
@
stub _mbsrchr_l
@
cdecl _mbsrchr_l(str long ptr)
@ cdecl _mbsrev(str)
@ stub _mbsrev_l
@ cdecl _mbsset(ptr long)
...
...
@@ -1261,7 +1261,7 @@
@ cdecl _o__mbspbrk(str str) _mbspbrk
@ stub _o__mbspbrk_l
@ cdecl _o__mbsrchr(str long) _mbsrchr
@
stub _o_
_mbsrchr_l
@
cdecl _o__mbsrchr_l(str long ptr)
_mbsrchr_l
@ cdecl _o__mbsrev(str) _mbsrev
@ stub _o__mbsrev_l
@ cdecl _o__mbsset(ptr long) _mbsset
...
...
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