mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 06:00:45 +00:00
msvcrt: Add _atoldbl.
This commit is contained in:
parent
dc9f384370
commit
6c04a187d2
2
configure
vendored
2
configure
vendored
@ -15843,6 +15843,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for ac_func in \
|
for ac_func in \
|
||||||
@ -15910,6 +15911,7 @@ for ac_func in \
|
|||||||
strcasecmp \
|
strcasecmp \
|
||||||
strerror \
|
strerror \
|
||||||
strncasecmp \
|
strncasecmp \
|
||||||
|
strtold \
|
||||||
tcgetattr \
|
tcgetattr \
|
||||||
timegm \
|
timegm \
|
||||||
usleep \
|
usleep \
|
||||||
|
@ -1228,6 +1228,7 @@ AC_CHECK_FUNCS(\
|
|||||||
strcasecmp \
|
strcasecmp \
|
||||||
strerror \
|
strerror \
|
||||||
strncasecmp \
|
strncasecmp \
|
||||||
|
strtold \
|
||||||
tcgetattr \
|
tcgetattr \
|
||||||
timegm \
|
timegm \
|
||||||
usleep \
|
usleep \
|
||||||
|
@ -70,6 +70,8 @@ typedef void (*MSVCRT__beginthread_start_routine_t)(void *);
|
|||||||
typedef unsigned int (__stdcall *MSVCRT__beginthreadex_start_routine_t)(void *);
|
typedef unsigned int (__stdcall *MSVCRT__beginthreadex_start_routine_t)(void *);
|
||||||
typedef int (*MSVCRT__onexit_t)(void);
|
typedef int (*MSVCRT__onexit_t)(void);
|
||||||
|
|
||||||
|
typedef struct {long double x;} _LDOUBLE;
|
||||||
|
|
||||||
struct MSVCRT_tm {
|
struct MSVCRT_tm {
|
||||||
int tm_sec;
|
int tm_sec;
|
||||||
int tm_min;
|
int tm_min;
|
||||||
|
@ -166,7 +166,7 @@
|
|||||||
@ cdecl _assert(str str long) MSVCRT__assert
|
@ cdecl _assert(str str long) MSVCRT__assert
|
||||||
@ stub _atodbl #(ptr str)
|
@ stub _atodbl #(ptr str)
|
||||||
@ cdecl -ret64 _atoi64(str) ntdll._atoi64
|
@ cdecl -ret64 _atoi64(str) ntdll._atoi64
|
||||||
@ stub _atoldbl #(ptr str)
|
@ cdecl _atoldbl(ptr str) MSVCRT__atoldbl
|
||||||
@ cdecl _beep(long long)
|
@ cdecl _beep(long long)
|
||||||
@ cdecl _beginthread (ptr long ptr)
|
@ cdecl _beginthread (ptr long ptr)
|
||||||
@ cdecl _beginthreadex (ptr long ptr ptr long ptr)
|
@ cdecl _beginthreadex (ptr long ptr ptr long ptr)
|
||||||
|
@ -21,6 +21,9 @@
|
|||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define _ISOC99_SOURCE
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "msvcrt.h"
|
#include "msvcrt.h"
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
@ -184,3 +187,18 @@ int CDECL MSVCRT__stricoll( const char* str1, const char* str2 )
|
|||||||
TRACE("str1 %s str2 %s\n", debugstr_a(str1), debugstr_a(str2));
|
TRACE("str1 %s str2 %s\n", debugstr_a(str1), debugstr_a(str2));
|
||||||
return lstrcmpiA( str1, str2 );
|
return lstrcmpiA( str1, str2 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/********************************************************************
|
||||||
|
* _atoldbl (MSVCRT.@)
|
||||||
|
*/
|
||||||
|
int CDECL MSVCRT__atoldbl(_LDOUBLE * value, char * str)
|
||||||
|
{
|
||||||
|
/* FIXME needs error checking for huge/small values */
|
||||||
|
#ifdef HAVE_STRTOLD
|
||||||
|
TRACE("str %s value %p\n",str,value);
|
||||||
|
value->x = strtold(str,0);
|
||||||
|
#else
|
||||||
|
FIXME("stub, str %s value %p\n",str,value);
|
||||||
|
#endif
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
@ -666,6 +666,9 @@
|
|||||||
/* Define to 1 if you have the `strncasecmp' function. */
|
/* Define to 1 if you have the `strncasecmp' function. */
|
||||||
#undef HAVE_STRNCASECMP
|
#undef HAVE_STRNCASECMP
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `strtold' function. */
|
||||||
|
#undef HAVE_STRTOLD
|
||||||
|
|
||||||
/* Define to 1 if `direction' is member of `struct ff_effect'. */
|
/* Define to 1 if `direction' is member of `struct ff_effect'. */
|
||||||
#undef HAVE_STRUCT_FF_EFFECT_DIRECTION
|
#undef HAVE_STRUCT_FF_EFFECT_DIRECTION
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user