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
beb7f9fa
Commit
beb7f9fa
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 _mbsicmp_l implementation.
parent
fce3c3cc
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
30 additions
and
13 deletions
+30
-13
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
+22
-5
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 @
beb7f9fa
...
...
@@ -1112,7 +1112,7 @@
@ cdecl _mbsdec(ptr ptr)
@ stub _mbsdec_l
@ cdecl _mbsicmp(str str)
@
stub _mbsicmp_l
@
cdecl _mbsicmp_l(str str ptr)
@ cdecl _mbsicoll(str str)
@ cdecl _mbsicoll_l(str str ptr)
@ cdecl _mbsinc(str)
...
...
dlls/msvcr110/msvcr110.spec
View file @
beb7f9fa
...
...
@@ -1469,7 +1469,7 @@
@ cdecl _mbsdec(ptr ptr)
@ stub _mbsdec_l
@ cdecl _mbsicmp(str str)
@
stub _mbsicmp_l
@
cdecl _mbsicmp_l(str str ptr)
@ cdecl _mbsicoll(str str)
@ cdecl _mbsicoll_l(str str ptr)
@ cdecl _mbsinc(str)
...
...
dlls/msvcr120/msvcr120.spec
View file @
beb7f9fa
...
...
@@ -1480,7 +1480,7 @@
@ cdecl _mbsdec(ptr ptr)
@ stub _mbsdec_l
@ cdecl _mbsicmp(str str)
@
stub _mbsicmp_l
@
cdecl _mbsicmp_l(str str ptr)
@ cdecl _mbsicoll(str str)
@ cdecl _mbsicoll_l(str str ptr)
@ cdecl _mbsinc(str)
...
...
dlls/msvcr80/msvcr80.spec
View file @
beb7f9fa
...
...
@@ -784,7 +784,7 @@
@ cdecl _mbsdec(ptr ptr)
@ stub _mbsdec_l
@ cdecl _mbsicmp(str str)
@
stub _mbsicmp_l
@
cdecl _mbsicmp_l(str str ptr)
@ cdecl _mbsicoll(str str)
@ cdecl _mbsicoll_l(str str ptr)
@ cdecl _mbsinc(str)
...
...
dlls/msvcr90/msvcr90.spec
View file @
beb7f9fa
...
...
@@ -762,7 +762,7 @@
@ cdecl _mbsdec(ptr ptr)
@ stub _mbsdec_l
@ cdecl _mbsicmp(str str)
@
stub _mbsicmp_l
@
cdecl _mbsicmp_l(str str ptr)
@ cdecl _mbsicoll(str str)
@ cdecl _mbsicoll_l(str str ptr)
@ cdecl _mbsinc(str)
...
...
dlls/msvcrt/mbcs.c
View file @
beb7f9fa
...
...
@@ -1098,11 +1098,20 @@ int CDECL _mbscoll(const unsigned char* str, const unsigned char* cmp)
}
/*********************************************************************
* _mbsicmp(MSVCRT.@)
* _mbsicmp
_l
(MSVCRT.@)
*/
int
CDECL
_mbsicmp
(
const
unsigned
char
*
str
,
const
unsigned
char
*
cmp
)
int
CDECL
_mbsicmp
_l
(
const
unsigned
char
*
str
,
const
unsigned
char
*
cmp
,
_locale_t
locale
)
{
if
(
get_mbcinfo
()
->
ismbcodepage
)
pthreadmbcinfo
mbcinfo
;
if
(
!
MSVCRT_CHECK_PMT
(
str
&&
cmp
))
return
_NLSCMPERROR
;
if
(
!
locale
)
mbcinfo
=
get_mbcinfo
();
else
mbcinfo
=
locale
->
mbcinfo
;
if
(
mbcinfo
->
ismbcodepage
)
{
unsigned
int
strc
,
cmpc
;
do
{
...
...
@@ -1110,8 +1119,8 @@ int CDECL _mbsicmp(const unsigned char* str, const unsigned char* cmp)
return
*
cmp
?
-
1
:
0
;
if
(
!*
cmp
)
return
1
;
strc
=
_mbctolower
(
_mbsnextc
(
str
)
);
cmpc
=
_mbctolower
(
_mbsnextc
(
cmp
)
);
strc
=
_mbctolower
_l
(
_mbsnextc_l
(
str
,
locale
),
locale
);
cmpc
=
_mbctolower
_l
(
_mbsnextc_l
(
cmp
,
locale
),
locale
);
if
(
strc
!=
cmpc
)
return
strc
<
cmpc
?
-
1
:
1
;
str
+=
(
strc
>
255
)
?
2
:
1
;
...
...
@@ -1122,6 +1131,14 @@ int CDECL _mbsicmp(const unsigned char* str, const unsigned char* cmp)
}
/*********************************************************************
* _mbsicmp(MSVCRT.@)
*/
int
CDECL
_mbsicmp
(
const
unsigned
char
*
str
,
const
unsigned
char
*
cmp
)
{
return
_mbsicmp_l
(
str
,
cmp
,
NULL
);
}
/*********************************************************************
* _mbsncmp(MSVCRT.@)
*/
int
CDECL
_mbsncmp
(
const
unsigned
char
*
str
,
const
unsigned
char
*
cmp
,
size_t
len
)
...
...
dlls/msvcrt/msvcrt.spec
View file @
beb7f9fa
...
...
@@ -733,7 +733,7 @@
@ cdecl _mbsdup(str) _strdup
# stub _strdup_dbg(str long str long)
@ cdecl _mbsicmp(str str)
# stub
_mbsicmp_l(str str ptr)
@ cdecl
_mbsicmp_l(str str ptr)
@ cdecl _mbsicoll(str str)
@ cdecl _mbsicoll_l(str str ptr)
@ cdecl _mbsinc(str)
...
...
dlls/ucrtbase/ucrtbase.spec
View file @
beb7f9fa
...
...
@@ -627,7 +627,7 @@
@ stub _mbsdec_l
@ cdecl _mbsdup(str) _strdup
@ cdecl _mbsicmp(str str)
@
stub _mbsicmp_l
@
cdecl _mbsicmp_l(str str ptr)
@ cdecl _mbsicoll(str str)
@ cdecl _mbsicoll_l(str str ptr)
@ cdecl _mbsinc(str)
...
...
@@ -1196,7 +1196,7 @@
@ cdecl _o__mbsdec(ptr ptr) _mbsdec
@ stub _o__mbsdec_l
@ cdecl _o__mbsicmp(str str) _mbsicmp
@
stub _o_
_mbsicmp_l
@
cdecl _o__mbsicmp_l(str str ptr)
_mbsicmp_l
@ cdecl _o__mbsicoll(str str) _mbsicoll
@ cdecl _o__mbsicoll_l(str str ptr) _mbsicoll_l
@ cdecl _o__mbsinc(str) _mbsinc
...
...
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