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
540d9691
Commit
540d9691
authored
May 16, 2016
by
Piotr Caban
Committed by
Alexandre Julliard
May 16, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add mbsrtowcs_s implementation.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4f5a6841
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
38 additions
and
9 deletions
+38
-9
api-ms-win-crt-convert-l1-1-0.spec
...win-crt-convert-l1-1-0/api-ms-win-crt-convert-l1-1-0.spec
+1
-1
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+1
-1
msvcr110.spec
dlls/msvcr110/msvcr110.spec
+1
-1
msvcr120.spec
dlls/msvcr120/msvcr120.spec
+1
-1
msvcr120_app.spec
dlls/msvcr120_app/msvcr120_app.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
+29
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
ucrtbase.spec
dlls/ucrtbase/ucrtbase.spec
+1
-1
No files found.
dlls/api-ms-win-crt-convert-l1-1-0/api-ms-win-crt-convert-l1-1-0.spec
View file @
540d9691
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
@ stub mbrtoc32
@ stub mbrtoc32
@ cdecl mbrtowc(ptr str long ptr) ucrtbase.mbrtowc
@ cdecl mbrtowc(ptr str long ptr) ucrtbase.mbrtowc
@ cdecl mbsrtowcs(ptr ptr long ptr) ucrtbase.mbsrtowcs
@ cdecl mbsrtowcs(ptr ptr long ptr) ucrtbase.mbsrtowcs
@
stub
mbsrtowcs_s
@
cdecl mbsrtowcs_s(ptr ptr long ptr long ptr) ucrtbase.
mbsrtowcs_s
@ cdecl mbstowcs(ptr str long) ucrtbase.mbstowcs
@ cdecl mbstowcs(ptr str long) ucrtbase.mbstowcs
@ cdecl mbstowcs_s(ptr ptr long str long) ucrtbase.mbstowcs_s
@ cdecl mbstowcs_s(ptr ptr long str long) ucrtbase.mbstowcs_s
@ cdecl mbtowc(ptr str long) ucrtbase.mbtowc
@ cdecl mbtowc(ptr str long) ucrtbase.mbtowc
...
...
dlls/msvcr100/msvcr100.spec
View file @
540d9691
...
@@ -1745,7 +1745,7 @@
...
@@ -1745,7 +1745,7 @@
@ cdecl mbrlen(ptr long ptr) MSVCRT_mbrlen
@ cdecl mbrlen(ptr long ptr) MSVCRT_mbrlen
@ cdecl mbrtowc(ptr str long ptr) MSVCRT_mbrtowc
@ cdecl mbrtowc(ptr str long ptr) MSVCRT_mbrtowc
@ cdecl mbsrtowcs(ptr ptr long ptr) MSVCRT_mbsrtowcs
@ cdecl mbsrtowcs(ptr ptr long ptr) MSVCRT_mbsrtowcs
@
stub
mbsrtowcs_s
@
cdecl mbsrtowcs_s(ptr ptr long ptr long ptr) MSVCRT_
mbsrtowcs_s
@ cdecl mbstowcs(ptr str long) MSVCRT_mbstowcs
@ cdecl mbstowcs(ptr str long) MSVCRT_mbstowcs
@ cdecl mbstowcs_s(ptr ptr long str long) MSVCRT__mbstowcs_s
@ cdecl mbstowcs_s(ptr ptr long str long) MSVCRT__mbstowcs_s
@ cdecl mbtowc(ptr str long) MSVCRT_mbtowc
@ cdecl mbtowc(ptr str long) MSVCRT_mbtowc
...
...
dlls/msvcr110/msvcr110.spec
View file @
540d9691
...
@@ -2103,7 +2103,7 @@
...
@@ -2103,7 +2103,7 @@
@ cdecl mbrlen(ptr long ptr) MSVCRT_mbrlen
@ cdecl mbrlen(ptr long ptr) MSVCRT_mbrlen
@ cdecl mbrtowc(ptr str long ptr) MSVCRT_mbrtowc
@ cdecl mbrtowc(ptr str long ptr) MSVCRT_mbrtowc
@ cdecl mbsrtowcs(ptr ptr long ptr) MSVCRT_mbsrtowcs
@ cdecl mbsrtowcs(ptr ptr long ptr) MSVCRT_mbsrtowcs
@
stub
mbsrtowcs_s
@
cdecl mbsrtowcs_s(ptr ptr long ptr long ptr) MSVCRT_
mbsrtowcs_s
@ cdecl mbstowcs(ptr str long) MSVCRT_mbstowcs
@ cdecl mbstowcs(ptr str long) MSVCRT_mbstowcs
@ cdecl mbstowcs_s(ptr ptr long str long) MSVCRT__mbstowcs_s
@ cdecl mbstowcs_s(ptr ptr long str long) MSVCRT__mbstowcs_s
@ cdecl mbtowc(ptr str long) MSVCRT_mbtowc
@ cdecl mbtowc(ptr str long) MSVCRT_mbtowc
...
...
dlls/msvcr120/msvcr120.spec
View file @
540d9691
...
@@ -2280,7 +2280,7 @@
...
@@ -2280,7 +2280,7 @@
@ cdecl mbrlen(ptr long ptr) MSVCRT_mbrlen
@ cdecl mbrlen(ptr long ptr) MSVCRT_mbrlen
@ cdecl mbrtowc(ptr str long ptr) MSVCRT_mbrtowc
@ cdecl mbrtowc(ptr str long ptr) MSVCRT_mbrtowc
@ cdecl mbsrtowcs(ptr ptr long ptr) MSVCRT_mbsrtowcs
@ cdecl mbsrtowcs(ptr ptr long ptr) MSVCRT_mbsrtowcs
@
stub
mbsrtowcs_s
@
cdecl mbsrtowcs_s(ptr ptr long ptr long ptr) MSVCRT_
mbsrtowcs_s
@ cdecl mbstowcs(ptr str long) MSVCRT_mbstowcs
@ cdecl mbstowcs(ptr str long) MSVCRT_mbstowcs
@ cdecl mbstowcs_s(ptr ptr long str long) MSVCRT__mbstowcs_s
@ cdecl mbstowcs_s(ptr ptr long str long) MSVCRT__mbstowcs_s
@ cdecl mbtowc(ptr str long) MSVCRT_mbtowc
@ cdecl mbtowc(ptr str long) MSVCRT_mbtowc
...
...
dlls/msvcr120_app/msvcr120_app.spec
View file @
540d9691
...
@@ -1943,7 +1943,7 @@
...
@@ -1943,7 +1943,7 @@
@ cdecl mbrlen(ptr long ptr) msvcr120.mbrlen
@ cdecl mbrlen(ptr long ptr) msvcr120.mbrlen
@ cdecl mbrtowc(ptr str long ptr) msvcr120.mbrtowc
@ cdecl mbrtowc(ptr str long ptr) msvcr120.mbrtowc
@ cdecl mbsrtowcs(ptr ptr long ptr) msvcr120.mbsrtowcs
@ cdecl mbsrtowcs(ptr ptr long ptr) msvcr120.mbsrtowcs
@
stub
mbsrtowcs_s
@
cdecl mbsrtowcs_s(ptr ptr long ptr long ptr) msvcr120.
mbsrtowcs_s
@ cdecl mbstowcs(ptr str long) msvcr120.mbstowcs
@ cdecl mbstowcs(ptr str long) msvcr120.mbstowcs
@ cdecl mbstowcs_s(ptr ptr long str long) msvcr120.mbstowcs_s
@ cdecl mbstowcs_s(ptr ptr long str long) msvcr120.mbstowcs_s
@ cdecl mbtowc(ptr str long) msvcr120.mbtowc
@ cdecl mbtowc(ptr str long) msvcr120.mbtowc
...
...
dlls/msvcr80/msvcr80.spec
View file @
540d9691
...
@@ -1425,7 +1425,7 @@
...
@@ -1425,7 +1425,7 @@
@ cdecl mbrlen(ptr long ptr) MSVCRT_mbrlen
@ cdecl mbrlen(ptr long ptr) MSVCRT_mbrlen
@ cdecl mbrtowc(ptr str long ptr) MSVCRT_mbrtowc
@ cdecl mbrtowc(ptr str long ptr) MSVCRT_mbrtowc
@ cdecl mbsrtowcs(ptr ptr long ptr) MSVCRT_mbsrtowcs
@ cdecl mbsrtowcs(ptr ptr long ptr) MSVCRT_mbsrtowcs
@
stub
mbsrtowcs_s
@
cdecl mbsrtowcs_s(ptr ptr long ptr long ptr) MSVCRT_
mbsrtowcs_s
@ cdecl mbstowcs(ptr str long) MSVCRT_mbstowcs
@ cdecl mbstowcs(ptr str long) MSVCRT_mbstowcs
@ cdecl mbstowcs_s(ptr ptr long str long) MSVCRT__mbstowcs_s
@ cdecl mbstowcs_s(ptr ptr long str long) MSVCRT__mbstowcs_s
@ cdecl mbtowc(ptr str long) MSVCRT_mbtowc
@ cdecl mbtowc(ptr str long) MSVCRT_mbtowc
...
...
dlls/msvcr90/msvcr90.spec
View file @
540d9691
...
@@ -1398,7 +1398,7 @@
...
@@ -1398,7 +1398,7 @@
@ cdecl mbrlen(ptr long ptr) MSVCRT_mbrlen
@ cdecl mbrlen(ptr long ptr) MSVCRT_mbrlen
@ cdecl mbrtowc(ptr str long ptr) MSVCRT_mbrtowc
@ cdecl mbrtowc(ptr str long ptr) MSVCRT_mbrtowc
@ cdecl mbsrtowcs(ptr ptr long ptr) MSVCRT_mbsrtowcs
@ cdecl mbsrtowcs(ptr ptr long ptr) MSVCRT_mbsrtowcs
@
stub
mbsrtowcs_s
@
cdecl mbsrtowcs_s(ptr ptr long ptr long ptr) MSVCRT_
mbsrtowcs_s
@ cdecl mbstowcs(ptr str long) MSVCRT_mbstowcs
@ cdecl mbstowcs(ptr str long) MSVCRT_mbstowcs
@ cdecl mbstowcs_s(ptr ptr long str long) MSVCRT__mbstowcs_s
@ cdecl mbstowcs_s(ptr ptr long str long) MSVCRT__mbstowcs_s
@ cdecl mbtowc(ptr str long) MSVCRT_mbtowc
@ cdecl mbtowc(ptr str long) MSVCRT_mbtowc
...
...
dlls/msvcrt/mbcs.c
View file @
540d9691
...
@@ -2371,6 +2371,35 @@ MSVCRT_size_t CDECL MSVCRT_mbsrtowcs(MSVCRT_wchar_t *wcstr,
...
@@ -2371,6 +2371,35 @@ MSVCRT_size_t CDECL MSVCRT_mbsrtowcs(MSVCRT_wchar_t *wcstr,
}
}
/*********************************************************************
/*********************************************************************
* mbsrtowcs_s(MSVCRT.@)
*/
int
CDECL
MSVCRT_mbsrtowcs_s
(
MSVCRT_size_t
*
ret
,
MSVCRT_wchar_t
*
wcstr
,
MSVCRT_size_t
len
,
const
char
**
mbstr
,
MSVCRT_size_t
count
,
MSVCRT_mbstate_t
*
state
)
{
MSVCRT_size_t
tmp
;
if
(
!
ret
)
ret
=
&
tmp
;
if
(
!
MSVCRT_CHECK_PMT
(
!!
wcstr
==
!!
len
))
{
*
ret
=
-
1
;
return
MSVCRT_EINVAL
;
}
*
ret
=
MSVCRT_mbsrtowcs
(
wcstr
,
mbstr
,
count
>
len
?
len
:
count
,
state
);
if
(
*
ret
==
-
1
)
{
if
(
wcstr
)
*
wcstr
=
0
;
return
*
MSVCRT__errno
();
}
(
*
ret
)
++
;
if
(
*
ret
>
len
)
{
/* no place for terminating '\0' */
if
(
wcstr
)
*
wcstr
=
0
;
return
0
;
}
if
(
wcstr
)
wcstr
[(
*
ret
)
-
1
]
=
0
;
return
0
;
}
/*********************************************************************
* _mbctohira (MSVCRT.@)
* _mbctohira (MSVCRT.@)
*
*
* Converts a sjis katakana character to hiragana.
* Converts a sjis katakana character to hiragana.
...
...
dlls/msvcrt/msvcrt.spec
View file @
540d9691
...
@@ -1365,7 +1365,7 @@
...
@@ -1365,7 +1365,7 @@
@ cdecl mbrtowc(ptr str long ptr) MSVCRT_mbrtowc
@ cdecl mbrtowc(ptr str long ptr) MSVCRT_mbrtowc
# stub mbsdup_dbg(wstr long ptr long)
# stub mbsdup_dbg(wstr long ptr long)
@ cdecl mbsrtowcs(ptr ptr long ptr) MSVCRT_mbsrtowcs
@ cdecl mbsrtowcs(ptr ptr long ptr) MSVCRT_mbsrtowcs
# stub mbsrtowcs_s(ptr ptr long ptr long ptr)
@ cdecl mbsrtowcs_s(ptr ptr long ptr long ptr) MSVCRT_mbsrtowcs_s
@ cdecl mbstowcs(ptr str long) MSVCRT_mbstowcs
@ cdecl mbstowcs(ptr str long) MSVCRT_mbstowcs
@ cdecl mbstowcs_s(ptr ptr long str long) MSVCRT__mbstowcs_s
@ cdecl mbstowcs_s(ptr ptr long str long) MSVCRT__mbstowcs_s
@ cdecl mbtowc(ptr str long) MSVCRT_mbtowc
@ cdecl mbtowc(ptr str long) MSVCRT_mbtowc
...
...
dlls/ucrtbase/ucrtbase.spec
View file @
540d9691
...
@@ -2415,7 +2415,7 @@
...
@@ -2415,7 +2415,7 @@
@ stub mbrtoc32
@ stub mbrtoc32
@ cdecl mbrtowc(ptr str long ptr) MSVCRT_mbrtowc
@ cdecl mbrtowc(ptr str long ptr) MSVCRT_mbrtowc
@ cdecl mbsrtowcs(ptr ptr long ptr) MSVCRT_mbsrtowcs
@ cdecl mbsrtowcs(ptr ptr long ptr) MSVCRT_mbsrtowcs
@
stub
mbsrtowcs_s
@
cdecl mbsrtowcs_s(ptr ptr long ptr long ptr) MSVCRT_
mbsrtowcs_s
@ cdecl mbstowcs(ptr str long) MSVCRT_mbstowcs
@ cdecl mbstowcs(ptr str long) MSVCRT_mbstowcs
@ cdecl mbstowcs_s(ptr ptr long str long) MSVCRT__mbstowcs_s
@ cdecl mbstowcs_s(ptr ptr long str long) MSVCRT__mbstowcs_s
@ cdecl mbtowc(ptr str long) MSVCRT_mbtowc
@ cdecl mbtowc(ptr str long) MSVCRT_mbtowc
...
...
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