Commit 52e2a535 authored by Bartosz Kosiorek's avatar Bartosz Kosiorek Committed by Alexandre Julliard

msvcrt: Add _fprintf_l implementation.

parent f726b6ba
...@@ -827,7 +827,7 @@ ...@@ -827,7 +827,7 @@
@ cdecl -arch=!i386 _fpclassf(float) @ cdecl -arch=!i386 _fpclassf(float)
@ cdecl -arch=i386,x86_64,arm,arm64 _fpieee_flt(long ptr ptr) @ cdecl -arch=i386,x86_64,arm,arm64 _fpieee_flt(long ptr ptr)
@ cdecl _fpreset() @ cdecl _fpreset()
@ stub _fprintf_l @ varargs _fprintf_l(ptr str ptr)
@ stub _fprintf_p @ stub _fprintf_p
@ stub _fprintf_p_l @ stub _fprintf_p_l
@ stub _fprintf_s_l @ stub _fprintf_s_l
......
...@@ -1174,7 +1174,7 @@ ...@@ -1174,7 +1174,7 @@
@ cdecl -arch=!i386 _fpclassf(float) @ cdecl -arch=!i386 _fpclassf(float)
@ cdecl -arch=i386,x86_64,arm,arm64 _fpieee_flt(long ptr ptr) @ cdecl -arch=i386,x86_64,arm,arm64 _fpieee_flt(long ptr ptr)
@ cdecl _fpreset() @ cdecl _fpreset()
@ stub _fprintf_l @ varargs _fprintf_l(ptr str ptr)
@ stub _fprintf_p @ stub _fprintf_p
@ stub _fprintf_p_l @ stub _fprintf_p_l
@ stub _fprintf_s_l @ stub _fprintf_s_l
......
...@@ -1175,7 +1175,7 @@ ...@@ -1175,7 +1175,7 @@
@ cdecl -arch=!i386 _fpclassf(float) @ cdecl -arch=!i386 _fpclassf(float)
@ cdecl -arch=i386,x86_64,arm,arm64 _fpieee_flt(long ptr ptr) @ cdecl -arch=i386,x86_64,arm,arm64 _fpieee_flt(long ptr ptr)
@ cdecl _fpreset() @ cdecl _fpreset()
@ stub _fprintf_l @ varargs _fprintf_l(ptr str ptr)
@ stub _fprintf_p @ stub _fprintf_p
@ stub _fprintf_p_l @ stub _fprintf_p_l
@ stub _fprintf_s_l @ stub _fprintf_s_l
......
...@@ -1104,7 +1104,7 @@ ...@@ -1104,7 +1104,7 @@
@ cdecl -arch=!i386 _fpclassf(float) msvcr120._fpclassf @ cdecl -arch=!i386 _fpclassf(float) msvcr120._fpclassf
@ cdecl -arch=i386,x86_64,arm,arm64 _fpieee_flt(long ptr ptr) msvcr120._fpieee_flt @ cdecl -arch=i386,x86_64,arm,arm64 _fpieee_flt(long ptr ptr) msvcr120._fpieee_flt
@ cdecl _fpreset() msvcr120._fpreset @ cdecl _fpreset() msvcr120._fpreset
@ stub _fprintf_l @ varargs _fprintf_l(ptr str ptr) msvcr120._fprintf_l
@ stub _fprintf_p @ stub _fprintf_p
@ stub _fprintf_p_l @ stub _fprintf_p_l
@ stub _fprintf_s_l @ stub _fprintf_s_l
......
...@@ -493,7 +493,7 @@ ...@@ -493,7 +493,7 @@
@ cdecl -arch=!i386 _fpclassf(float) @ cdecl -arch=!i386 _fpclassf(float)
@ cdecl -arch=i386,x86_64,arm,arm64 _fpieee_flt(long ptr ptr) @ cdecl -arch=i386,x86_64,arm,arm64 _fpieee_flt(long ptr ptr)
@ cdecl _fpreset() @ cdecl _fpreset()
@ stub _fprintf_l @ varargs _fprintf_l(ptr str ptr)
@ stub _fprintf_p @ stub _fprintf_p
@ stub _fprintf_p_l @ stub _fprintf_p_l
@ stub _fprintf_s_l @ stub _fprintf_s_l
......
...@@ -476,7 +476,7 @@ ...@@ -476,7 +476,7 @@
@ cdecl -arch=!i386 _fpclassf(float) @ cdecl -arch=!i386 _fpclassf(float)
@ cdecl -arch=i386,x86_64,arm,arm64 _fpieee_flt(long ptr ptr) @ cdecl -arch=i386,x86_64,arm,arm64 _fpieee_flt(long ptr ptr)
@ cdecl _fpreset() @ cdecl _fpreset()
@ stub _fprintf_l @ varargs _fprintf_l(ptr str ptr)
@ stub _fprintf_p @ stub _fprintf_p
@ stub _fprintf_p_l @ stub _fprintf_p_l
@ stub _fprintf_s_l @ stub _fprintf_s_l
......
...@@ -681,12 +681,12 @@ BOOL msvcrt_create_io_inherit_block(WORD *size, BYTE **block) ...@@ -681,12 +681,12 @@ BOOL msvcrt_create_io_inherit_block(WORD *size, BYTE **block)
*handle_ptr = INVALID_HANDLE_VALUE; *handle_ptr = INVALID_HANDLE_VALUE;
} }
wxflag_ptr++; handle_ptr++; wxflag_ptr++; handle_ptr++;
} }
return TRUE; return TRUE;
} }
/* INTERNAL: Set up all file descriptors, /* INTERNAL: Set up all file descriptors,
* as well as default streams (stdin, stderr and stdout) * as well as default streams (stdin, stderr and stdout)
*/ */
void msvcrt_init_io(void) void msvcrt_init_io(void)
{ {
...@@ -1286,7 +1286,7 @@ int CDECL _dup(int od) ...@@ -1286,7 +1286,7 @@ int CDECL _dup(int od)
{ {
int fd, ret; int fd, ret;
ioinfo *info = get_ioinfo_alloc(&fd); ioinfo *info = get_ioinfo_alloc(&fd);
if (_dup2(od, fd) == 0) if (_dup2(od, fd) == 0)
ret = fd; ret = fd;
else else
...@@ -5582,6 +5582,19 @@ int WINAPIV fprintf_s(FILE* file, const char *format, ...) ...@@ -5582,6 +5582,19 @@ int WINAPIV fprintf_s(FILE* file, const char *format, ...)
} }
/********************************************************************* /*********************************************************************
* _fprintf_l (MSVCRT.@)
*/
int CDECL _fprintf_l(FILE* file, const char *format, _locale_t locale, ...)
{
va_list valist;
int res;
va_start(valist, locale);
res = _vfprintf_l(file, format, locale, valist);
va_end(valist);
return res;
}
/*********************************************************************
* fwprintf (MSVCRT.@) * fwprintf (MSVCRT.@)
*/ */
int WINAPIV fwprintf(FILE* file, const wchar_t *format, ...) int WINAPIV fwprintf(FILE* file, const wchar_t *format, ...)
......
...@@ -460,7 +460,7 @@ ...@@ -460,7 +460,7 @@
@ cdecl -arch=!i386 _fpclassf(float) @ cdecl -arch=!i386 _fpclassf(float)
@ cdecl -arch=i386,x86_64,arm,arm64 _fpieee_flt(long ptr ptr) @ cdecl -arch=i386,x86_64,arm,arm64 _fpieee_flt(long ptr ptr)
@ cdecl _fpreset() @ cdecl _fpreset()
# stub _fprintf_l(ptr str ptr) @ varargs _fprintf_l(ptr str ptr)
# stub _fprintf_p(ptr str) # stub _fprintf_p(ptr str)
# stub _fprintf_p_l(ptr str ptr) # stub _fprintf_p_l(ptr str ptr)
# stub _fprintf_s_l(ptr str ptr) # stub _fprintf_s_l(ptr str ptr)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment