Commit 67954241 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Add _wcstol_l implementation.

parent 5dc468f0
...@@ -1505,7 +1505,7 @@ ...@@ -1505,7 +1505,7 @@
@ cdecl _wcstod_l(wstr ptr) msvcrt._wcstod_l @ cdecl _wcstod_l(wstr ptr) msvcrt._wcstod_l
@ cdecl -ret64 _wcstoi64(wstr ptr long) msvcrt._wcstoi64 @ cdecl -ret64 _wcstoi64(wstr ptr long) msvcrt._wcstoi64
@ cdecl -ret64 _wcstoi64_l(wstr ptr long ptr) msvcrt._wcstoi64_l @ cdecl -ret64 _wcstoi64_l(wstr ptr long ptr) msvcrt._wcstoi64_l
@ stub _wcstol_l @ cdecl _wcstol_l(wstr ptr long ptr) msvcrt._wcstol_l
@ cdecl _wcstombs_l(ptr ptr long ptr) msvcrt._wcstombs_l @ cdecl _wcstombs_l(ptr ptr long ptr) msvcrt._wcstombs_l
@ cdecl _wcstombs_s_l(ptr ptr long wstr long ptr) msvcrt._wcstombs_s_l @ cdecl _wcstombs_s_l(ptr ptr long wstr long ptr) msvcrt._wcstombs_s_l
@ cdecl -ret64 _wcstoui64(wstr ptr long) msvcrt._wcstoui64 @ cdecl -ret64 _wcstoui64(wstr ptr long) msvcrt._wcstoui64
......
...@@ -1868,7 +1868,7 @@ ...@@ -1868,7 +1868,7 @@
@ cdecl _wcstod_l(wstr ptr) msvcrt._wcstod_l @ cdecl _wcstod_l(wstr ptr) msvcrt._wcstod_l
@ cdecl -ret64 _wcstoi64(wstr ptr long) msvcrt._wcstoi64 @ cdecl -ret64 _wcstoi64(wstr ptr long) msvcrt._wcstoi64
@ cdecl -ret64 _wcstoi64_l(wstr ptr long ptr) msvcrt._wcstoi64_l @ cdecl -ret64 _wcstoi64_l(wstr ptr long ptr) msvcrt._wcstoi64_l
@ stub _wcstol_l @ cdecl _wcstol_l(wstr ptr long ptr) msvcrt._wcstol_l
@ cdecl _wcstombs_l(ptr ptr long ptr) msvcrt._wcstombs_l @ cdecl _wcstombs_l(ptr ptr long ptr) msvcrt._wcstombs_l
@ cdecl _wcstombs_s_l(ptr ptr long wstr long ptr) msvcrt._wcstombs_s_l @ cdecl _wcstombs_s_l(ptr ptr long wstr long ptr) msvcrt._wcstombs_s_l
@ cdecl -ret64 _wcstoui64(wstr ptr long) msvcrt._wcstoui64 @ cdecl -ret64 _wcstoui64(wstr ptr long) msvcrt._wcstoui64
......
...@@ -1183,7 +1183,7 @@ ...@@ -1183,7 +1183,7 @@
@ cdecl _wcstod_l(wstr ptr) msvcrt._wcstod_l @ cdecl _wcstod_l(wstr ptr) msvcrt._wcstod_l
@ cdecl -ret64 _wcstoi64(wstr ptr long) msvcrt._wcstoi64 @ cdecl -ret64 _wcstoi64(wstr ptr long) msvcrt._wcstoi64
@ cdecl -ret64 _wcstoi64_l(wstr ptr long ptr) msvcrt._wcstoi64_l @ cdecl -ret64 _wcstoi64_l(wstr ptr long ptr) msvcrt._wcstoi64_l
@ stub _wcstol_l @ cdecl _wcstol_l(wstr ptr long ptr) msvcrt._wcstol_l
@ cdecl _wcstombs_l(ptr ptr long ptr) msvcrt._wcstombs_l @ cdecl _wcstombs_l(ptr ptr long ptr) msvcrt._wcstombs_l
@ cdecl _wcstombs_s_l(ptr ptr long wstr long ptr) msvcrt._wcstombs_s_l @ cdecl _wcstombs_s_l(ptr ptr long wstr long ptr) msvcrt._wcstombs_s_l
@ cdecl -ret64 _wcstoui64(wstr ptr long) msvcrt._wcstoui64 @ cdecl -ret64 _wcstoui64(wstr ptr long) msvcrt._wcstoui64
......
...@@ -1159,7 +1159,7 @@ ...@@ -1159,7 +1159,7 @@
@ cdecl _wcstod_l(wstr ptr) msvcrt._wcstod_l @ cdecl _wcstod_l(wstr ptr) msvcrt._wcstod_l
@ cdecl -ret64 _wcstoi64(wstr ptr long) msvcrt._wcstoi64 @ cdecl -ret64 _wcstoi64(wstr ptr long) msvcrt._wcstoi64
@ cdecl -ret64 _wcstoi64_l(wstr ptr long ptr) msvcrt._wcstoi64_l @ cdecl -ret64 _wcstoi64_l(wstr ptr long ptr) msvcrt._wcstoi64_l
@ stub _wcstol_l @ cdecl _wcstol_l(wstr ptr long ptr) msvcrt._wcstol_l
@ cdecl _wcstombs_l(ptr ptr long ptr) msvcrt._wcstombs_l @ cdecl _wcstombs_l(ptr ptr long ptr) msvcrt._wcstombs_l
@ cdecl _wcstombs_s_l(ptr ptr long wstr long ptr) msvcrt._wcstombs_s_l @ cdecl _wcstombs_s_l(ptr ptr long wstr long ptr) msvcrt._wcstombs_s_l
@ cdecl -ret64 _wcstoui64(wstr ptr long) msvcrt._wcstoui64 @ cdecl -ret64 _wcstoui64(wstr ptr long) msvcrt._wcstoui64
......
...@@ -1123,7 +1123,7 @@ ...@@ -1123,7 +1123,7 @@
@ cdecl _wcstod_l(wstr ptr) MSVCRT__wcstod_l @ cdecl _wcstod_l(wstr ptr) MSVCRT__wcstod_l
@ cdecl -ret64 _wcstoi64(wstr ptr long) MSVCRT__wcstoi64 @ cdecl -ret64 _wcstoi64(wstr ptr long) MSVCRT__wcstoi64
@ cdecl -ret64 _wcstoi64_l(wstr ptr long ptr) MSVCRT__wcstoi64_l @ cdecl -ret64 _wcstoi64_l(wstr ptr long ptr) MSVCRT__wcstoi64_l
# stub _wcstol_l(wstr ptr long ptr) @ cdecl _wcstol_l(wstr ptr long ptr) MSVCRT__wcstol_l
@ cdecl _wcstombs_l(ptr ptr long ptr) MSVCRT__wcstombs_l @ cdecl _wcstombs_l(ptr ptr long ptr) MSVCRT__wcstombs_l
@ cdecl _wcstombs_s_l(ptr ptr long wstr long ptr) MSVCRT__wcstombs_s_l @ cdecl _wcstombs_s_l(ptr ptr long wstr long ptr) MSVCRT__wcstombs_s_l
@ cdecl -ret64 _wcstoui64(wstr ptr long) MSVCRT__wcstoui64 @ cdecl -ret64 _wcstoui64(wstr ptr long) MSVCRT__wcstoui64
......
...@@ -1613,6 +1613,24 @@ __int64 CDECL MSVCRT__wcstoi64(const MSVCRT_wchar_t *nptr, ...@@ -1613,6 +1613,24 @@ __int64 CDECL MSVCRT__wcstoi64(const MSVCRT_wchar_t *nptr,
} }
/********************************************************************* /*********************************************************************
* _wcstol_l (MSVCRT.@)
*/
MSVCRT_long CDECL MSVCRT__wcstol_l(const MSVCRT_wchar_t *s,
MSVCRT_wchar_t **end, int base, MSVCRT__locale_t locale)
{
__int64 ret = MSVCRT__wcstoi64_l(s, end, base, locale);
if(ret > MSVCRT_LONG_MAX) {
ret = MSVCRT_LONG_MAX;
*MSVCRT__errno() = MSVCRT_ERANGE;
}else if(ret < MSVCRT_LONG_MIN) {
ret = MSVCRT_LONG_MIN;
*MSVCRT__errno() = MSVCRT_ERANGE;
}
return ret;
}
/*********************************************************************
* _wtoi_l (MSVCRT.@) * _wtoi_l (MSVCRT.@)
*/ */
int __cdecl MSVCRT__wtoi_l(const MSVCRT_wchar_t *str, MSVCRT__locale_t locale) int __cdecl MSVCRT__wtoi_l(const MSVCRT_wchar_t *str, MSVCRT__locale_t locale)
......
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