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
3b994417
Commit
3b994417
authored
Apr 22, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Added _fwscanf_s(_l) implementation.
parent
2c07fad6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
6 deletions
+40
-6
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+2
-2
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+2
-2
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+2
-2
scanf.c
dlls/msvcrt/scanf.c
+34
-0
No files found.
dlls/msvcr80/msvcr80.spec
View file @
3b994417
...
...
@@ -459,7 +459,7 @@
@ stub _fwprintf_s_l
@ stub _fwrite_nolock
@ varargs _fwscanf_l(ptr wstr ptr) msvcrt._fwscanf_l
@
stub
_fwscanf_s_l
@
varargs _fwscanf_s_l(ptr wstr ptr) msvcrt.
_fwscanf_s_l
@ cdecl _gcvt(double long str) msvcrt._gcvt
@ stub _gcvt_s
@ stub _get_amblksiz
...
...
@@ -1281,7 +1281,7 @@
@ stub fwprintf_s
@ cdecl fwrite(ptr long long ptr) msvcrt.fwrite
@ varargs fwscanf(ptr wstr) msvcrt.fwscanf
@
stub
fwscanf_s
@
varargs fwscanf_s(ptr wstr) msvcrt.
fwscanf_s
@ cdecl getc(ptr) msvcrt.getc
@ cdecl getchar() msvcrt.getchar
@ cdecl getenv(str) msvcrt.getenv
...
...
dlls/msvcr90/msvcr90.spec
View file @
3b994417
...
...
@@ -451,7 +451,7 @@
@ stub _fwprintf_s_l
@ stub _fwrite_nolock
@ varargs _fwscanf_l(ptr wstr ptr) msvcrt._fwscanf_l
@
stub
_fwscanf_s_l
@
varargs _fwscanf_s_l(ptr wstr ptr) msvcrt.
_fwscanf_s_l
@ cdecl _gcvt(double long str) msvcrt._gcvt
@ stub _gcvt_s
@ stub _get_amblksiz
...
...
@@ -1265,7 +1265,7 @@
@ stub fwprintf_s
@ cdecl fwrite(ptr long long ptr) msvcrt.fwrite
@ varargs fwscanf(ptr wstr) msvcrt.fwscanf
@
stub
fwscanf_s
@
varargs fwscanf_s(ptr wstr) msvcrt.
fwscanf_s
@ cdecl getc(ptr) msvcrt.getc
@ cdecl getchar() msvcrt.getchar
@ cdecl getenv(str) msvcrt.getenv
...
...
dlls/msvcrt/msvcrt.spec
View file @
3b994417
...
...
@@ -421,7 +421,7 @@
# stub _fwprintf_p_l
# stub _fwprintf_s_l
@ varargs _fwscanf_l(ptr wstr ptr) MSVCRT__fwscanf_l
# stub
_fwscanf_s_l
@ varargs _fwscanf_s_l(ptr wstr ptr) MSVCRT_
_fwscanf_s_l
@ cdecl _gcvt(double long str)
# stub _gcvt_s
# stub _get_doserrno
...
...
@@ -1212,7 +1212,7 @@
# stub fwprintf_s
@ cdecl fwrite(ptr long long ptr) MSVCRT_fwrite
@ varargs fwscanf(ptr wstr) MSVCRT_fwscanf
# stub
fwscanf_s
@ varargs fwscanf_s(ptr wstr) MSVCRT_
fwscanf_s
@ cdecl getc(ptr) MSVCRT_getc
@ cdecl getchar() MSVCRT_getchar
@ cdecl getenv(str) MSVCRT_getenv
...
...
dlls/msvcrt/scanf.c
View file @
3b994417
...
...
@@ -65,6 +65,7 @@ static int wchar2digit(MSVCRT_wchar_t c, int base) {
#undef SECURE
#include "scanf.h"
/* vfscanf_l */
#define SECURE 1
#include "scanf.h"
...
...
@@ -75,6 +76,10 @@ static int wchar2digit(MSVCRT_wchar_t c, int base) {
#undef SECURE
#include "scanf.h"
/* vfwscanf_s_l */
#define SECURE 1
#include "scanf.h"
/* vsscanf_l */
#undef WIDE_SCANF
#undef CONSOLE
...
...
@@ -241,6 +246,35 @@ int CDECL MSVCRT__fwscanf_l(MSVCRT_FILE *file, const MSVCRT_wchar_t *format,
}
/*********************************************************************
* fwscanf_s (MSVCRT.@)
*/
int
CDECL
MSVCRT_fwscanf_s
(
MSVCRT_FILE
*
file
,
const
MSVCRT_wchar_t
*
format
,
...)
{
__ms_va_list
valist
;
int
res
;
__ms_va_start
(
valist
,
format
);
res
=
MSVCRT_vfwscanf_s_l
(
file
,
format
,
NULL
,
valist
);
__ms_va_end
(
valist
);
return
res
;
}
/*********************************************************************
* _fwscanf_s_l (MSVCRT.@)
*/
int
CDECL
MSVCRT__fwscanf_s_l
(
MSVCRT_FILE
*
file
,
const
MSVCRT_wchar_t
*
format
,
MSVCRT__locale_t
locale
,
...)
{
__ms_va_list
valist
;
int
res
;
__ms_va_start
(
valist
,
locale
);
res
=
MSVCRT_vfwscanf_s_l
(
file
,
format
,
locale
,
valist
);
__ms_va_end
(
valist
);
return
res
;
}
/*********************************************************************
* wscanf (MSVCRT.@)
*/
int
CDECL
MSVCRT_wscanf
(
const
MSVCRT_wchar_t
*
format
,
...)
...
...
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