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
b38fcabf
Commit
b38fcabf
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 fscanf_s(_l) implementation.
parent
17f486ba
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
12 deletions
+39
-12
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+2
-2
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+2
-2
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+3
-8
scanf.c
dlls/msvcrt/scanf.c
+32
-0
No files found.
dlls/msvcr80/msvcr80.spec
View file @
b38fcabf
...
...
@@ -433,7 +433,7 @@
@ stub _freea_s
@ stub _freefls
@ varargs _fscanf_l(ptr str ptr) msvcrt._fscanf_l
@
stub
_fscanf_s_l
@
varargs _fscanf_s_l(ptr str ptr) msvcrt.
_fscanf_s_l
@ stub _fseek_nolock
@ stub _fseeki64
@ stub _fseeki64_nolock
...
...
@@ -1273,7 +1273,7 @@
@ stub freopen_s
@ cdecl frexp(double ptr) msvcrt.frexp
@ varargs fscanf(ptr str) msvcrt.fscanf
@
stub
fscanf_s
@
varargs fscanf_s(ptr str) msvcrt.
fscanf_s
@ cdecl fseek(ptr long long) msvcrt.fseek
@ cdecl fsetpos(ptr ptr) msvcrt.fsetpos
@ cdecl ftell(ptr) msvcrt.ftell
...
...
dlls/msvcr90/msvcr90.spec
View file @
b38fcabf
...
...
@@ -425,7 +425,7 @@
@ stub _freea_s
@ stub _freefls
@ varargs _fscanf_l(ptr str ptr) msvcrt._fscanf_l
@
stub
_fscanf_s_l
@
varargs _fscanf_s_l(ptr str ptr) msvcrt.
_fscanf_s_l
@ stub _fseek_nolock
@ stub _fseeki64
@ stub _fseeki64_nolock
...
...
@@ -1257,7 +1257,7 @@
@ stub freopen_s
@ cdecl frexp(double ptr) msvcrt.frexp
@ varargs fscanf(ptr str) msvcrt.fscanf
@
stub
fscanf_s
@
varargs fscanf_s(ptr str) msvcrt.
fscanf_s
@ cdecl fseek(ptr long long) msvcrt.fseek
@ cdecl fsetpos(ptr ptr) msvcrt.fsetpos
@ cdecl ftell(ptr) msvcrt.ftell
...
...
dlls/msvcrt/msvcrt.spec
View file @
b38fcabf
...
...
@@ -395,7 +395,8 @@
# stub _freea
# stub _freea_s
# stub _fscanf_l
# stub _fscanf_s_l
@ varargs _fscanf_l(ptr str ptr) MSVCRT__fscanf_l
@ varargs _fscanf_s_l(ptr str ptr) MSVCRT__fscanf_s_l
# stub _fseeki64
@ cdecl _fsopen(str str long) MSVCRT__fsopen
@ cdecl _fstat(long ptr) MSVCRT__fstat
...
...
@@ -1203,7 +1204,7 @@
# stub freopen_s
@ cdecl frexp(double ptr) MSVCRT_frexp
@ varargs fscanf(ptr str) MSVCRT_fscanf
# stub
fscanf_s
@ varargs fscanf_s(ptr str) MSVCRT_
fscanf_s
@ cdecl fseek(ptr long long) MSVCRT_fseek
@ cdecl fsetpos(ptr ptr) MSVCRT_fsetpos
@ cdecl ftell(ptr) MSVCRT_ftell
...
...
@@ -1282,12 +1283,6 @@
@ cdecl puts(str) MSVCRT_puts
@ cdecl putwc(long ptr) MSVCRT_fputwc
@ cdecl putwchar(long) _fputwchar
# stub _free_dbg
# stub _freea
# stub _freea_s
@ varargs _fscanf_l(ptr str ptr) MSVCRT__fscanf_l
# stub _fscanf_s_l
# stub _fseeki64
@ cdecl qsort(ptr long long ptr) ntdll.qsort
# stub qsort_s
@ cdecl raise(long) MSVCRT_raise
...
...
dlls/msvcrt/scanf.c
View file @
b38fcabf
...
...
@@ -65,6 +65,9 @@ static int wchar2digit(MSVCRT_wchar_t c, int base) {
#undef SECURE
#include "scanf.h"
#define SECURE 1
#include "scanf.h"
/* vfwscanf_l */
#define WIDE_SCANF 1
#undef CONSOLE
...
...
@@ -124,6 +127,35 @@ int CDECL MSVCRT__fscanf_l(MSVCRT_FILE *file, const char *format,
}
/*********************************************************************
* fscanf_s (MSVCRT.@)
*/
int
CDECL
MSVCRT_fscanf_s
(
MSVCRT_FILE
*
file
,
const
char
*
format
,
...)
{
__ms_va_list
valist
;
int
res
;
__ms_va_start
(
valist
,
format
);
res
=
MSVCRT_vfscanf_s_l
(
file
,
format
,
NULL
,
valist
);
__ms_va_end
(
valist
);
return
res
;
}
/*********************************************************************
* _fscanf_s_l (MSVCRT.@)
*/
int
CDECL
MSVCRT__fscanf_s_l
(
MSVCRT_FILE
*
file
,
const
char
*
format
,
MSVCRT__locale_t
locale
,
...)
{
__ms_va_list
valist
;
int
res
;
__ms_va_start
(
valist
,
locale
);
res
=
MSVCRT_vfscanf_s_l
(
file
,
format
,
locale
,
valist
);
__ms_va_end
(
valist
);
return
res
;
}
/*********************************************************************
* scanf (MSVCRT.@)
*/
int
CDECL
MSVCRT_scanf
(
const
char
*
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