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
3868bf06
Commit
3868bf06
authored
Oct 01, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 01, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add _wtoi64_l implementation.
parent
d99090af
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
41 additions
and
6 deletions
+41
-6
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+1
-1
msvcr110.spec
dlls/msvcr110/msvcr110.spec
+1
-1
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+1
-1
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+1
-1
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+2
-2
wcs.c
dlls/msvcrt/wcs.c
+35
-0
No files found.
dlls/msvcr100/msvcr100.spec
View file @
3868bf06
...
...
@@ -1609,7 +1609,7 @@
@ cdecl _wtof_l(wstr ptr) msvcrt._wtof_l
@ cdecl _wtoi(wstr) msvcrt._wtoi
@ cdecl -ret64 _wtoi64(wstr) msvcrt._wtoi64
@
stub
_wtoi64_l
@
cdecl -ret64 _wtoi64_l(wstr ptr) msvcrt.
_wtoi64_l
@ cdecl _wtoi_l(wstr ptr) msvcrt._wtoi_l
@ cdecl _wtol(wstr) msvcrt._wtol
@ cdecl _wtol_l(wstr ptr) msvcrt._wtol_l
...
...
dlls/msvcr110/msvcr110.spec
View file @
3868bf06
...
...
@@ -1967,7 +1967,7 @@
@ cdecl _wtof_l(wstr ptr) msvcrt._wtof_l
@ cdecl _wtoi(wstr) msvcrt._wtoi
@ cdecl -ret64 _wtoi64(wstr) msvcrt._wtoi64
@
stub
_wtoi64_l
@
cdecl -ret64 _wtoi64_l(wstr ptr) msvcrt.
_wtoi64_l
@ cdecl _wtoi_l(wstr ptr) msvcrt._wtoi_l
@ cdecl _wtol(wstr) msvcrt._wtol
@ cdecl _wtol_l(wstr ptr) msvcrt._wtol_l
...
...
dlls/msvcr80/msvcr80.spec
View file @
3868bf06
...
...
@@ -1291,7 +1291,7 @@
@ cdecl _wtof_l(wstr ptr) msvcrt._wtof_l
@ cdecl _wtoi(wstr) msvcrt._wtoi
@ cdecl -ret64 _wtoi64(wstr) msvcrt._wtoi64
@
stub
_wtoi64_l
@
cdecl -ret64 _wtoi64_l(wstr ptr) msvcrt.
_wtoi64_l
@ cdecl _wtoi_l(wstr ptr) msvcrt._wtoi_l
@ cdecl _wtol(wstr) msvcrt._wtol
@ cdecl _wtol_l(wstr ptr) msvcrt._wtol_l
...
...
dlls/msvcr90/msvcr90.spec
View file @
3868bf06
...
...
@@ -1264,7 +1264,7 @@
@ cdecl _wtof_l(wstr ptr) msvcrt._wtof_l
@ cdecl _wtoi(wstr) msvcrt._wtoi
@ cdecl -ret64 _wtoi64(wstr) msvcrt._wtoi64
@
stub
_wtoi64_l
@
cdecl -ret64 _wtoi64_l(wstr ptr) msvcrt.
_wtoi64_l
@ cdecl _wtoi_l(wstr ptr) msvcrt._wtoi_l
@ cdecl _wtol(wstr) msvcrt._wtol
@ cdecl _wtol_l(wstr ptr) msvcrt._wtol_l
...
...
dlls/msvcrt/msvcrt.spec
View file @
3868bf06
...
...
@@ -1229,8 +1229,8 @@
@ cdecl _wtof(wstr) MSVCRT__wtof
@ cdecl _wtof_l(wstr ptr) MSVCRT__wtof_l
@ cdecl _wtoi(wstr) MSVCRT__wtoi
@ cdecl -ret64 _wtoi64(wstr)
ntdll._wtoi64
# stub
-ret64 _wtoi64_l(wstr ptr)
@ cdecl -ret64 _wtoi64(wstr)
@ cdecl
-ret64 _wtoi64_l(wstr ptr)
@ cdecl _wtoi_l(wstr ptr) MSVCRT__wtoi_l
@ cdecl _wtol(wstr) MSVCRT__wtol
@ cdecl _wtol_l(wstr ptr) MSVCRT__wtol_l
...
...
dlls/msvcrt/wcs.c
View file @
3868bf06
...
...
@@ -1888,3 +1888,38 @@ MSVCRT_wchar_t* CDECL MSVCRT_wcsstr(const MSVCRT_wchar_t *str, const MSVCRT_wcha
{
return
strstrW
(
str
,
sub
);
}
/*********************************************************************
* _wtoi64_l (MSVCRT.@)
*/
__int64
CDECL
_wtoi64_l
(
const
MSVCRT_wchar_t
*
str
,
MSVCRT__locale_t
locale
)
{
ULONGLONG
RunningTotal
=
0
;
char
bMinus
=
0
;
while
(
isspaceW
(
*
str
))
{
str
++
;
}
/* while */
if
(
*
str
==
'+'
)
{
str
++
;
}
else
if
(
*
str
==
'-'
)
{
bMinus
=
1
;
str
++
;
}
/* if */
while
(
*
str
>=
'0'
&&
*
str
<=
'9'
)
{
RunningTotal
=
RunningTotal
*
10
+
*
str
-
'0'
;
str
++
;
}
/* while */
return
bMinus
?
-
RunningTotal
:
RunningTotal
;
}
/*********************************************************************
* _wtoi64 (MSVCRT.@)
*/
__int64
CDECL
_wtoi64
(
const
MSVCRT_wchar_t
*
str
)
{
return
_wtoi64_l
(
str
,
NULL
);
}
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