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
eb7d5576
Commit
eb7d5576
authored
Oct 06, 2017
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add _mbccpy_s_l implementation.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
afdf7491
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
89 additions
and
39 deletions
+89
-39
api-ms-win-crt-multibyte-l1-1-0.spec
...crt-multibyte-l1-1-0/api-ms-win-crt-multibyte-l1-1-0.spec
+4
-4
crtdll.spec
dlls/crtdll/crtdll.spec
+1
-1
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+4
-4
msvcr110.spec
dlls/msvcr110/msvcr110.spec
+4
-4
msvcr120.spec
dlls/msvcr120/msvcr120.spec
+4
-4
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+4
-4
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+4
-4
mbcs.c
dlls/msvcrt/mbcs.c
+53
-3
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+4
-4
msvcrt20.spec
dlls/msvcrt20/msvcrt20.spec
+1
-1
msvcrt40.spec
dlls/msvcrt40/msvcrt40.spec
+1
-1
msvcrtd.spec
dlls/msvcrtd/msvcrtd.spec
+1
-1
ucrtbase.spec
dlls/ucrtbase/ucrtbase.spec
+4
-4
No files found.
dlls/api-ms-win-crt-multibyte-l1-1-0/api-ms-win-crt-multibyte-l1-1-0.spec
View file @
eb7d5576
...
@@ -67,10 +67,10 @@
...
@@ -67,10 +67,10 @@
@ cdecl _mbbtype(long long) ucrtbase._mbbtype
@ cdecl _mbbtype(long long) ucrtbase._mbbtype
@ stub _mbbtype_l
@ stub _mbbtype_l
@ stub _mbcasemap
@ stub _mbcasemap
@ cdecl _mbccpy(ptr
s
tr) ucrtbase._mbccpy
@ cdecl _mbccpy(ptr
p
tr) ucrtbase._mbccpy
@
stub
_mbccpy_l
@
cdecl _mbccpy_l(ptr ptr ptr) ucrtbase.
_mbccpy_l
@
stub
_mbccpy_s
@
cdecl _mbccpy_s(ptr long ptr ptr) ucrtbase.
_mbccpy_s
@
stub
_mbccpy_s_l
@
cdecl _mbccpy_s_l(ptr long ptr ptr ptr) ucrtbase.
_mbccpy_s_l
@ cdecl _mbcjistojms(long) ucrtbase._mbcjistojms
@ cdecl _mbcjistojms(long) ucrtbase._mbcjistojms
@ stub _mbcjistojms_l
@ stub _mbcjistojms_l
@ cdecl _mbcjmstojis(long) ucrtbase._mbcjmstojis
@ cdecl _mbcjmstojis(long) ucrtbase._mbcjmstojis
...
...
dlls/crtdll/crtdll.spec
View file @
eb7d5576
...
@@ -188,7 +188,7 @@
...
@@ -188,7 +188,7 @@
@ cdecl _matherr(ptr) msvcrt._matherr
@ cdecl _matherr(ptr) msvcrt._matherr
@ cdecl _mbbtombc(long) msvcrt._mbbtombc
@ cdecl _mbbtombc(long) msvcrt._mbbtombc
@ cdecl _mbbtype(long long) msvcrt._mbbtype
@ cdecl _mbbtype(long long) msvcrt._mbbtype
@ cdecl _mbccpy(ptr
s
tr) msvcrt._mbccpy
@ cdecl _mbccpy(ptr
p
tr) msvcrt._mbccpy
@ cdecl _mbcjistojms(long) msvcrt._mbcjistojms
@ cdecl _mbcjistojms(long) msvcrt._mbcjistojms
@ cdecl _mbcjmstojis(long) msvcrt._mbcjmstojis
@ cdecl _mbcjmstojis(long) msvcrt._mbcjmstojis
@ cdecl _mbclen(ptr) msvcrt._mbclen
@ cdecl _mbclen(ptr) msvcrt._mbclen
...
...
dlls/msvcr100/msvcr100.spec
View file @
eb7d5576
...
@@ -1073,10 +1073,10 @@
...
@@ -1073,10 +1073,10 @@
@ cdecl _mbbtype(long long)
@ cdecl _mbbtype(long long)
@ stub _mbbtype_l
@ stub _mbbtype_l
# extern _mbcasemap
# extern _mbcasemap
@ cdecl _mbccpy(ptr
s
tr)
@ cdecl _mbccpy(ptr
p
tr)
@
stub _mbccpy_l
@
cdecl _mbccpy_l(ptr ptr ptr)
@
stub _mbccpy_s
@
cdecl _mbccpy_s(ptr long ptr ptr)
@
stub _mbccpy_s_l
@
cdecl _mbccpy_s_l(ptr long ptr ptr ptr)
@ cdecl _mbcjistojms(long)
@ cdecl _mbcjistojms(long)
@ stub _mbcjistojms_l
@ stub _mbcjistojms_l
@ cdecl _mbcjmstojis(long)
@ cdecl _mbcjmstojis(long)
...
...
dlls/msvcr110/msvcr110.spec
View file @
eb7d5576
...
@@ -1430,10 +1430,10 @@
...
@@ -1430,10 +1430,10 @@
@ cdecl _mbbtype(long long)
@ cdecl _mbbtype(long long)
@ stub _mbbtype_l
@ stub _mbbtype_l
# extern _mbcasemap
# extern _mbcasemap
@ cdecl _mbccpy(ptr
s
tr)
@ cdecl _mbccpy(ptr
p
tr)
@
stub _mbccpy_l
@
cdecl _mbccpy_l(ptr ptr ptr)
@
stub _mbccpy_s
@
cdecl _mbccpy_s(ptr long ptr ptr)
@
stub _mbccpy_s_l
@
cdecl _mbccpy_s_l(ptr long ptr ptr ptr)
@ cdecl _mbcjistojms(long)
@ cdecl _mbcjistojms(long)
@ stub _mbcjistojms_l
@ stub _mbcjistojms_l
@ cdecl _mbcjmstojis(long)
@ cdecl _mbcjmstojis(long)
...
...
dlls/msvcr120/msvcr120.spec
View file @
eb7d5576
...
@@ -1440,10 +1440,10 @@
...
@@ -1440,10 +1440,10 @@
@ cdecl _mbbtype(long long)
@ cdecl _mbbtype(long long)
@ stub _mbbtype_l
@ stub _mbbtype_l
# extern _mbcasemap
# extern _mbcasemap
@ cdecl _mbccpy(ptr
s
tr)
@ cdecl _mbccpy(ptr
p
tr)
@
stub _mbccpy_l
@
cdecl _mbccpy_l(ptr ptr ptr)
@
stub _mbccpy_s
@
cdecl _mbccpy_s(ptr long ptr ptr)
@
stub _mbccpy_s_l
@
cdecl _mbccpy_s_l(ptr long ptr ptr ptr)
@ cdecl _mbcjistojms(long)
@ cdecl _mbcjistojms(long)
@ stub _mbcjistojms_l
@ stub _mbcjistojms_l
@ cdecl _mbcjmstojis(long)
@ cdecl _mbcjmstojis(long)
...
...
dlls/msvcr80/msvcr80.spec
View file @
eb7d5576
...
@@ -745,10 +745,10 @@
...
@@ -745,10 +745,10 @@
@ cdecl _mbbtype(long long)
@ cdecl _mbbtype(long long)
@ stub _mbbtype_l
@ stub _mbbtype_l
# extern _mbcasemap
# extern _mbcasemap
@ cdecl _mbccpy(ptr
s
tr)
@ cdecl _mbccpy(ptr
p
tr)
@
stub _mbccpy_l
@
cdecl _mbccpy_l(ptr ptr ptr)
@
stub _mbccpy_s
@
cdecl _mbccpy_s(ptr long ptr ptr)
@
stub _mbccpy_s_l
@
cdecl _mbccpy_s_l(ptr long ptr ptr ptr)
@ cdecl _mbcjistojms(long)
@ cdecl _mbcjistojms(long)
@ stub _mbcjistojms_l
@ stub _mbcjistojms_l
@ cdecl _mbcjmstojis(long)
@ cdecl _mbcjmstojis(long)
...
...
dlls/msvcr90/msvcr90.spec
View file @
eb7d5576
...
@@ -723,10 +723,10 @@
...
@@ -723,10 +723,10 @@
@ cdecl _mbbtype(long long)
@ cdecl _mbbtype(long long)
@ stub _mbbtype_l
@ stub _mbbtype_l
# extern _mbcasemap
# extern _mbcasemap
@ cdecl _mbccpy(ptr
s
tr)
@ cdecl _mbccpy(ptr
p
tr)
@
stub _mbccpy_l
@
cdecl _mbccpy_l(ptr ptr ptr)
@
stub _mbccpy_s
@
cdecl _mbccpy_s(ptr long ptr ptr)
@
stub _mbccpy_s_l
@
cdecl _mbccpy_s_l(ptr long ptr ptr ptr)
@ cdecl _mbcjistojms(long)
@ cdecl _mbcjistojms(long)
@ stub _mbcjistojms_l
@ stub _mbcjistojms_l
@ cdecl _mbcjmstojis(long)
@ cdecl _mbcjmstojis(long)
...
...
dlls/msvcrt/mbcs.c
View file @
eb7d5576
...
@@ -624,13 +624,63 @@ MSVCRT_size_t CDECL _mbsnlen(const unsigned char* str, MSVCRT_size_t maxsize)
...
@@ -624,13 +624,63 @@ MSVCRT_size_t CDECL _mbsnlen(const unsigned char* str, MSVCRT_size_t maxsize)
}
}
/*********************************************************************
/*********************************************************************
* _mbccpy_s_l(MSVCRT.@)
*/
int
CDECL
_mbccpy_s_l
(
unsigned
char
*
dest
,
MSVCRT_size_t
maxsize
,
int
*
copied
,
const
unsigned
char
*
src
,
MSVCRT__locale_t
locale
)
{
if
(
copied
)
*
copied
=
0
;
if
(
!
MSVCRT_CHECK_PMT
(
dest
!=
NULL
&&
maxsize
>=
1
))
return
MSVCRT_EINVAL
;
dest
[
0
]
=
0
;
if
(
!
MSVCRT_CHECK_PMT
(
src
!=
NULL
))
return
MSVCRT_EINVAL
;
if
(
_ismbblead_l
(
*
src
,
locale
))
{
if
(
!
src
[
1
])
{
if
(
copied
)
*
copied
=
1
;
*
MSVCRT__errno
()
=
MSVCRT_EILSEQ
;
return
MSVCRT_EILSEQ
;
}
if
(
maxsize
<
2
)
{
MSVCRT_INVALID_PMT
(
"dst buffer is too small"
,
MSVCRT_ERANGE
);
return
MSVCRT_ERANGE
;
}
*
dest
++
=
*
src
++
;
*
dest
=
*
src
;
if
(
copied
)
*
copied
=
2
;
}
else
{
*
dest
=
*
src
;
if
(
copied
)
*
copied
=
1
;
}
return
0
;
}
/*********************************************************************
* _mbccpy(MSVCRT.@)
* _mbccpy(MSVCRT.@)
*/
*/
void
CDECL
_mbccpy
(
unsigned
char
*
dest
,
const
unsigned
char
*
src
)
void
CDECL
_mbccpy
(
unsigned
char
*
dest
,
const
unsigned
char
*
src
)
{
{
*
dest
=
*
src
;
_mbccpy_s_l
(
dest
,
2
,
NULL
,
src
,
NULL
);
if
(
_ismbblead
(
*
src
))
}
*++
dest
=
*++
src
;
/* MB char */
/*********************************************************************
* _mbccpy_l(MSVCRT.@)
*/
void
CDECL
_mbccpy_l
(
unsigned
char
*
dest
,
const
unsigned
char
*
src
,
MSVCRT__locale_t
locale
)
{
_mbccpy_s_l
(
dest
,
2
,
NULL
,
src
,
locale
);
}
/*********************************************************************
* _mbccpy_s(MSVCRT.@)
*/
int
CDECL
_mbccpy_s
(
unsigned
char
*
dest
,
MSVCRT_size_t
maxsize
,
int
*
copied
,
const
unsigned
char
*
src
)
{
return
_mbccpy_s_l
(
dest
,
maxsize
,
copied
,
src
,
NULL
);
}
}
/*********************************************************************
/*********************************************************************
...
...
dlls/msvcrt/msvcrt.spec
View file @
eb7d5576
...
@@ -688,10 +688,10 @@
...
@@ -688,10 +688,10 @@
# stub _mbbtombc_l(long ptr)
# stub _mbbtombc_l(long ptr)
@ cdecl _mbbtype(long long)
@ cdecl _mbbtype(long long)
# extern _mbcasemap
# extern _mbcasemap
@ cdecl _mbccpy(ptr
s
tr)
@ cdecl _mbccpy(ptr
p
tr)
# stub _mbccpy_l(ptr s
tr ptr)
@ cdecl _mbccpy_l(ptr p
tr ptr)
# stub _mbccpy_s(ptr long ptr s
tr)
@ cdecl _mbccpy_s(ptr long ptr p
tr)
# stub _mbccpy_s_l(ptr long ptr s
tr ptr)
@ cdecl _mbccpy_s_l(ptr long ptr p
tr ptr)
@ cdecl _mbcjistojms (long)
@ cdecl _mbcjistojms (long)
# stub _mbcjistojms_l(long ptr)
# stub _mbcjistojms_l(long ptr)
@ cdecl _mbcjmstojis(long)
@ cdecl _mbcjmstojis(long)
...
...
dlls/msvcrt20/msvcrt20.spec
View file @
eb7d5576
...
@@ -1015,7 +1015,7 @@
...
@@ -1015,7 +1015,7 @@
@ cdecl _matherr(ptr) msvcrt._matherr
@ cdecl _matherr(ptr) msvcrt._matherr
@ cdecl _mbbtombc(long) msvcrt._mbbtombc
@ cdecl _mbbtombc(long) msvcrt._mbbtombc
@ cdecl _mbbtype(long long) msvcrt._mbbtype
@ cdecl _mbbtype(long long) msvcrt._mbbtype
@ cdecl _mbccpy(ptr
s
tr) msvcrt._mbccpy
@ cdecl _mbccpy(ptr
p
tr) msvcrt._mbccpy
@ cdecl _mbcjistojms(long) msvcrt._mbcjistojms
@ cdecl _mbcjistojms(long) msvcrt._mbcjistojms
@ cdecl _mbcjmstojis(long) msvcrt._mbcjmstojis
@ cdecl _mbcjmstojis(long) msvcrt._mbcjmstojis
@ cdecl _mbclen(ptr) msvcrt._mbclen
@ cdecl _mbclen(ptr) msvcrt._mbclen
...
...
dlls/msvcrt40/msvcrt40.spec
View file @
eb7d5576
...
@@ -1106,7 +1106,7 @@
...
@@ -1106,7 +1106,7 @@
@ cdecl _makepath(ptr str str str str) msvcrt._makepath
@ cdecl _makepath(ptr str str str str) msvcrt._makepath
@ cdecl _mbbtombc(long) msvcrt._mbbtombc
@ cdecl _mbbtombc(long) msvcrt._mbbtombc
@ cdecl _mbbtype(long long) msvcrt._mbbtype
@ cdecl _mbbtype(long long) msvcrt._mbbtype
@ cdecl _mbccpy(ptr
s
tr) msvcrt._mbccpy
@ cdecl _mbccpy(ptr
p
tr) msvcrt._mbccpy
@ cdecl _mbcjistojms(long) msvcrt._mbcjistojms
@ cdecl _mbcjistojms(long) msvcrt._mbcjistojms
@ cdecl _mbcjmstojis(long) msvcrt._mbcjmstojis
@ cdecl _mbcjmstojis(long) msvcrt._mbcjmstojis
@ cdecl _mbclen(ptr) msvcrt._mbclen
@ cdecl _mbclen(ptr) msvcrt._mbclen
...
...
dlls/msvcrtd/msvcrtd.spec
View file @
eb7d5576
...
@@ -396,7 +396,7 @@
...
@@ -396,7 +396,7 @@
@ cdecl _mbbtombc(long) msvcrt._mbbtombc
@ cdecl _mbbtombc(long) msvcrt._mbbtombc
@ cdecl _mbbtype(long long) msvcrt._mbbtype
@ cdecl _mbbtype(long long) msvcrt._mbbtype
# extern _mbcasemap
# extern _mbcasemap
@ cdecl _mbccpy(ptr
s
tr) msvcrt._mbccpy
@ cdecl _mbccpy(ptr
p
tr) msvcrt._mbccpy
@ cdecl _mbcjistojms(long) msvcrt._mbcjistojms
@ cdecl _mbcjistojms(long) msvcrt._mbcjistojms
@ cdecl _mbcjmstojis(long) msvcrt._mbcjmstojis
@ cdecl _mbcjmstojis(long) msvcrt._mbcjmstojis
@ cdecl _mbclen(ptr) msvcrt._mbclen
@ cdecl _mbclen(ptr) msvcrt._mbclen
...
...
dlls/ucrtbase/ucrtbase.spec
View file @
eb7d5576
...
@@ -586,10 +586,10 @@
...
@@ -586,10 +586,10 @@
@ cdecl _mbbtype(long long)
@ cdecl _mbbtype(long long)
@ stub _mbbtype_l
@ stub _mbbtype_l
@ stub _mbcasemap
@ stub _mbcasemap
@ cdecl _mbccpy(ptr
s
tr)
@ cdecl _mbccpy(ptr
p
tr)
@
stub _mbccpy_l
@
cdecl _mbccpy_l(ptr ptr ptr)
@
stub _mbccpy_s
@
cdecl _mbccpy_s(ptr long ptr ptr)
@
stub _mbccpy_s_l
@
cdecl _mbccpy_s_l(ptr long ptr ptr ptr)
@ cdecl _mbcjistojms(long)
@ cdecl _mbcjistojms(long)
@ stub _mbcjistojms_l
@ stub _mbcjistojms_l
@ cdecl _mbcjmstojis(long)
@ cdecl _mbcjmstojis(long)
...
...
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