msvcrt: Add _wcstol_l implementation.
This commit is contained in:
parent
5dc468f025
commit
679542419a
|
@ -1505,7 +1505,7 @@
|
|||
@ cdecl _wcstod_l(wstr ptr) msvcrt._wcstod_l
|
||||
@ cdecl -ret64 _wcstoi64(wstr ptr long) msvcrt._wcstoi64
|
||||
@ 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_s_l(ptr ptr long wstr long ptr) msvcrt._wcstombs_s_l
|
||||
@ cdecl -ret64 _wcstoui64(wstr ptr long) msvcrt._wcstoui64
|
||||
|
|
|
@ -1868,7 +1868,7 @@
|
|||
@ cdecl _wcstod_l(wstr ptr) msvcrt._wcstod_l
|
||||
@ cdecl -ret64 _wcstoi64(wstr ptr long) msvcrt._wcstoi64
|
||||
@ 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_s_l(ptr ptr long wstr long ptr) msvcrt._wcstombs_s_l
|
||||
@ cdecl -ret64 _wcstoui64(wstr ptr long) msvcrt._wcstoui64
|
||||
|
|
|
@ -1183,7 +1183,7 @@
|
|||
@ cdecl _wcstod_l(wstr ptr) msvcrt._wcstod_l
|
||||
@ cdecl -ret64 _wcstoi64(wstr ptr long) msvcrt._wcstoi64
|
||||
@ 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_s_l(ptr ptr long wstr long ptr) msvcrt._wcstombs_s_l
|
||||
@ cdecl -ret64 _wcstoui64(wstr ptr long) msvcrt._wcstoui64
|
||||
|
|
|
@ -1159,7 +1159,7 @@
|
|||
@ cdecl _wcstod_l(wstr ptr) msvcrt._wcstod_l
|
||||
@ cdecl -ret64 _wcstoi64(wstr ptr long) msvcrt._wcstoi64
|
||||
@ 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_s_l(ptr ptr long wstr long ptr) msvcrt._wcstombs_s_l
|
||||
@ cdecl -ret64 _wcstoui64(wstr ptr long) msvcrt._wcstoui64
|
||||
|
|
|
@ -1123,7 +1123,7 @@
|
|||
@ cdecl _wcstod_l(wstr ptr) MSVCRT__wcstod_l
|
||||
@ cdecl -ret64 _wcstoi64(wstr ptr long) MSVCRT__wcstoi64
|
||||
@ 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_s_l(ptr ptr long wstr long ptr) MSVCRT__wcstombs_s_l
|
||||
@ cdecl -ret64 _wcstoui64(wstr ptr long) MSVCRT__wcstoui64
|
||||
|
|
|
@ -1612,6 +1612,24 @@ __int64 CDECL MSVCRT__wcstoi64(const MSVCRT_wchar_t *nptr,
|
|||
return MSVCRT__wcstoi64_l(nptr, endptr, base, NULL);
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* _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.@)
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue