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
544007be
Commit
544007be
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 _mbsnbcmp_l implementation.
parent
5556eba0
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
62 additions
and
43 deletions
+62
-43
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
+54
-35
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 @
544007be
...
...
@@ -1128,7 +1128,7 @@
@ cdecl _mbsnbcat_s(str long ptr long)
@ stub _mbsnbcat_s_l
@ cdecl _mbsnbcmp(str str long)
@
stub _mbsnbcmp_l
@
cdecl _mbsnbcmp_l(str str long ptr)
@ cdecl _mbsnbcnt(ptr long)
@ stub _mbsnbcnt_l
@ cdecl _mbsnbcoll(str str long)
...
...
dlls/msvcr110/msvcr110.spec
View file @
544007be
...
...
@@ -1485,7 +1485,7 @@
@ cdecl _mbsnbcat_s(str long ptr long)
@ stub _mbsnbcat_s_l
@ cdecl _mbsnbcmp(str str long)
@
stub _mbsnbcmp_l
@
cdecl _mbsnbcmp_l(str str long ptr)
@ cdecl _mbsnbcnt(ptr long)
@ stub _mbsnbcnt_l
@ cdecl _mbsnbcoll(str str long)
...
...
dlls/msvcr120/msvcr120.spec
View file @
544007be
...
...
@@ -1496,7 +1496,7 @@
@ cdecl _mbsnbcat_s(str long ptr long)
@ stub _mbsnbcat_s_l
@ cdecl _mbsnbcmp(str str long)
@
stub _mbsnbcmp_l
@
cdecl _mbsnbcmp_l(str str long ptr)
@ cdecl _mbsnbcnt(ptr long)
@ stub _mbsnbcnt_l
@ cdecl _mbsnbcoll(str str long)
...
...
dlls/msvcr80/msvcr80.spec
View file @
544007be
...
...
@@ -800,7 +800,7 @@
@ cdecl _mbsnbcat_s(str long ptr long)
@ stub _mbsnbcat_s_l
@ cdecl _mbsnbcmp(str str long)
@
stub _mbsnbcmp_l
@
cdecl _mbsnbcmp_l(str str long ptr)
@ cdecl _mbsnbcnt(ptr long)
@ stub _mbsnbcnt_l
@ cdecl _mbsnbcoll(str str long)
...
...
dlls/msvcr90/msvcr90.spec
View file @
544007be
...
...
@@ -778,7 +778,7 @@
@ cdecl _mbsnbcat_s(str long ptr long)
@ stub _mbsnbcat_s_l
@ cdecl _mbsnbcmp(str str long)
@
stub _mbsnbcmp_l
@
cdecl _mbsnbcmp_l(str str long ptr)
@ cdecl _mbsnbcnt(ptr long)
@ stub _mbsnbcnt_l
@ cdecl _mbsnbcoll(str str long)
...
...
dlls/msvcrt/mbcs.c
View file @
544007be
...
...
@@ -1213,45 +1213,64 @@ int CDECL _mbsncmp(const unsigned char* str, const unsigned char* cmp, size_t le
}
/*********************************************************************
* _mbsnbcmp(MSVCRT.@)
* _mbsnbcmp
_l
(MSVCRT.@)
*/
int
CDECL
_mbsnbcmp
(
const
unsigned
char
*
str
,
const
unsigned
char
*
cmp
,
size_t
len
)
int
CDECL
_mbsnbcmp
_l
(
const
unsigned
char
*
str
,
const
unsigned
char
*
cmp
,
size_t
len
,
_locale_t
locale
)
{
if
(
!
len
)
return
0
;
if
(
get_mbcinfo
()
->
ismbcodepage
)
{
unsigned
int
strc
,
cmpc
;
while
(
len
)
pthreadmbcinfo
mbcinfo
;
if
(
!
len
)
return
0
;
if
(
!
MSVCRT_CHECK_PMT
(
str
&&
cmp
))
return
_NLSCMPERROR
;
if
(
locale
)
mbcinfo
=
locale
->
mbcinfo
;
else
mbcinfo
=
get_mbcinfo
();
if
(
mbcinfo
->
ismbcodepage
)
{
int
clen
;
if
(
!*
str
)
return
*
cmp
?
-
1
:
0
;
if
(
!*
cmp
)
return
1
;
if
(
_ismbblead
(
*
str
))
{
strc
=
(
len
>=
2
)
?
_mbsnextc
(
str
)
:
0
;
clen
=
2
;
}
else
{
strc
=*
str
;
clen
=
1
;
}
if
(
_ismbblead
(
*
cmp
))
cmpc
=
(
len
>=
2
)
?
_mbsnextc
(
cmp
)
:
0
;
else
cmpc
=*
cmp
;
if
(
strc
!=
cmpc
)
return
strc
<
cmpc
?
-
1
:
1
;
len
-=
clen
;
str
+=
clen
;
cmp
+=
clen
;
unsigned
int
strc
,
cmpc
;
while
(
len
)
{
int
clen
;
if
(
!*
str
)
return
*
cmp
?
-
1
:
0
;
if
(
!*
cmp
)
return
1
;
if
(
_ismbblead_l
(
*
str
,
locale
))
{
strc
=
(
len
>=
2
)
?
_mbsnextc_l
(
str
,
locale
)
:
0
;
clen
=
2
;
}
else
{
strc
=
*
str
;
clen
=
1
;
}
if
(
_ismbblead_l
(
*
cmp
,
locale
))
cmpc
=
(
len
>=
2
)
?
_mbsnextc_l
(
cmp
,
locale
)
:
0
;
else
cmpc
=
*
cmp
;
if
(
strc
!=
cmpc
)
return
strc
<
cmpc
?
-
1
:
1
;
len
-=
clen
;
str
+=
clen
;
cmp
+=
clen
;
}
return
0
;
/* Matched len chars */
}
return
0
;
/* Matched len chars */
}
return
u_strncmp
(
str
,
cmp
,
len
);
return
u_strncmp
(
str
,
cmp
,
len
);
}
/*********************************************************************
* _mbsnbcmp(MSVCRT.@)
*/
int
CDECL
_mbsnbcmp
(
const
unsigned
char
*
str
,
const
unsigned
char
*
cmp
,
size_t
len
)
{
return
_mbsnbcmp_l
(
str
,
cmp
,
len
,
NULL
);
}
/*********************************************************************
...
...
dlls/msvcrt/msvcrt.spec
View file @
544007be
...
...
@@ -749,7 +749,7 @@
@ cdecl _mbsnbcat_s(str long ptr long)
# stub _mbsnbcat_s_l(str long ptr long ptr)
@ cdecl _mbsnbcmp(str str long)
# stub
_mbsnbcmp_l(str str long ptr)
@ cdecl
_mbsnbcmp_l(str str long ptr)
@ cdecl _mbsnbcnt(ptr long)
# stub _mbsnbcnt_l(ptr long ptr)
@ cdecl _mbsnbcoll(str str long)
...
...
dlls/ucrtbase/ucrtbase.spec
View file @
544007be
...
...
@@ -644,7 +644,7 @@
@ cdecl _mbsnbcat_s(str long ptr long)
@ stub _mbsnbcat_s_l
@ cdecl _mbsnbcmp(str str long)
@
stub _mbsnbcmp_l
@
cdecl _mbsnbcmp_l(str str long ptr)
@ cdecl _mbsnbcnt(ptr long)
@ stub _mbsnbcnt_l
@ cdecl _mbsnbcoll(str str long)
...
...
@@ -1213,7 +1213,7 @@
@ cdecl _o__mbsnbcat_s(str long ptr long) _mbsnbcat_s
@ stub _o__mbsnbcat_s_l
@ cdecl _o__mbsnbcmp(str str long) _mbsnbcmp
@
stub _o_
_mbsnbcmp_l
@
cdecl _o_mbsnbcmp_l(str str long ptr)
_mbsnbcmp_l
@ cdecl _o__mbsnbcnt(ptr long) _mbsnbcnt
@ stub _o__mbsnbcnt_l
@ cdecl _o__mbsnbcoll(str str long) _mbsnbcoll
...
...
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