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
70db739c
Commit
70db739c
authored
Oct 27, 2022
by
Bartosz Kosiorek
Committed by
Alexandre Julliard
Oct 31, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add _mbcjistojms_l implementation.
parent
35ae78c5
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
26 additions
and
11 deletions
+26
-11
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
+18
-3
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 @
70db739c
...
...
@@ -1078,7 +1078,7 @@
@ cdecl _mbccpy_s(ptr long ptr ptr)
@ cdecl _mbccpy_s_l(ptr long ptr ptr ptr)
@ cdecl _mbcjistojms(long)
@
stub _mbcjistojms_l
@
cdecl _mbcjistojms_l(long ptr)
@ cdecl _mbcjmstojis(long)
@ stub _mbcjmstojis_l
@ cdecl _mbclen(ptr)
...
...
dlls/msvcr110/msvcr110.spec
View file @
70db739c
...
...
@@ -1435,7 +1435,7 @@
@ cdecl _mbccpy_s(ptr long ptr ptr)
@ cdecl _mbccpy_s_l(ptr long ptr ptr ptr)
@ cdecl _mbcjistojms(long)
@
stub _mbcjistojms_l
@
cdecl _mbcjistojms_l(long ptr)
@ cdecl _mbcjmstojis(long)
@ stub _mbcjmstojis_l
@ cdecl _mbclen(ptr)
...
...
dlls/msvcr120/msvcr120.spec
View file @
70db739c
...
...
@@ -1446,7 +1446,7 @@
@ cdecl _mbccpy_s(ptr long ptr ptr)
@ cdecl _mbccpy_s_l(ptr long ptr ptr ptr)
@ cdecl _mbcjistojms(long)
@
stub _mbcjistojms_l
@
cdecl _mbcjistojms_l(long ptr)
@ cdecl _mbcjmstojis(long)
@ stub _mbcjmstojis_l
@ cdecl _mbclen(ptr)
...
...
dlls/msvcr80/msvcr80.spec
View file @
70db739c
...
...
@@ -750,7 +750,7 @@
@ cdecl _mbccpy_s(ptr long ptr ptr)
@ cdecl _mbccpy_s_l(ptr long ptr ptr ptr)
@ cdecl _mbcjistojms(long)
@
stub _mbcjistojms_l
@
cdecl _mbcjistojms_l(long ptr)
@ cdecl _mbcjmstojis(long)
@ stub _mbcjmstojis_l
@ cdecl _mbclen(ptr)
...
...
dlls/msvcr90/msvcr90.spec
View file @
70db739c
...
...
@@ -728,7 +728,7 @@
@ cdecl _mbccpy_s(ptr long ptr ptr)
@ cdecl _mbccpy_s_l(ptr long ptr ptr ptr)
@ cdecl _mbcjistojms(long)
@
stub _mbcjistojms_l
@
cdecl _mbcjistojms_l(long ptr)
@ cdecl _mbcjmstojis(long)
@ stub _mbcjmstojis_l
@ cdecl _mbclen(ptr)
...
...
dlls/msvcrt/mbcs.c
View file @
70db739c
...
...
@@ -556,17 +556,24 @@ unsigned int CDECL _mbctombb(unsigned int c)
}
/*********************************************************************
* _mbcjistojms(MSVCRT.@)
* _mbcjistojms
_l
(MSVCRT.@)
*
* Converts a jis character to sjis.
* Based on description from
* http://www.slayers.ne.jp/~oouchi/code/jistosjis.html
*/
unsigned
int
CDECL
_mbcjistojms
(
unsigned
int
c
)
unsigned
int
CDECL
_mbcjistojms
_l
(
unsigned
int
c
,
_locale_t
locale
)
{
pthreadmbcinfo
mbcinfo
;
if
(
locale
)
mbcinfo
=
locale
->
mbcinfo
;
else
mbcinfo
=
get_mbcinfo
();
/* Conversion takes place only when codepage is 932.
In all other cases, c is returned unchanged */
if
(
get_mbcinfo
()
->
mbcodepage
==
932
)
if
(
mbcinfo
->
mbcodepage
==
932
)
{
if
(
HIBYTE
(
c
)
>=
0x21
&&
HIBYTE
(
c
)
<=
0x7e
&&
LOBYTE
(
c
)
>=
0x21
&&
LOBYTE
(
c
)
<=
0x7e
)
...
...
@@ -592,6 +599,14 @@ unsigned int CDECL _mbcjistojms(unsigned int c)
}
/*********************************************************************
* _mbcjistojms(MSVCRT.@)
*/
unsigned
int
CDECL
_mbcjistojms
(
unsigned
int
c
)
{
return
_mbcjistojms_l
(
c
,
NULL
);
}
/*********************************************************************
* _mbcjmstojis(MSVCRT.@)
*
* Converts a sjis character to jis.
...
...
dlls/msvcrt/msvcrt.spec
View file @
70db739c
...
...
@@ -695,7 +695,7 @@
@ cdecl _mbccpy_s(ptr long ptr ptr)
@ cdecl _mbccpy_s_l(ptr long ptr ptr ptr)
@ cdecl _mbcjistojms (long)
# stub
_mbcjistojms_l(long ptr)
@ cdecl
_mbcjistojms_l(long ptr)
@ cdecl _mbcjmstojis(long)
# stub _mbcjmstojis_l(long ptr)
@ cdecl _mbclen(ptr)
...
...
dlls/ucrtbase/ucrtbase.spec
View file @
70db739c
...
...
@@ -593,7 +593,7 @@
@ cdecl _mbccpy_s(ptr long ptr ptr)
@ cdecl _mbccpy_s_l(ptr long ptr ptr ptr)
@ cdecl _mbcjistojms(long)
@
stub _mbcjistojms_l
@
cdecl _mbcjistojms_l(long ptr)
@ cdecl _mbcjmstojis(long)
@ stub _mbcjmstojis_l
@ cdecl _mbclen(ptr)
...
...
@@ -1163,7 +1163,7 @@
@ cdecl _o__mbccpy_s(ptr long ptr ptr) _mbccpy_s
@ cdecl _o__mbccpy_s_l(ptr long ptr ptr ptr) _mbccpy_s_l
@ cdecl _o__mbcjistojms(long) _mbcjistojms
@
stub _o_
_mbcjistojms_l
@
cdecl _o__mbcjistojms_l(long ptr)
_mbcjistojms_l
@ cdecl _o__mbcjmstojis(long) _mbcjmstojis
@ stub _o__mbcjmstojis_l
@ cdecl _o__mbclen(ptr) _mbclen
...
...
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