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
449959f4
Commit
449959f4
authored
Feb 24, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corecrt_wstdio.h: Add ucrt _scwprintf and _vscwprintf declarations.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ee02f93c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
corecrt_wstdio.h
include/msvcrt/corecrt_wstdio.h
+21
-2
No files found.
include/msvcrt/corecrt_wstdio.h
View file @
449959f4
...
...
@@ -55,9 +55,7 @@ wint_t __cdecl _getwc_nolock(FILE*);
wchar_t
*
__cdecl
_getws
(
wchar_t
*
);
wint_t
__cdecl
_putwc_nolock
(
wint_t
,
FILE
*
);
int
__cdecl
_putws
(
const
wchar_t
*
);
int
WINAPIV
_scwprintf
(
const
wchar_t
*
,...);
wint_t
__cdecl
_ungetwc_nolock
(
wint_t
,
FILE
*
);
int
__cdecl
_vscwprintf
(
const
wchar_t
*
,
__ms_va_list
);
int
__cdecl
_vscwprintf_p_l
(
const
wchar_t
*
,
_locale_t
,
__ms_va_list
);
int
__cdecl
_vswprintf_p_l
(
wchar_t
*
,
size_t
,
const
wchar_t
*
,
_locale_t
,
__ms_va_list
);
FILE
*
__cdecl
_wfdopen
(
int
,
const
wchar_t
*
);
...
...
@@ -173,10 +171,31 @@ static inline int WINAPIV _swprintf(wchar_t *buffer, const wchar_t *format, ...)
return
ret
<
0
?
-
1
:
ret
;
}
static
inline
int
__cdecl
_vscwprintf
(
const
wchar_t
*
format
,
__ms_va_list
args
)
{
int
ret
=
__stdio_common_vswprintf
(
_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS
|
_CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR
,
NULL
,
0
,
format
,
NULL
,
args
);
return
ret
<
0
?
-
1
:
ret
;
}
static
inline
int
WINAPIV
_scwprintf
(
const
wchar_t
*
format
,
...)
{
int
ret
;
__ms_va_list
args
;
__ms_va_start
(
args
,
format
);
ret
=
__stdio_common_vswprintf
(
_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS
|
_CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR
,
NULL
,
0
,
format
,
NULL
,
args
);
__ms_va_end
(
args
);
return
ret
;
}
#else
/* _UCRT */
_ACRTIMP
int
WINAPIV
_scwprintf
(
const
wchar_t
*
,...);
_ACRTIMP
int
WINAPIV
_snwprintf
(
wchar_t
*
,
size_t
,
const
wchar_t
*
,...);
_ACRTIMP
int
WINAPIV
_snwprintf_s
(
wchar_t
*
,
size_t
,
size_t
,
const
wchar_t
*
,...);
_ACRTIMP
int
__cdecl
_vscwprintf
(
const
wchar_t
*
,
__ms_va_list
);
_ACRTIMP
int
__cdecl
_vsnwprintf
(
wchar_t
*
,
size_t
,
const
wchar_t
*
,
__ms_va_list
);
_ACRTIMP
int
__cdecl
_vsnwprintf_s
(
wchar_t
*
,
size_t
,
size_t
,
const
wchar_t
*
,
__ms_va_list
);
...
...
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