Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f36671c5
Commit
f36671c5
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 _cwscanf* implementation.
parent
177d5455
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
87 additions
and
12 deletions
+87
-12
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
+67
-0
scanf.h
dlls/msvcrt/scanf.h
+8
-0
No files found.
dlls/msvcr80/msvcr80.spec
View file @
f36671c5
...
...
@@ -355,10 +355,10 @@
@ stub _cwprintf_p_l
@ stub _cwprintf_s
@ stub _cwprintf_s_l
@
stub
_cwscanf
@
stub
_cwscanf_l
@
stub
_cwscanf_s
@
stub
_cwscanf_s_l
@
varargs _cwscanf(wstr) msvcrt.
_cwscanf
@
varargs _cwscanf_l(wstr ptr) msvcrt.
_cwscanf_l
@
varargs _cwscanf_s(wstr) msvcrt.
_cwscanf_s
@
varargs _cwscanf_s_l(wstr ptr) msvcrt.
_cwscanf_s_l
@ extern _daylight msvcrt._daylight
@ cdecl _decode_pointer(ptr) msvcr90._decode_pointer
@ cdecl _difftime32(long long) msvcrt._difftime32
...
...
dlls/msvcr90/msvcr90.spec
View file @
f36671c5
...
...
@@ -347,10 +347,10 @@
@ stub _cwprintf_p_l
@ stub _cwprintf_s
@ stub _cwprintf_s_l
@
stub
_cwscanf
@
stub
_cwscanf_l
@
stub
_cwscanf_s
@
stub
_cwscanf_s_l
@
varargs _cwscanf(wstr) msvcrt.
_cwscanf
@
varargs _cwscanf_l(wstr ptr) msvcrt.
_cwscanf_l
@
varargs _cwscanf_s(wstr) msvcrt.
_cwscanf_s
@
varargs _cwscanf_s_l(wstr ptr) msvcrt.
_cwscanf_s_l
@ extern _daylight msvcrt._daylight
@ cdecl _decode_pointer(ptr) MSVCR90_decode_pointer
@ cdecl _difftime32(long long) msvcrt._difftime32
...
...
dlls/msvcrt/msvcrt.spec
View file @
f36671c5
...
...
@@ -329,10 +329,10 @@
# stub _cwprintf_p_l
# stub _cwprintf_s
# stub _cwprintf_s_l
# stub _cwscanf
# stub _cwscanf_l
# stub _cwscanf_s
# stub _cwscanf_s_l
@ varargs _cwscanf(wstr)
@ varargs _cwscanf_l(wstr ptr)
@ varargs _cwscanf_s(wstr)
@ varargs _cwscanf_s_l(wstr ptr)
@ extern _daylight MSVCRT___daylight
@ cdecl _difftime32(long long) MSVCRT__difftime32
@ cdecl _difftime64(long long) MSVCRT__difftime64
...
...
dlls/msvcrt/scanf.c
View file @
f36671c5
...
...
@@ -113,6 +113,17 @@ static int wchar2digit(MSVCRT_wchar_t c, int base) {
#define SECURE 1
#include "scanf.h"
/* vcwscanf_l */
#define WIDE_SCANF 1
#define CONSOLE 1
#undef STRING
#undef SECURE
#include "scanf.h"
/* vcwscanf_s_l */
#define SECURE 1
#include "scanf.h"
/*********************************************************************
* fscanf (MSVCRT.@)
...
...
@@ -515,3 +526,59 @@ int CDECL _cscanf_s_l(const char *format, MSVCRT__locale_t locale, ...)
__ms_va_end
(
valist
);
return
res
;
}
/*********************************************************************
* _cwscanf (MSVCRT.@)
*/
int
CDECL
_cwscanf
(
const
char
*
format
,
...)
{
__ms_va_list
valist
;
int
res
;
__ms_va_start
(
valist
,
format
);
res
=
MSVCRT_vcwscanf_l
(
format
,
NULL
,
valist
);
__ms_va_end
(
valist
);
return
res
;
}
/*********************************************************************
* _cwscanf_l (MSVCRT.@)
*/
int
CDECL
_cwscanf_l
(
const
char
*
format
,
MSVCRT__locale_t
locale
,
...)
{
__ms_va_list
valist
;
int
res
;
__ms_va_start
(
valist
,
locale
);
res
=
MSVCRT_vcwscanf_l
(
format
,
locale
,
valist
);
__ms_va_end
(
valist
);
return
res
;
}
/*********************************************************************
* _cwscanf_s (MSVCRT.@)
*/
int
CDECL
_cwscanf_s
(
const
char
*
format
,
...)
{
__ms_va_list
valist
;
int
res
;
__ms_va_start
(
valist
,
format
);
res
=
MSVCRT_vcwscanf_s_l
(
format
,
NULL
,
valist
);
__ms_va_end
(
valist
);
return
res
;
}
/*********************************************************************
* _cwscanf_s_l (MSVCRT.@)
*/
int
CDECL
_cwscanf_s_l
(
const
char
*
format
,
MSVCRT__locale_t
locale
,
...)
{
__ms_va_list
valist
;
int
res
;
__ms_va_start
(
valist
,
locale
);
res
=
MSVCRT_vcwscanf_s_l
(
format
,
locale
,
valist
);
__ms_va_end
(
valist
);
return
res
;
}
dlls/msvcrt/scanf.h
View file @
f36671c5
...
...
@@ -48,11 +48,19 @@
#ifdef CONSOLE
#define _GETC_(file) (consumed++, _getch())
#define _UNGETC_(nch, file) do { _ungetch(nch); consumed--; } while(0)
#ifdef WIDE_SCANF
#ifdef SECURE
#define _FUNCTION_ static int MSVCRT_vcwscanf_s_l(const char *format, MSVCRT__locale_t locale, __ms_va_list ap)
#else
/* SECURE */
#define _FUNCTION_ static int MSVCRT_vcwscanf_l(const char *format, MSVCRT__locale_t locale, __ms_va_list ap)
#endif
/* SECURE */
#else
/* WIDE_SCANF */
#ifdef SECURE
#define _FUNCTION_ static int MSVCRT_vcscanf_s_l(const char *format, MSVCRT__locale_t locale, __ms_va_list ap)
#else
/* SECURE */
#define _FUNCTION_ static int MSVCRT_vcscanf_l(const char *format, MSVCRT__locale_t locale, __ms_va_list ap)
#endif
/* SECURE */
#endif
/* WIDE_SCANF */
#else
#ifdef STRING
#undef _EOF_
...
...
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