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
f73d74c6
Commit
f73d74c6
authored
Nov 07, 2023
by
Bartosz Kosiorek
Committed by
Alexandre Julliard
Nov 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add _mbsncmp_l implementation.
parent
8f303050
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
49 additions
and
30 deletions
+49
-30
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
+41
-22
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 @
f73d74c6
...
...
@@ -1152,7 +1152,7 @@
@ cdecl _mbsnccnt(str long)
@ cdecl _mbsnccnt_l(str long ptr)
@ cdecl _mbsncmp(str str long)
@
stub _mbsncmp_l
@
cdecl _mbsncmp_l(str str long ptr)
@ stub _mbsncoll(str str long)
@ stub _mbsncoll_l
@ cdecl _mbsncpy(ptr str long)
...
...
dlls/msvcr110/msvcr110.spec
View file @
f73d74c6
...
...
@@ -1509,7 +1509,7 @@
@ cdecl _mbsnccnt(str long)
@ cdecl _mbsnccnt_l(str long ptr)
@ cdecl _mbsncmp(str str long)
@
stub _mbsncmp_l
@
cdecl _mbsncmp_l(str str long ptr)
@ stub _mbsncoll(str str long)
@ stub _mbsncoll_l
@ cdecl _mbsncpy(ptr str long)
...
...
dlls/msvcr120/msvcr120.spec
View file @
f73d74c6
...
...
@@ -1520,7 +1520,7 @@
@ cdecl _mbsnccnt(str long)
@ cdecl _mbsnccnt_l(str long ptr)
@ cdecl _mbsncmp(str str long)
@
stub _mbsncmp_l
@
cdecl _mbsncmp_l(str str long ptr)
@ stub _mbsncoll(str str long)
@ stub _mbsncoll_l
@ cdecl _mbsncpy(ptr str long)
...
...
dlls/msvcr80/msvcr80.spec
View file @
f73d74c6
...
...
@@ -824,7 +824,7 @@
@ cdecl _mbsnccnt(str long)
@ cdecl _mbsnccnt_l(str long ptr)
@ cdecl _mbsncmp(str str long)
@
stub _mbsncmp_l
@
cdecl _mbsncmp_l(str str long ptr)
@ stub _mbsncoll(str str long)
@ stub _mbsncoll_l
@ cdecl _mbsncpy(ptr str long)
...
...
dlls/msvcr90/msvcr90.spec
View file @
f73d74c6
...
...
@@ -802,7 +802,7 @@
@ cdecl _mbsnccnt(str long)
@ cdecl _mbsnccnt_l(str long ptr)
@ cdecl _mbsncmp(str str long)
@
stub _mbsncmp_l
@
cdecl _mbsncmp_l(str str long ptr)
@ stub _mbsncoll(str str long)
@ stub _mbsncoll_l
@ cdecl _mbsncpy(ptr str long)
...
...
dlls/msvcrt/mbcs.c
View file @
f73d74c6
...
...
@@ -1225,34 +1225,53 @@ int CDECL _mbsicmp(const unsigned char* str, const unsigned char* cmp)
}
/*********************************************************************
* _mbsncmp(MSVCRT.@)
* _mbsncmp
_l
(MSVCRT.@)
*/
int
CDECL
_mbsncmp
(
const
unsigned
char
*
str
,
const
unsigned
char
*
cmp
,
size_t
len
)
int
CDECL
_mbsncmp_l
(
const
unsigned
char
*
str
,
const
unsigned
char
*
cmp
,
size_t
len
,
_locale_t
locale
)
{
if
(
!
len
)
return
0
;
if
(
get_mbcinfo
()
->
ismbcodepage
)
{
pthreadmbcinfo
mbcinfo
;
unsigned
int
strc
,
cmpc
;
while
(
len
--
)
if
(
!
len
)
return
0
;
if
(
locale
)
mbcinfo
=
locale
->
mbcinfo
;
else
mbcinfo
=
get_mbcinfo
();
if
(
!
mbcinfo
->
ismbcodepage
)
return
u_strncmp
(
str
,
cmp
,
len
);
/* ASCII CP */
if
(
!
MSVCRT_CHECK_PMT
(
str
&&
cmp
))
return
_NLSCMPERROR
;
while
(
len
--
)
{
int
inc
;
if
(
!*
str
)
return
*
cmp
?
-
1
:
0
;
if
(
!*
cmp
)
return
1
;
strc
=
_mbsnextc
(
str
);
cmpc
=
_mbsnextc
(
cmp
);
if
(
strc
!=
cmpc
)
return
strc
<
cmpc
?
-
1
:
1
;
inc
=
(
strc
>
255
)
?
2
:
1
;
/* Equal, use same increment */
str
+=
inc
;
cmp
+=
inc
;
int
inc
;
if
(
!*
str
)
return
*
cmp
?
-
1
:
0
;
if
(
!*
cmp
)
return
1
;
strc
=
_mbsnextc_l
(
str
,
locale
);
cmpc
=
_mbsnextc_l
(
cmp
,
locale
);
if
(
strc
!=
cmpc
)
return
strc
<
cmpc
?
-
1
:
1
;
inc
=
(
strc
>
255
)
?
2
:
1
;
/* Equal, use same increment */
str
+=
inc
;
cmp
+=
inc
;
}
return
0
;
/* Matched len chars */
}
return
u_strncmp
(
str
,
cmp
,
len
);
/* ASCII CP */
}
/*********************************************************************
* _mbsncmp(MSVCRT.@)
*/
int
CDECL
_mbsncmp
(
const
unsigned
char
*
str
,
const
unsigned
char
*
cmp
,
size_t
len
)
{
return
_mbsncmp_l
(
str
,
cmp
,
len
,
NULL
);
}
/*********************************************************************
...
...
dlls/msvcrt/msvcrt.spec
View file @
f73d74c6
...
...
@@ -773,7 +773,7 @@
@ cdecl _mbsnccnt(str long)
@ cdecl _mbsnccnt_l(str long ptr)
@ cdecl _mbsncmp(str str long)
# stub
_mbsncmp_l(str str long ptr)
@ cdecl
_mbsncmp_l(str str long ptr)
@ stub _mbsncoll(str str long)
# stub _mbsncoll_l(str str long ptr)
@ cdecl _mbsncpy(ptr str long)
...
...
dlls/ucrtbase/ucrtbase.spec
View file @
f73d74c6
...
...
@@ -668,7 +668,7 @@
@ cdecl _mbsnccnt(str long)
@ cdecl _mbsnccnt_l(str long ptr)
@ cdecl _mbsncmp(str str long)
@
stub _mbsncmp_l
@
cdecl _mbsncmp_l(str str long ptr)
@ stub _mbsncoll(str str long)
@ stub _mbsncoll_l
@ cdecl _mbsncpy(ptr str long)
...
...
@@ -1237,7 +1237,7 @@
@ cdecl _o__mbsnccnt(str long) _mbsnccnt
@ cdecl _o__mbsnccnt_l(str long ptr) _mbsnccnt_l
@ cdecl _o__mbsncmp(str str long) _mbsncmp
@
stub _o_
_mbsncmp_l
@
cdecl _o__mbsncmp_l(str str long ptr)
_mbsncmp_l
@ stub _o__mbsncoll
@ stub _o__mbsncoll_l
@ cdecl _o__mbsncpy(ptr str long) _mbsncpy
...
...
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