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
3b5ab1b4
Commit
3b5ab1b4
authored
Dec 17, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Dec 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Added _atodbl_l implementation.
parent
38bf8ac4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
2 deletions
+31
-2
msvcrt.h
dlls/msvcrt/msvcrt.h
+6
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+2
-2
string.c
dlls/msvcrt/string.c
+23
-0
No files found.
dlls/msvcrt/msvcrt.h
View file @
3b5ab1b4
...
...
@@ -986,6 +986,7 @@ int pf_printf_w(puts_clbk_w, void*, const MSVCRT_wchar_t*, MSVCRT__locale_t,
printf_arg
arg_clbk_valist
(
void
*
,
int
,
int
,
__ms_va_list
*
)
DECLSPEC_HIDDEN
;
#define MSVCRT_FLT_MIN 1.175494351e-38F
#define MSVCRT_DBL_MIN 2.2250738585072014e-308
#define MSVCRT__OVERFLOW 3
#define MSVCRT__UNDERFLOW 4
...
...
@@ -994,4 +995,9 @@ typedef struct
float
f
;
}
MSVCRT__CRT_FLOAT
;
typedef
struct
{
double
x
;
}
MSVCRT__CRT_DOUBLE
;
#endif
/* __WINE_MSVCRT_H */
dlls/msvcrt/msvcrt.spec
View file @
3b5ab1b4
...
...
@@ -300,8 +300,8 @@
# stub _aligned_realloc_dbg(ptr long long str long)
@ cdecl _amsg_exit(long)
@ cdecl _assert(str str long) MSVCRT__assert
@
stub _atodbl(ptr str)
# stub _atodbl_l(ptr str ptr)
@
cdecl _atodbl(ptr str) MSVCRT__atodbl
@ cdecl _atodbl_l(ptr str ptr) MSVCRT__atodbl_l
@ cdecl _atof_l(str ptr) MSVCRT__atof_l
@ cdecl _atoflt_l(ptr str ptr) MSVCRT__atoflt_l
@ cdecl -ret64 _atoi64(str) ntdll._atoi64
...
...
dlls/msvcrt/string.c
View file @
3b5ab1b4
...
...
@@ -455,6 +455,29 @@ int CDECL MSVCRT__atoflt_l( MSVCRT__CRT_FLOAT *value, char *str, MSVCRT__locale_
}
/*********************************************************************
* _atodbl_l (MSVCRT.@)
*/
int
CDECL
MSVCRT__atodbl_l
(
MSVCRT__CRT_DOUBLE
*
value
,
char
*
str
,
MSVCRT__locale_t
locale
)
{
int
err
;
value
->
x
=
strtod_helper
(
str
,
NULL
,
locale
,
&
err
);
if
(
isinf
(
value
->
x
))
return
MSVCRT__OVERFLOW
;
if
((
value
->
x
!=
0
||
err
)
&&
value
->
x
>-
MSVCRT_DBL_MIN
&&
value
->
x
<
MSVCRT_DBL_MIN
)
return
MSVCRT__UNDERFLOW
;
return
0
;
}
/*********************************************************************
* _atodbl (MSVCRT.@)
*/
int
CDECL
MSVCRT__atodbl
(
MSVCRT__CRT_DOUBLE
*
value
,
char
*
str
)
{
return
MSVCRT__atodbl_l
(
value
,
str
,
NULL
);
}
/*********************************************************************
* _strcoll_l (MSVCRT.@)
*/
int
CDECL
MSVCRT_strcoll_l
(
const
char
*
str1
,
const
char
*
str2
,
MSVCRT__locale_t
locale
)
...
...
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