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
fce3c3cc
Commit
fce3c3cc
authored
Oct 20, 2022
by
Bartosz Kosiorek
Committed by
Alexandre Julliard
Oct 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add _mbschr_l implementation.
parent
0c0efd3f
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
29 additions
and
14 deletions
+29
-14
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
+21
-6
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 @
fce3c3cc
...
...
@@ -1100,7 +1100,7 @@
@ cdecl _mbscat_s(ptr long str)
@ cdecl _mbscat_s_l(ptr long str ptr)
@ cdecl _mbschr(str long)
@
stub _mbschr_l
@
cdecl _mbschr_l(str long ptr)
@ cdecl _mbscmp(str str)
@ cdecl _mbscmp_l(str str ptr)
@ cdecl _mbscoll(str str)
...
...
dlls/msvcr110/msvcr110.spec
View file @
fce3c3cc
...
...
@@ -1457,7 +1457,7 @@
@ cdecl _mbscat_s(ptr long str)
@ cdecl _mbscat_s_l(ptr long str ptr)
@ cdecl _mbschr(str long)
@
stub _mbschr_l
@
cdecl _mbschr_l(str long ptr)
@ cdecl _mbscmp(str str)
@ cdecl _mbscmp_l(str str ptr)
@ cdecl _mbscoll(str str)
...
...
dlls/msvcr120/msvcr120.spec
View file @
fce3c3cc
...
...
@@ -1468,7 +1468,7 @@
@ cdecl _mbscat_s(ptr long str)
@ cdecl _mbscat_s_l(ptr long str ptr)
@ cdecl _mbschr(str long)
@
stub _mbschr_l
@
cdecl _mbschr_l(str long ptr)
@ cdecl _mbscmp(str str)
@ cdecl _mbscmp_l(str str ptr)
@ cdecl _mbscoll(str str)
...
...
dlls/msvcr80/msvcr80.spec
View file @
fce3c3cc
...
...
@@ -772,7 +772,7 @@
@ cdecl _mbscat_s(ptr long str)
@ cdecl _mbscat_s_l(ptr long str ptr)
@ cdecl _mbschr(str long)
@
stub _mbschr_l
@
cdecl _mbschr_l(str long ptr)
@ cdecl _mbscmp(str str)
@ cdecl _mbscmp_l(str str ptr)
@ cdecl _mbscoll(str str)
...
...
dlls/msvcr90/msvcr90.spec
View file @
fce3c3cc
...
...
@@ -750,7 +750,7 @@
@ cdecl _mbscat_s(ptr long str)
@ cdecl _mbscat_s_l(ptr long str ptr)
@ cdecl _mbschr(str long)
@
stub _mbschr_l
@
cdecl _mbschr_l(str long ptr)
@ cdecl _mbscmp(str str)
@ cdecl _mbscmp_l(str str ptr)
@ cdecl _mbscoll(str str)
...
...
dlls/msvcrt/mbcs.c
View file @
fce3c3cc
...
...
@@ -1344,18 +1344,25 @@ unsigned char * CDECL _mbsstr(const unsigned char *haystack, const unsigned char
}
/*********************************************************************
* _mbschr(MSVCRT.@)
*
* Find a multibyte character in a multibyte string.
* _mbschr_l(MSVCRT.@)
*/
unsigned
char
*
CDECL
_mbschr
(
const
unsigned
char
*
s
,
unsigned
int
x
)
unsigned
char
*
CDECL
_mbschr
_l
(
const
unsigned
char
*
s
,
unsigned
int
x
,
_locale_t
locale
)
{
if
(
get_mbcinfo
()
->
ismbcodepage
)
pthreadmbcinfo
mbcinfo
;
if
(
!
MSVCRT_CHECK_PMT
(
s
))
return
NULL
;
if
(
locale
)
mbcinfo
=
locale
->
mbcinfo
;
else
mbcinfo
=
get_mbcinfo
();
if
(
mbcinfo
->
ismbcodepage
)
{
unsigned
int
c
;
while
(
1
)
{
c
=
_mbsnextc
(
s
);
c
=
_mbsnextc
_l
(
s
,
locale
);
if
(
c
==
x
)
return
(
unsigned
char
*
)
s
;
if
(
!
c
)
...
...
@@ -1367,6 +1374,14 @@ unsigned char* CDECL _mbschr(const unsigned char* s, unsigned int x)
}
/*********************************************************************
* _mbschr(MSVCRT.@)
*/
unsigned
char
*
CDECL
_mbschr
(
const
unsigned
char
*
s
,
unsigned
int
x
)
{
return
_mbschr_l
(
s
,
x
,
NULL
);
}
/*********************************************************************
* _mbsrchr(MSVCRT.@)
*/
unsigned
char
*
CDECL
_mbsrchr
(
const
unsigned
char
*
s
,
unsigned
int
x
)
...
...
dlls/msvcrt/msvcrt.spec
View file @
fce3c3cc
...
...
@@ -718,7 +718,7 @@
@ cdecl _mbscat_s(ptr long str)
@ cdecl _mbscat_s_l(ptr long str ptr)
@ cdecl _mbschr(str long)
# stub
_mbschr_l(str long ptr)
@ cdecl
_mbschr_l(str long ptr)
@ cdecl _mbscmp(str str)
@ cdecl _mbscmp_l(str str ptr)
@ cdecl _mbscoll(str str)
...
...
dlls/ucrtbase/ucrtbase.spec
View file @
fce3c3cc
...
...
@@ -614,7 +614,7 @@
@ cdecl _mbscat_s(ptr long str)
@ cdecl _mbscat_s_l(ptr long str ptr)
@ cdecl _mbschr(str long)
@
stub _mbschr_l
@
cdecl _mbschr_l(str long ptr)
@ cdecl _mbscmp(str str)
@ cdecl _mbscmp_l(str str ptr)
@ cdecl _mbscoll(str str)
...
...
@@ -1184,7 +1184,7 @@
@ cdecl _o__mbscat_s(ptr long str) _mbscat_s
@ cdecl _o__mbscat_s_l(ptr long str ptr) _mbscat_s_l
@ cdecl _o__mbschr(str long) _mbschr
@
stub _o_
_mbschr_l
@
cdecl _o__mbschr_l(str long ptr)
_mbschr_l
@ cdecl _o__mbscmp(str str) _mbscmp
@ cdecl _o__mbscmp_l(str str ptr) _mbscmp_l
@ cdecl _o__mbscoll(str str) _mbscoll
...
...
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