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
d09ab74d
Commit
d09ab74d
authored
Apr 05, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Added _snwscanf implementation.
parent
405e6eb3
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
87 additions
and
18 deletions
+87
-18
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+4
-4
msvcr70.spec
dlls/msvcr70/msvcr70.spec
+1
-1
msvcr71.spec
dlls/msvcr71/msvcr71.spec
+1
-1
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+4
-4
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+4
-4
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+4
-4
scanf.c
dlls/msvcrt/scanf.c
+69
-0
No files found.
dlls/msvcr100/msvcr100.spec
View file @
d09ab74d
...
...
@@ -1101,10 +1101,10 @@
@ stub _snwprintf_l
@ varargs _snwprintf_s(ptr long long wstr) msvcrt._snwprintf_s
@ stub _snwprintf_s_l
@
stub
_snwscanf
@
stub
_snwscanf_l
@
stub
_snwscanf_s
@
stub
_snwscanf_s_l
@
varargs _snwscanf(wstr long wstr) msvcrt.
_snwscanf
@
varargs _snwscanf_l(wstr long wstr ptr) msvcrt.
_snwscanf_l
@
varargs _snwscanf_s(wstr long wstr) msvcrt.
_snwscanf_s
@
varargs _snwscanf_s_l(wstr long wstr ptr) msvcrt.
_snwscanf_s_l
@ varargs _sopen(str long long) msvcrt._sopen
@ cdecl _sopen_s(ptr str long long long) msvcrt._sopen_s
@ varargs _spawnl(long str str) msvcrt._spawnl
...
...
dlls/msvcr70/msvcr70.spec
View file @
d09ab74d
...
...
@@ -528,7 +528,7 @@
@ varargs _snprintf(ptr long str) msvcrt._snprintf
@ varargs _snscanf(str long str) msvcrt._snscanf
@ varargs _snwprintf(ptr long wstr) msvcrt._snwprintf
@
stub
_snwscanf
@
varargs _snwscanf(wstr long wstr) msvcrt.
_snwscanf
@ varargs _sopen(str long long) msvcrt._sopen
@ varargs _spawnl(long str str) msvcrt._spawnl
@ varargs _spawnle(long str str) msvcrt._spawnle
...
...
dlls/msvcr71/msvcr71.spec
View file @
d09ab74d
...
...
@@ -524,7 +524,7 @@
@ varargs _snprintf(str long str) msvcrt._snprintf
@ varargs _snscanf(str long str) msvcrt._snscanf
@ varargs _snwprintf(wstr long wstr) msvcrt._snwprintf
@
stub
_snwscanf
@
varargs _snwscanf(wstr long wstr) msvcrt.
_snwscanf
@ varargs _sopen(str long long) msvcrt._sopen
@ varargs _spawnl(long str str) msvcrt._spawnl
@ varargs _spawnle(long str str) msvcrt._spawnle
...
...
dlls/msvcr80/msvcr80.spec
View file @
d09ab74d
...
...
@@ -955,10 +955,10 @@
@ stub _snwprintf_l
@ varargs _snwprintf_s(ptr long long wstr) msvcrt._snwprintf_s
@ stub _snwprintf_s_l
@
stub
_snwscanf
@
stub
_snwscanf_l
@
stub
_snwscanf_s
@
stub
_snwscanf_s_l
@
varargs _snwscanf(wstr long wstr) msvcrt.
_snwscanf
@
varargs _snwscanf_l(wstr long wstr ptr) msvcrt.
_snwscanf_l
@
varargs _snwscanf_s(wstr long wstr) msvcrt.
_snwscanf_s
@
varargs _snwscanf_s_l(wstr long wstr ptr) msvcrt.
_snwscanf_s_l
@ varargs _sopen(str long long) msvcrt._sopen
@ cdecl _sopen_s(ptr str long long long) msvcrt._sopen_s
@ varargs _spawnl(long str str) msvcrt._spawnl
...
...
dlls/msvcr90/msvcr90.spec
View file @
d09ab74d
...
...
@@ -941,10 +941,10 @@
@ stub _snwprintf_l
@ varargs _snwprintf_s(ptr long long wstr) msvcrt._snwprintf_s
@ stub _snwprintf_s_l
@
stub
_snwscanf
@
stub
_snwscanf_l
@
stub
_snwscanf_s
@
stub
_snwscanf_s_l
@
varargs _snwscanf(wstr long wstr) msvcrt.
_snwscanf
@
varargs _snwscanf_l(wstr long wstr ptr) msvcrt.
_snwscanf_l
@
varargs _snwscanf_s(wstr long wstr) msvcrt.
_snwscanf_s
@
varargs _snwscanf_s_l(wstr long wstr ptr) msvcrt.
_snwscanf_s_l
@ varargs _sopen(str long long) msvcrt._sopen
@ cdecl _sopen_s(ptr str long long long) msvcrt._sopen_s
@ varargs _spawnl(long str str) msvcrt._spawnl
...
...
dlls/msvcrt/msvcrt.spec
View file @
d09ab74d
...
...
@@ -884,10 +884,10 @@
# stub _snwprintf_l
@ varargs _snwprintf_s(ptr long long wstr) MSVCRT__snwprintf_s
# stub _snwprintf_s_l
# stub
_snwscanf
# stub
_snwscanf_l
# stub
_snwscanf_s
# stub
_snwscanf_s_l
@ varargs _snwscanf(wstr long wstr) MSVCRT_
_snwscanf
@ varargs _snwscanf_l(wstr long wstr ptr) MSVCRT_
_snwscanf_l
@ varargs _snwscanf_s(wstr long wstr) MSVCRT_
_snwscanf_s
@ varargs _snwscanf_s_l(wstr long wstr ptr) MSVCRT_
_snwscanf_s_l
@ varargs _sopen(str long long) MSVCRT__sopen
@ cdecl _sopen_s(ptr str long long long) MSVCRT__sopen_s
@ varargs _spawnl(long str str)
...
...
dlls/msvcrt/scanf.c
View file @
d09ab74d
...
...
@@ -99,6 +99,15 @@ static int wchar2digit(MSVCRT_wchar_t c, int base) {
/* vsnscanf_s_l */
#define SECURE
#include "scanf.h"
/* vsnwscanf_l */
#define WIDE_SCANF 1
#undef SECURE
#include "scanf.h"
/* vsnwscanf_s_l */
#define SECURE 1
#include "scanf.h"
#undef STRING_LEN
/* vswscanf_l */
...
...
@@ -650,3 +659,63 @@ int CDECL MSVCRT__snscanf_s_l(char *input, MSVCRT_size_t length,
__ms_va_end
(
valist
);
return
res
;
}
/*********************************************************************
* _snwscanf (MSVCRT.@)
*/
int
CDECL
MSVCRT__snwscanf
(
MSVCRT_wchar_t
*
input
,
MSVCRT_size_t
length
,
const
MSVCRT_wchar_t
*
format
,
...)
{
__ms_va_list
valist
;
int
res
;
__ms_va_start
(
valist
,
format
);
res
=
MSVCRT_vsnwscanf_l
(
input
,
length
,
format
,
NULL
,
valist
);
__ms_va_end
(
valist
);
return
res
;
}
/*********************************************************************
* _snwscanf_l (MSVCRT.@)
*/
int
CDECL
MSVCRT__snwscanf_l
(
MSVCRT_wchar_t
*
input
,
MSVCRT_size_t
length
,
const
MSVCRT_wchar_t
*
format
,
MSVCRT__locale_t
locale
,
...)
{
__ms_va_list
valist
;
int
res
;
__ms_va_start
(
valist
,
locale
);
res
=
MSVCRT_vsnwscanf_l
(
input
,
length
,
format
,
locale
,
valist
);
__ms_va_end
(
valist
);
return
res
;
}
/*********************************************************************
* _snwscanf_s (MSVCRT.@)
*/
int
CDECL
MSVCRT__snwscanf_s
(
MSVCRT_wchar_t
*
input
,
MSVCRT_size_t
length
,
const
MSVCRT_wchar_t
*
format
,
...)
{
__ms_va_list
valist
;
int
res
;
__ms_va_start
(
valist
,
format
);
res
=
MSVCRT_vsnwscanf_s_l
(
input
,
length
,
format
,
NULL
,
valist
);
__ms_va_end
(
valist
);
return
res
;
}
/*********************************************************************
* _snscanf_s_l (MSVCRT.@)
*/
int
CDECL
MSVCRT__snwscanf_s_l
(
MSVCRT_wchar_t
*
input
,
MSVCRT_size_t
length
,
const
MSVCRT_wchar_t
*
format
,
MSVCRT__locale_t
locale
,
...)
{
__ms_va_list
valist
;
int
res
;
__ms_va_start
(
valist
,
locale
);
res
=
MSVCRT_vsnwscanf_s_l
(
input
,
length
,
format
,
locale
,
valist
);
__ms_va_end
(
valist
);
return
res
;
}
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