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
fa2248cc
Commit
fa2248cc
authored
Nov 06, 2023
by
Bartosz Kosiorek
Committed by
Alexandre Julliard
Nov 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add _mbsnccnt_l implementation.
parent
a67a0889
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
49 additions
and
28 deletions
+49
-28
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
-20
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 @
fa2248cc
...
...
@@ -1150,7 +1150,7 @@
@ stub _mbsncat_s
@ stub _mbsncat_s_l
@ cdecl _mbsnccnt(str long)
@
stub _mbsnccnt_l
@
cdecl _mbsnccnt_l(str long ptr)
@ cdecl _mbsncmp(str str long)
@ stub _mbsncmp_l
@ stub _mbsncoll(str str long)
...
...
dlls/msvcr110/msvcr110.spec
View file @
fa2248cc
...
...
@@ -1507,7 +1507,7 @@
@ stub _mbsncat_s
@ stub _mbsncat_s_l
@ cdecl _mbsnccnt(str long)
@
stub _mbsnccnt_l
@
cdecl _mbsnccnt_l(str long ptr)
@ cdecl _mbsncmp(str str long)
@ stub _mbsncmp_l
@ stub _mbsncoll(str str long)
...
...
dlls/msvcr120/msvcr120.spec
View file @
fa2248cc
...
...
@@ -1518,7 +1518,7 @@
@ stub _mbsncat_s
@ stub _mbsncat_s_l
@ cdecl _mbsnccnt(str long)
@
stub _mbsnccnt_l
@
cdecl _mbsnccnt_l(str long ptr)
@ cdecl _mbsncmp(str str long)
@ stub _mbsncmp_l
@ stub _mbsncoll(str str long)
...
...
dlls/msvcr80/msvcr80.spec
View file @
fa2248cc
...
...
@@ -822,7 +822,7 @@
@ stub _mbsncat_s
@ stub _mbsncat_s_l
@ cdecl _mbsnccnt(str long)
@
stub _mbsnccnt_l
@
cdecl _mbsnccnt_l(str long ptr)
@ cdecl _mbsncmp(str str long)
@ stub _mbsncmp_l
@ stub _mbsncoll(str str long)
...
...
dlls/msvcr90/msvcr90.spec
View file @
fa2248cc
...
...
@@ -800,7 +800,7 @@
@ stub _mbsncat_s
@ stub _mbsncat_s_l
@ cdecl _mbsnccnt(str long)
@
stub _mbsnccnt_l
@
cdecl _mbsnccnt_l(str long ptr)
@ cdecl _mbsncmp(str str long)
@ stub _mbsncmp_l
@ stub _mbsncoll(str str long)
...
...
dlls/msvcrt/mbcs.c
View file @
fa2248cc
...
...
@@ -2273,31 +2273,52 @@ unsigned char* CDECL _mbsnset(unsigned char* str, unsigned int c, size_t len)
}
/*********************************************************************
* _mbsnccnt(MSVCRT.@)
* _mbsnccnt
_l
(MSVCRT.@)
* 'c' is for 'character'.
*/
size_t
CDECL
_mbsnccnt
(
const
unsigned
char
*
str
,
size_t
len
)
size_t
CDECL
_mbsnccnt
_l
(
const
unsigned
char
*
str
,
size_t
len
,
_locale_t
locale
)
{
size_t
ret
;
if
(
get_mbcinfo
()
->
ismbcodepage
)
{
ret
=
0
;
while
(
*
str
&&
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
(
*
str
))
{
if
(
!
len
)
break
;
len
--
;
str
++
;
}
str
++
;
ret
++
;
ret
=
0
;
while
(
*
str
&&
len
--
>
0
)
{
if
(
_ismbblead_l
(
*
str
,
locale
))
{
if
(
!
len
)
break
;
len
--
;
str
++
;
}
str
++
;
ret
++
;
}
return
ret
;
}
return
ret
;
}
ret
=
u_strlen
(
str
);
return
min
(
ret
,
len
);
/* ASCII CP */
ret
=
u_strlen
(
str
);
return
min
(
ret
,
len
);
/* ASCII CP */
}
/*********************************************************************
* _mbsnccnt(MSVCRT.@)
* 'c' is for 'character'.
*/
size_t
CDECL
_mbsnccnt
(
const
unsigned
char
*
str
,
size_t
len
)
{
return
_mbsnccnt_l
(
str
,
len
,
NULL
);
}
/*********************************************************************
...
...
dlls/msvcrt/msvcrt.spec
View file @
fa2248cc
...
...
@@ -771,7 +771,7 @@
# stub _mbsncat_s(str long str long)
# stub _mbsncat_s_l(str long str long ptr)
@ cdecl _mbsnccnt(str long)
# stub
_mbsnccnt_l(str long ptr)
@ cdecl
_mbsnccnt_l(str long ptr)
@ cdecl _mbsncmp(str str long)
# stub _mbsncmp_l(str str long ptr)
@ stub _mbsncoll(str str long)
...
...
dlls/ucrtbase/ucrtbase.spec
View file @
fa2248cc
...
...
@@ -666,7 +666,7 @@
@ stub _mbsncat_s
@ stub _mbsncat_s_l
@ cdecl _mbsnccnt(str long)
@
stub _mbsnccnt_l
@
cdecl _mbsnccnt_l(str long ptr)
@ cdecl _mbsncmp(str str long)
@ stub _mbsncmp_l
@ stub _mbsncoll(str str long)
...
...
@@ -1235,7 +1235,7 @@
@ stub _o__mbsncat_s
@ stub _o__mbsncat_s_l
@ cdecl _o__mbsnccnt(str long) _mbsnccnt
@
stub _o_
_mbsnccnt_l
@
cdecl _o__mbsnccnt_l(str long ptr)
_mbsnccnt_l
@ cdecl _o__mbsncmp(str str long) _mbsncmp
@ stub _o__mbsncmp_l
@ stub _o__mbsncoll
...
...
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