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
91bc6c52
Commit
91bc6c52
authored
Nov 24, 2010
by
Eryk Wieliczko
Committed by
Alexandre Julliard
Nov 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Implement fprintf_s and fwprintf_s.
parent
133a38fc
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
37 additions
and
8 deletions
+37
-8
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+2
-2
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+2
-2
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+2
-2
file.c
dlls/msvcrt/file.c
+26
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+2
-2
stdio.h
include/msvcrt/stdio.h
+2
-0
wchar.h
include/msvcrt/wchar.h
+1
-0
No files found.
dlls/msvcr100/msvcr100.spec
View file @
91bc6c52
...
...
@@ -1459,7 +1459,7 @@
@ cdecl fopen(str str) msvcrt.fopen
@ cdecl fopen_s(ptr str str) msvcrt.fopen_s
@ varargs fprintf(ptr str) msvcrt.fprintf
@
stub
fprintf_s
@
varargs fprintf_s(ptr str) msvcrt.
fprintf_s
@ cdecl fputc(long ptr) msvcrt.fputc
@ cdecl fputs(str ptr) msvcrt.fputs
@ cdecl fputwc(long ptr) msvcrt.fputwc
...
...
@@ -1476,7 +1476,7 @@
@ cdecl fsetpos(ptr ptr) msvcrt.fsetpos
@ cdecl ftell(ptr) msvcrt.ftell
@ varargs fwprintf(ptr wstr) msvcrt.fwprintf
@
stub
fwprintf_s
@
varargs fwprintf_s(ptr str) msvcrt.
fwprintf_s
@ cdecl fwrite(ptr long long ptr) msvcrt.fwrite
@ varargs fwscanf(ptr wstr) msvcrt.fwscanf
@ varargs fwscanf_s(ptr wstr) msvcrt.fwscanf_s
...
...
dlls/msvcr80/msvcr80.spec
View file @
91bc6c52
...
...
@@ -1315,7 +1315,7 @@
@ cdecl fopen(str str) msvcrt.fopen
@ cdecl fopen_s(ptr str str) msvcrt.fopen_s
@ varargs fprintf(ptr str) msvcrt.fprintf
@
stub
fprintf_s
@
varargs fprintf_s(ptr str) msvcrt.
fprintf_s
@ cdecl fputc(long ptr) msvcrt.fputc
@ cdecl fputs(str ptr) msvcrt.fputs
@ cdecl fputwc(long ptr) msvcrt.fputwc
...
...
@@ -1332,7 +1332,7 @@
@ cdecl fsetpos(ptr ptr) msvcrt.fsetpos
@ cdecl ftell(ptr) msvcrt.ftell
@ varargs fwprintf(ptr wstr) msvcrt.fwprintf
@
stub
fwprintf_s
@
varargs fwprintf_s(ptr str) msvcrt.
fwprintf_s
@ cdecl fwrite(ptr long long ptr) msvcrt.fwrite
@ varargs fwscanf(ptr wstr) msvcrt.fwscanf
@ varargs fwscanf_s(ptr wstr) msvcrt.fwscanf_s
...
...
dlls/msvcr90/msvcr90.spec
View file @
91bc6c52
...
...
@@ -1299,7 +1299,7 @@
@ cdecl fopen(str str) msvcrt.fopen
@ cdecl fopen_s(ptr str str) msvcrt.fopen_s
@ varargs fprintf(ptr str) msvcrt.fprintf
@
stub
fprintf_s
@
varargs fprintf_s(ptr str) msvcrt.
fprintf_s
@ cdecl fputc(long ptr) msvcrt.fputc
@ cdecl fputs(str ptr) msvcrt.fputs
@ cdecl fputwc(long ptr) msvcrt.fputwc
...
...
@@ -1316,7 +1316,7 @@
@ cdecl fsetpos(ptr ptr) msvcrt.fsetpos
@ cdecl ftell(ptr) msvcrt.ftell
@ varargs fwprintf(ptr wstr) msvcrt.fwprintf
@
stub
fwprintf_s
@
varargs fwprintf_s(ptr str) msvcrt.
fwprintf_s
@ cdecl fwrite(ptr long long ptr) msvcrt.fwrite
@ varargs fwscanf(ptr wstr) msvcrt.fwscanf
@ varargs fwscanf_s(ptr wstr) msvcrt.fwscanf_s
...
...
dlls/msvcrt/file.c
View file @
91bc6c52
...
...
@@ -3500,6 +3500,19 @@ int CDECL MSVCRT_fprintf(MSVCRT_FILE* file, const char *format, ...)
}
/*********************************************************************
* fprintf_s (MSVCRT.@)
*/
int
CDECL
MSVCRT_fprintf_s
(
MSVCRT_FILE
*
file
,
const
char
*
format
,
...)
{
__ms_va_list
valist
;
int
res
;
__ms_va_start
(
valist
,
format
);
res
=
MSVCRT_vfprintf_s
(
file
,
format
,
valist
);
__ms_va_end
(
valist
);
return
res
;
}
/*********************************************************************
* fwprintf (MSVCRT.@)
*/
int
CDECL
MSVCRT_fwprintf
(
MSVCRT_FILE
*
file
,
const
MSVCRT_wchar_t
*
format
,
...)
...
...
@@ -3513,6 +3526,19 @@ int CDECL MSVCRT_fwprintf(MSVCRT_FILE* file, const MSVCRT_wchar_t *format, ...)
}
/*********************************************************************
* fwprintf_s (MSVCRT.@)
*/
int
CDECL
MSVCRT_fwprintf_s
(
MSVCRT_FILE
*
file
,
const
MSVCRT_wchar_t
*
format
,
...)
{
__ms_va_list
valist
;
int
res
;
__ms_va_start
(
valist
,
format
);
res
=
MSVCRT_vfwprintf_s
(
file
,
format
,
valist
);
__ms_va_end
(
valist
);
return
res
;
}
/*********************************************************************
* printf (MSVCRT.@)
*/
int
CDECL
MSVCRT_printf
(
const
char
*
format
,
...)
...
...
dlls/msvcrt/msvcrt.spec
View file @
91bc6c52
...
...
@@ -1250,7 +1250,7 @@
@ cdecl fopen(str str) MSVCRT_fopen
@ cdecl fopen_s(ptr str str) MSVCRT_fopen_s
@ varargs fprintf(ptr str) MSVCRT_fprintf
# stub
fprintf_s
@ varargs fprintf_s(ptr str) MSVCRT_
fprintf_s
@ cdecl fputc(long ptr) MSVCRT_fputc
@ cdecl fputs(str ptr) MSVCRT_fputs
@ cdecl fputwc(long ptr) MSVCRT_fputwc
...
...
@@ -1267,7 +1267,7 @@
@ cdecl fsetpos(ptr ptr) MSVCRT_fsetpos
@ cdecl ftell(ptr) MSVCRT_ftell
@ varargs fwprintf(ptr wstr) MSVCRT_fwprintf
# stub
fwprintf_s
@ varargs fwprintf_s(ptr wstr) MSVCRT_
fwprintf_s
@ cdecl fwrite(ptr long long ptr) MSVCRT_fwrite
@ varargs fwscanf(ptr wstr) MSVCRT_fwscanf
@ varargs fwscanf_s(ptr wstr) MSVCRT_fwscanf_s
...
...
include/msvcrt/stdio.h
View file @
91bc6c52
...
...
@@ -131,6 +131,7 @@ char* __cdecl fgets(char*,int,FILE*);
FILE
*
__cdecl
fopen
(
const
char
*
,
const
char
*
);
errno_t
__cdecl
fopen_s
(
FILE
**
,
const
char
*
,
const
char
*
);
int
__cdecl
fprintf
(
FILE
*
,
const
char
*
,...);
int
__cdecl
fprintf_s
(
FILE
*
,
const
char
*
,...);
int
__cdecl
fputc
(
int
,
FILE
*
);
int
__cdecl
fputs
(
const
char
*
,
FILE
*
);
size_t
__cdecl
fread
(
void
*
,
size_t
,
size_t
,
FILE
*
);
...
...
@@ -200,6 +201,7 @@ wchar_t* __cdecl fgetws(wchar_t*,int,FILE*);
wint_t
__cdecl
fputwc
(
wint_t
,
FILE
*
);
int
__cdecl
fputws
(
const
wchar_t
*
,
FILE
*
);
int
__cdecl
fwprintf
(
FILE
*
,
const
wchar_t
*
,...);
int
__cdecl
fwprintf_s
(
FILE
*
,
const
wchar_t
*
,...);
int
__cdecl
fputws
(
const
wchar_t
*
,
FILE
*
);
int
__cdecl
fwscanf
(
FILE
*
,
const
wchar_t
*
,...);
int
__cdecl
fwscanf_s
(
FILE
*
,
const
wchar_t
*
,...);
...
...
include/msvcrt/wchar.h
View file @
91bc6c52
...
...
@@ -295,6 +295,7 @@ wchar_t* __cdecl fgetws(wchar_t*,int,FILE*);
wint_t
__cdecl
fputwc
(
wint_t
,
FILE
*
);
int
__cdecl
fputws
(
const
wchar_t
*
,
FILE
*
);
int
__cdecl
fwprintf
(
FILE
*
,
const
wchar_t
*
,...);
int
__cdecl
fwprintf_s
(
FILE
*
,
const
wchar_t
*
,...);
int
__cdecl
fputws
(
const
wchar_t
*
,
FILE
*
);
int
__cdecl
fwscanf
(
FILE
*
,
const
wchar_t
*
,...);
int
__cdecl
fwscanf_s
(
FILE
*
,
const
wchar_t
*
,...);
...
...
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