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
815840e9
Commit
815840e9
authored
Apr 26, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Added btowc implementation.
parent
40aa4dc4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
3 deletions
+19
-3
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+1
-1
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+1
-1
locale.c
dlls/msvcrt/locale.c
+16
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
No files found.
dlls/msvcr80/msvcr80.spec
View file @
815840e9
...
...
@@ -1235,7 +1235,7 @@
@ cdecl atol(str) msvcrt.atol
@ cdecl bsearch(ptr ptr long long ptr) msvcrt.bsearch
@ stub bsearch_s
@
stub
btowc
@
cdecl btowc(long) msvcrt.
btowc
@ cdecl calloc(long long) msvcrt.calloc
@ cdecl ceil(double) msvcrt.ceil
@ cdecl clearerr(ptr) msvcrt.clearerr
...
...
dlls/msvcr90/msvcr90.spec
View file @
815840e9
...
...
@@ -1219,7 +1219,7 @@
@ cdecl atol(str) msvcrt.atol
@ cdecl bsearch(ptr ptr long long ptr) msvcrt.bsearch
@ stub bsearch_s
@
stub
btowc
@
cdecl btowc(long) msvcrt.
btowc
@ cdecl calloc(long long) msvcrt.calloc
@ cdecl ceil(double) msvcrt.ceil
@ cdecl clearerr(ptr) msvcrt.clearerr
...
...
dlls/msvcrt/locale.c
View file @
815840e9
...
...
@@ -485,6 +485,22 @@ int CDECL __crtGetLocaleInfoW( LCID lcid, LCTYPE type, MSVCRT_wchar_t *buffer, i
}
/*********************************************************************
* btowc(MSVCRT.@)
*/
MSVCRT_wint_t
CDECL
MSVCRT_btowc
(
int
c
)
{
MSVCRT__locale_t
locale
=
get_locale
();
unsigned
char
letter
=
c
;
MSVCRT_wchar_t
ret
;
if
(
!
MultiByteToWideChar
(
locale
->
locinfo
->
lc_handle
[
MSVCRT_LC_CTYPE
],
0
,
(
LPCSTR
)
&
letter
,
1
,
&
ret
,
1
))
return
0
;
return
ret
;
}
/*********************************************************************
* __crtGetStringTypeW(MSVCRT.@)
*
* This function was accepting different number of arguments in older
...
...
dlls/msvcrt/msvcrt.spec
View file @
815840e9
...
...
@@ -1165,7 +1165,7 @@
@ cdecl atol(str) ntdll.atol
@ cdecl bsearch(ptr ptr long long ptr) ntdll.bsearch
# stub bsearch_s
# stub
btowc
@ cdecl btowc(long) MSVCRT_
btowc
@ cdecl calloc(long long) MSVCRT_calloc
@ cdecl ceil(double) MSVCRT_ceil
@ cdecl clearerr(ptr) MSVCRT_clearerr
...
...
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