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
2a89257b
Commit
2a89257b
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 _mbsnbcnt_l implementation.
parent
544007be
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
41 additions
and
21 deletions
+41
-21
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
+33
-13
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 @
2a89257b
...
...
@@ -1130,7 +1130,7 @@
@ cdecl _mbsnbcmp(str str long)
@ cdecl _mbsnbcmp_l(str str long ptr)
@ cdecl _mbsnbcnt(ptr long)
@
stub _mbsnbcnt_l
@
cdecl _mbsnbcnt_l(ptr long ptr)
@ cdecl _mbsnbcoll(str str long)
@ cdecl _mbsnbcoll_l(str str long ptr)
@ cdecl _mbsnbcpy(ptr str long)
...
...
dlls/msvcr110/msvcr110.spec
View file @
2a89257b
...
...
@@ -1487,7 +1487,7 @@
@ cdecl _mbsnbcmp(str str long)
@ cdecl _mbsnbcmp_l(str str long ptr)
@ cdecl _mbsnbcnt(ptr long)
@
stub _mbsnbcnt_l
@
cdecl _mbsnbcnt_l(ptr long ptr)
@ cdecl _mbsnbcoll(str str long)
@ cdecl _mbsnbcoll_l(str str long ptr)
@ cdecl _mbsnbcpy(ptr str long)
...
...
dlls/msvcr120/msvcr120.spec
View file @
2a89257b
...
...
@@ -1498,7 +1498,7 @@
@ cdecl _mbsnbcmp(str str long)
@ cdecl _mbsnbcmp_l(str str long ptr)
@ cdecl _mbsnbcnt(ptr long)
@
stub _mbsnbcnt_l
@
cdecl _mbsnbcnt_l(ptr long ptr)
@ cdecl _mbsnbcoll(str str long)
@ cdecl _mbsnbcoll_l(str str long ptr)
@ cdecl _mbsnbcpy(ptr str long)
...
...
dlls/msvcr80/msvcr80.spec
View file @
2a89257b
...
...
@@ -802,7 +802,7 @@
@ cdecl _mbsnbcmp(str str long)
@ cdecl _mbsnbcmp_l(str str long ptr)
@ cdecl _mbsnbcnt(ptr long)
@
stub _mbsnbcnt_l
@
cdecl _mbsnbcnt_l(ptr long ptr)
@ cdecl _mbsnbcoll(str str long)
@ cdecl _mbsnbcoll_l(str str long ptr)
@ cdecl _mbsnbcpy(ptr str long)
...
...
dlls/msvcr90/msvcr90.spec
View file @
2a89257b
...
...
@@ -780,7 +780,7 @@
@ cdecl _mbsnbcmp(str str long)
@ cdecl _mbsnbcmp_l(str str long ptr)
@ cdecl _mbsnbcnt(ptr long)
@
stub _mbsnbcnt_l
@
cdecl _mbsnbcnt_l(ptr long ptr)
@ cdecl _mbsnbcoll(str str long)
@ cdecl _mbsnbcoll_l(str str long ptr)
@ cdecl _mbsnbcpy(ptr str long)
...
...
dlls/msvcrt/mbcs.c
View file @
2a89257b
...
...
@@ -2206,24 +2206,44 @@ size_t CDECL _mbsnccnt(const unsigned char* str, size_t len)
}
/*********************************************************************
* _mbsnbcnt(MSVCRT.@)
* _mbsnbcnt
_l
(MSVCRT.@)
* 'b' is for byte count.
*/
size_t
CDECL
_mbsnbcnt
(
const
unsigned
char
*
str
,
size_t
len
)
size_t
CDECL
_mbsnbcnt
_l
(
const
unsigned
char
*
str
,
size_t
len
,
_locale_t
locale
)
{
size_t
ret
;
if
(
get_mbcinfo
()
->
ismbcodepage
)
{
const
unsigned
char
*
xstr
=
str
;
while
(
*
xstr
&&
len
--
>
0
)
size_t
ret
;
pthreadmbcinfo
mbcinfo
;
if
(
!
len
)
return
0
;
if
(
!
MSVCRT_CHECK_PMT
(
str
))
return
0
;
if
(
locale
)
mbcinfo
=
locale
->
mbcinfo
;
else
mbcinfo
=
get_mbcinfo
();
if
(
mbcinfo
->
ismbcodepage
)
{
if
(
_ismbblead
(
*
xstr
++
))
xstr
++
;
const
unsigned
char
*
xstr
=
str
;
while
(
*
xstr
&&
len
--
>
0
)
{
if
(
_ismbblead_l
(
*
xstr
++
,
locale
))
xstr
++
;
}
return
xstr
-
str
;
}
return
xstr
-
str
;
}
ret
=
u_strlen
(
str
);
return
min
(
ret
,
len
);
/* ASCII CP */
ret
=
u_strlen
(
str
);
return
min
(
ret
,
len
);
/* ASCII CP */
}
/*********************************************************************
* _mbsnbcnt(MSVCRT.@)
* 'b' is for byte count.
*/
size_t
CDECL
_mbsnbcnt
(
const
unsigned
char
*
str
,
size_t
len
)
{
return
_mbsnbcnt_l
(
str
,
len
,
NULL
);
}
/*********************************************************************
...
...
dlls/msvcrt/msvcrt.spec
View file @
2a89257b
...
...
@@ -751,7 +751,7 @@
@ cdecl _mbsnbcmp(str str long)
@ cdecl _mbsnbcmp_l(str str long ptr)
@ cdecl _mbsnbcnt(ptr long)
# stub
_mbsnbcnt_l(ptr long ptr)
@ cdecl
_mbsnbcnt_l(ptr long ptr)
@ cdecl _mbsnbcoll(str str long)
@ cdecl _mbsnbcoll_l(str str long ptr)
@ cdecl _mbsnbcpy(ptr str long)
...
...
dlls/ucrtbase/ucrtbase.spec
View file @
2a89257b
...
...
@@ -646,7 +646,7 @@
@ cdecl _mbsnbcmp(str str long)
@ cdecl _mbsnbcmp_l(str str long ptr)
@ cdecl _mbsnbcnt(ptr long)
@
stub _mbsnbcnt_l
@
cdecl _mbsnbcnt_l(ptr long ptr)
@ cdecl _mbsnbcoll(str str long)
@ cdecl _mbsnbcoll_l(str str long ptr)
@ cdecl _mbsnbcpy(ptr str long)
...
...
@@ -1215,7 +1215,7 @@
@ cdecl _o__mbsnbcmp(str str long) _mbsnbcmp
@ cdecl _o_mbsnbcmp_l(str str long ptr) _mbsnbcmp_l
@ cdecl _o__mbsnbcnt(ptr long) _mbsnbcnt
@
stub _o_
_mbsnbcnt_l
@
cdecl _o__mbsnbcnt_l(ptr long ptr)
_mbsnbcnt_l
@ cdecl _o__mbsnbcoll(str str long) _mbsnbcoll
@ cdecl _o__mbsnbcoll_l(str str long ptr) _mbsnbcoll_l
@ cdecl _o__mbsnbcpy(ptr str long) _mbsnbcpy
...
...
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