Commit 37ecbf6d authored by Bartosz Kosiorek's avatar Bartosz Kosiorek Committed by Alexandre Julliard

msvcrt: Add _cwprintf_l implementation.

parent 07404c0b
...@@ -757,7 +757,7 @@ ...@@ -757,7 +757,7 @@
@ cdecl _ctime64_s(str long ptr) @ cdecl _ctime64_s(str long ptr)
@ cdecl _cwait(ptr long long) @ cdecl _cwait(ptr long long)
@ varargs _cwprintf(wstr) @ varargs _cwprintf(wstr)
@ stub _cwprintf_l @ varargs _cwprintf_l(wstr ptr)
@ stub _cwprintf_p @ stub _cwprintf_p
@ stub _cwprintf_p_l @ stub _cwprintf_p_l
@ stub _cwprintf_s @ stub _cwprintf_s
......
...@@ -1105,7 +1105,7 @@ ...@@ -1105,7 +1105,7 @@
@ cdecl _ctime64_s(str long ptr) @ cdecl _ctime64_s(str long ptr)
@ cdecl _cwait(ptr long long) @ cdecl _cwait(ptr long long)
@ varargs _cwprintf(wstr) @ varargs _cwprintf(wstr)
@ stub _cwprintf_l @ varargs _cwprintf_l(wstr ptr)
@ stub _cwprintf_p @ stub _cwprintf_p
@ stub _cwprintf_p_l @ stub _cwprintf_p_l
@ stub _cwprintf_s @ stub _cwprintf_s
......
...@@ -1097,7 +1097,7 @@ ...@@ -1097,7 +1097,7 @@
@ cdecl _ctime64_s(str long ptr) @ cdecl _ctime64_s(str long ptr)
@ cdecl _cwait(ptr long long) @ cdecl _cwait(ptr long long)
@ varargs _cwprintf(wstr) @ varargs _cwprintf(wstr)
@ stub _cwprintf_l @ varargs _cwprintf_l(wstr ptr)
@ stub _cwprintf_p @ stub _cwprintf_p
@ stub _cwprintf_p_l @ stub _cwprintf_p_l
@ stub _cwprintf_s @ stub _cwprintf_s
......
...@@ -421,7 +421,7 @@ ...@@ -421,7 +421,7 @@
@ cdecl _ctime64_s(str long ptr) @ cdecl _ctime64_s(str long ptr)
@ cdecl _cwait(ptr long long) @ cdecl _cwait(ptr long long)
@ varargs _cwprintf(wstr) @ varargs _cwprintf(wstr)
@ stub _cwprintf_l @ varargs _cwprintf_l(wstr ptr)
@ stub _cwprintf_p @ stub _cwprintf_p
@ stub _cwprintf_p_l @ stub _cwprintf_p_l
@ stub _cwprintf_s @ stub _cwprintf_s
......
...@@ -404,7 +404,7 @@ ...@@ -404,7 +404,7 @@
@ cdecl _ctime64_s(str long ptr) @ cdecl _ctime64_s(str long ptr)
@ cdecl _cwait(ptr long long) @ cdecl _cwait(ptr long long)
@ varargs _cwprintf(wstr) @ varargs _cwprintf(wstr)
@ stub _cwprintf_l @ varargs _cwprintf_l(wstr ptr)
@ stub _cwprintf_p @ stub _cwprintf_p
@ stub _cwprintf_p_l @ stub _cwprintf_p_l
@ stub _cwprintf_s @ stub _cwprintf_s
......
...@@ -572,6 +572,7 @@ int WINAPIV _cprintf(const char* format, ...) ...@@ -572,6 +572,7 @@ int WINAPIV _cprintf(const char* format, ...)
return retval; return retval;
} }
#if _MSVCR_VER<=120
/********************************************************************* /*********************************************************************
* _vcwprintf_l (MSVCRT.@) * _vcwprintf_l (MSVCRT.@)
*/ */
...@@ -589,6 +590,21 @@ int CDECL _vcwprintf(const wchar_t* format, va_list valist) ...@@ -589,6 +590,21 @@ int CDECL _vcwprintf(const wchar_t* format, va_list valist)
} }
/********************************************************************* /*********************************************************************
* _cwprintf_l (MSVCRT.@)
*/
int WINAPIV _cwprintf_l(const wchar_t* format, _locale_t locale, ...)
{
int retval;
va_list valist;
va_start(valist, locale);
retval = _vcwprintf_l(format, locale, valist);
va_end(valist);
return retval;
}
/*********************************************************************
* _cwprintf (MSVCRT.@) * _cwprintf (MSVCRT.@)
*/ */
int WINAPIV _cwprintf(const wchar_t* format, ...) int WINAPIV _cwprintf(const wchar_t* format, ...)
...@@ -602,6 +618,7 @@ int WINAPIV _cwprintf(const wchar_t* format, ...) ...@@ -602,6 +618,7 @@ int WINAPIV _cwprintf(const wchar_t* format, ...)
return retval; return retval;
} }
#endif
#if _MSVCR_VER>=140 #if _MSVCR_VER>=140
......
...@@ -393,7 +393,7 @@ ...@@ -393,7 +393,7 @@
@ extern _ctype MSVCRT__ctype @ extern _ctype MSVCRT__ctype
@ cdecl _cwait(ptr long long) @ cdecl _cwait(ptr long long)
@ varargs _cwprintf(wstr) @ varargs _cwprintf(wstr)
# stub _cwprintf_l(wstr ptr) @ varargs _cwprintf_l(wstr ptr)
# stub _cwprintf_p(wstr) # stub _cwprintf_p(wstr)
# stub _cwprintf_p_l(wstr ptr) # stub _cwprintf_p_l(wstr ptr)
# stub _cwprintf_s(wstr) # stub _cwprintf_s(wstr)
......
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