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
33199860
Commit
33199860
authored
Dec 09, 2013
by
Alexandre Bique
Committed by
Alexandre Julliard
Dec 10, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Implement missing sprintf functions.
parent
09bfea11
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
52 additions
and
15 deletions
+52
-15
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+3
-3
msvcr110.spec
dlls/msvcr110/msvcr110.spec
+3
-3
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+3
-3
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+3
-3
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+3
-3
wcs.c
dlls/msvcrt/wcs.c
+37
-0
No files found.
dlls/msvcr100/msvcr100.spec
View file @
33199860
...
...
@@ -1317,10 +1317,10 @@
@ cdecl _spawnvpe(long str ptr ptr) msvcrt._spawnvpe
@ cdecl _splitpath(str ptr ptr ptr ptr) msvcrt._splitpath
@ cdecl _splitpath_s(str ptr long ptr long ptr long ptr long) msvcrt._splitpath_s
@
stub
_sprintf_l
@
varargs _sprintf_l(ptr str ptr) msvcrt.
_sprintf_l
@ varargs _sprintf_p(ptr long str)
@ varargs _sprintf_p_l(ptr long str ptr) msvcrt._sprintf_p_l
@
stub
_sprintf_s_l
@
varargs _sprintf_s_l(ptr long str ptr) msvcrt.
_sprintf_s_l
@ varargs _sscanf_l(str str ptr) msvcrt._sscanf_l
@ varargs _sscanf_s_l(str str ptr) msvcrt._sscanf_s_l
@ cdecl _stat32(str ptr)
...
...
@@ -1461,7 +1461,7 @@
@ cdecl _vsprintf_l(ptr str ptr ptr) msvcrt._vsprintf_l
@ cdecl _vsprintf_p(ptr long str ptr) msvcrt._vsprintf_p
@ cdecl _vsprintf_p_l(ptr long str ptr ptr) msvcrt._vsprintf_p_l
@
stub
_vsprintf_s_l
@
cdecl _vsprintf_s_l(ptr long str ptr ptr) msvcrt.
_vsprintf_s_l
@ cdecl _vswprintf(ptr wstr ptr) msvcrt._vswprintf
@ cdecl _vswprintf_c(ptr long wstr ptr) msvcrt._vswprintf_c
@ cdecl _vswprintf_c_l(ptr long wstr ptr ptr) msvcrt._vswprintf_c_l
...
...
dlls/msvcr110/msvcr110.spec
View file @
33199860
...
...
@@ -1675,10 +1675,10 @@
@ cdecl _spawnvpe(long str ptr ptr) msvcrt._spawnvpe
@ cdecl _splitpath(str ptr ptr ptr ptr) msvcrt._splitpath
@ cdecl _splitpath_s(str ptr long ptr long ptr long ptr long) msvcrt._splitpath_s
@
stub
_sprintf_l
@
varargs _sprintf_l(ptr str ptr) msvcrt.
_sprintf_l
@ varargs _sprintf_p(ptr long str) msvcr100._sprintf_p
@ varargs _sprintf_p_l(ptr long str ptr) msvcrt._sprintf_p_l
@
stub
_sprintf_s_l
@
varargs _sprintf_s_l(ptr long str ptr) msvcrt.
_sprintf_s_l
@ varargs _sscanf_l(str str ptr) msvcrt._sscanf_l
@ varargs _sscanf_s_l(str str ptr) msvcrt._sscanf_s_l
@ cdecl _stat32(str ptr) msvcr100._stat32
...
...
@@ -1819,7 +1819,7 @@
@ cdecl _vsprintf_l(ptr str ptr ptr) msvcrt._vsprintf_l
@ cdecl _vsprintf_p(ptr long str ptr) msvcrt._vsprintf_p
@ cdecl _vsprintf_p_l(ptr long str ptr ptr) msvcrt._vsprintf_p_l
@
stub
_vsprintf_s_l
@
cdecl _vsprintf_s_l(ptr long str ptr ptr) msvcrt.
_vsprintf_s_l
@ cdecl _vswprintf(ptr wstr ptr) msvcrt._vswprintf
@ cdecl _vswprintf_c(ptr long wstr ptr) msvcrt._vswprintf_c
@ cdecl _vswprintf_c_l(ptr long wstr ptr ptr) msvcrt._vswprintf_c_l
...
...
dlls/msvcr80/msvcr80.spec
View file @
33199860
...
...
@@ -997,10 +997,10 @@
@ cdecl _spawnvpe(long str ptr ptr) msvcrt._spawnvpe
@ cdecl _splitpath(str ptr ptr ptr ptr) msvcrt._splitpath
@ cdecl _splitpath_s(str ptr long ptr long ptr long ptr long) msvcrt._splitpath_s
@
stub
_sprintf_l
@
varargs _sprintf_l(ptr str ptr) msvcrt.
_sprintf_l
@ varargs _sprintf_p(ptr long str) msvcr100._sprintf_p
@ varargs _sprintf_p_l(ptr long str ptr) msvcrt._sprintf_p_l
@
stub
_sprintf_s_l
@
varargs _sprintf_s_l(ptr long str ptr) msvcrt.
_sprintf_s_l
@ varargs _sscanf_l(str str ptr) msvcrt._sscanf_l
@ varargs _sscanf_s_l(str str ptr) msvcrt._sscanf_s_l
@ cdecl _stat32(str ptr) msvcr100._stat32
...
...
@@ -1140,7 +1140,7 @@
@ cdecl _vsprintf_l(ptr str ptr ptr) msvcrt._vsprintf_l
@ cdecl _vsprintf_p(ptr long str ptr) msvcrt._vsprintf_p
@ cdecl _vsprintf_p_l(ptr long str ptr ptr) msvcrt._vsprintf_p_l
@
stub
_vsprintf_s_l
@
cdecl _vsprintf_s_l(ptr long str ptr ptr) msvcrt.
_vsprintf_s_l
@ cdecl _vswprintf(ptr wstr ptr) msvcrt._vswprintf
@ cdecl _vswprintf_c(ptr long wstr ptr) msvcrt._vswprintf_c
@ cdecl _vswprintf_c_l(ptr long wstr ptr ptr) msvcrt._vswprintf_c_l
...
...
dlls/msvcr90/msvcr90.spec
View file @
33199860
...
...
@@ -972,10 +972,10 @@
@ cdecl _spawnvpe(long str ptr ptr) msvcrt._spawnvpe
@ cdecl _splitpath(str ptr ptr ptr ptr) msvcrt._splitpath
@ cdecl _splitpath_s(str ptr long ptr long ptr long ptr long) msvcrt._splitpath_s
@
stub
_sprintf_l
@
varargs _sprintf_l(ptr str ptr) msvcrt.
_sprintf_l
@ varargs _sprintf_p(ptr long str) msvcr100._sprintf_p
@ varargs _sprintf_p_l(ptr long str ptr) msvcrt._sprintf_p_l
@
stub
_sprintf_s_l
@
varargs _sprintf_s_l(ptr long str ptr) msvcrt.
_sprintf_s_l
@ varargs _sscanf_l(str str ptr) msvcrt._sscanf_l
@ varargs _sscanf_s_l(str str ptr) msvcrt._sscanf_s_l
@ cdecl _stat32(str ptr) msvcr100._stat32
...
...
@@ -1116,7 +1116,7 @@
@ cdecl _vsprintf_l(ptr str ptr ptr) msvcrt._vsprintf_l
@ cdecl _vsprintf_p(ptr long str ptr) msvcrt._vsprintf_p
@ cdecl _vsprintf_p_l(ptr long str ptr ptr) msvcrt._vsprintf_p_l
@
stub
_vsprintf_s_l
@
cdecl _vsprintf_s_l(ptr long str ptr ptr) msvcrt.
_vsprintf_s_l
@ cdecl _vswprintf(ptr wstr ptr) msvcrt._vswprintf
@ cdecl _vswprintf_c(ptr long wstr ptr) msvcrt._vswprintf_c
@ cdecl _vswprintf_c_l(ptr long wstr ptr ptr) msvcrt._vswprintf_c_l
...
...
dlls/msvcrt/msvcrt.spec
View file @
33199860
...
...
@@ -939,9 +939,9 @@
@ cdecl _spawnvpe(long str ptr ptr) MSVCRT__spawnvpe
@ cdecl _splitpath(str ptr ptr ptr ptr)
@ cdecl _splitpath_s(str ptr long ptr long ptr long ptr long)
# stub _sprintf_l(ptr str ptr)
@ varargs _sprintf_l(ptr str ptr) MSVCRT_sprintf_l
@ varargs _sprintf_p_l(ptr long str ptr) MSVCRT_sprintf_p_l
# stub _sprintf_s_l(ptr long str ptr)
@ varargs _sprintf_s_l(ptr long str ptr) MSVCRT_sprintf_s_l
@ varargs _sscanf_l(str str ptr) MSVCRT__sscanf_l
@ varargs _sscanf_s_l(str str ptr) MSVCRT__sscanf_s_l
@ cdecl _stat(str ptr) MSVCRT_stat
...
...
@@ -1076,7 +1076,7 @@
@ cdecl _vsprintf_l(ptr str ptr ptr) MSVCRT_vsprintf_l
@ cdecl _vsprintf_p(ptr long str ptr) MSVCRT_vsprintf_p
@ cdecl _vsprintf_p_l(ptr long str ptr ptr) MSVCRT_vsprintf_p_l
# stub _vsprintf_s_l(ptr long str ptr ptr)
@ cdecl _vsprintf_s_l(ptr long str ptr ptr) MSVCRT_vsprintf_s_l
@ cdecl _vswprintf(ptr wstr ptr) MSVCRT_vswprintf
@ cdecl _vswprintf_c(ptr long wstr ptr) MSVCRT_vsnwprintf
@ cdecl _vswprintf_c_l(ptr long wstr ptr ptr) MSVCRT_vsnwprintf_l
...
...
dlls/msvcrt/wcs.c
View file @
33199860
...
...
@@ -647,6 +647,20 @@ int CDECL MSVCRT_vsprintf_l( char *str, const char *format,
}
/*********************************************************************
* _sprintf_l (MSVCRT.@)
*/
int
CDECL
MSVCRT_sprintf_l
(
char
*
str
,
const
char
*
format
,
MSVCRT__locale_t
locale
,
...)
{
int
retval
;
__ms_va_list
valist
;
__ms_va_start
(
valist
,
locale
);
retval
=
MSVCRT_vsnprintf_l
(
str
,
INT_MAX
,
format
,
locale
,
valist
);
__ms_va_end
(
valist
);
return
retval
;
}
/*********************************************************************
* _vsnprintf_s_l (MSVCRT.@)
*/
int
CDECL
MSVCRT_vsnprintf_s_l
(
char
*
str
,
MSVCRT_size_t
sizeOfBuffer
,
...
...
@@ -682,6 +696,29 @@ int CDECL MSVCRT_vsnprintf_s_l( char *str, MSVCRT_size_t sizeOfBuffer,
}
/*********************************************************************
* _vsprintf_s_l (MSVCRT.@)
*/
int
CDECL
MSVCRT_vsprintf_s_l
(
char
*
str
,
MSVCRT_size_t
count
,
const
char
*
format
,
MSVCRT__locale_t
locale
,
__ms_va_list
valist
)
{
return
MSVCRT_vsnprintf_s_l
(
str
,
INT_MAX
,
count
,
format
,
locale
,
valist
);
}
/*********************************************************************
* _sprintf_s_l (MSVCRT.@)
*/
int
CDECL
MSVCRT_sprintf_s_l
(
char
*
str
,
MSVCRT_size_t
count
,
const
char
*
format
,
MSVCRT__locale_t
locale
,
...)
{
int
retval
;
__ms_va_list
valist
;
__ms_va_start
(
valist
,
locale
);
retval
=
MSVCRT_vsnprintf_s_l
(
str
,
INT_MAX
,
count
,
format
,
locale
,
valist
);
__ms_va_end
(
valist
);
return
retval
;
}
/*********************************************************************
* _vsnprintf_s (MSVCRT.@)
*/
int
CDECL
MSVCRT_vsnprintf_s
(
char
*
str
,
MSVCRT_size_t
sizeOfBuffer
,
...
...
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