msvcrt: Add _atoldbl.

oldstable
Louis Lenders 2006-12-17 17:56:50 +00:00 committed by Alexandre Julliard
parent dc9f384370
commit 6c04a187d2
6 changed files with 27 additions and 1 deletions

2
configure vendored
View File

@ -15843,6 +15843,7 @@ fi
for ac_func in \
@ -15910,6 +15911,7 @@ for ac_func in \
strcasecmp \
strerror \
strncasecmp \
strtold \
tcgetattr \
timegm \
usleep \

View File

@ -1228,6 +1228,7 @@ AC_CHECK_FUNCS(\
strcasecmp \
strerror \
strncasecmp \
strtold \
tcgetattr \
timegm \
usleep \

View File

@ -70,6 +70,8 @@ typedef void (*MSVCRT__beginthread_start_routine_t)(void *);
typedef unsigned int (__stdcall *MSVCRT__beginthreadex_start_routine_t)(void *);
typedef int (*MSVCRT__onexit_t)(void);
typedef struct {long double x;} _LDOUBLE;
struct MSVCRT_tm {
int tm_sec;
int tm_min;

View File

@ -166,7 +166,7 @@
@ cdecl _assert(str str long) MSVCRT__assert
@ stub _atodbl #(ptr str)
@ cdecl -ret64 _atoi64(str) ntdll._atoi64
@ stub _atoldbl #(ptr str)
@ cdecl _atoldbl(ptr str) MSVCRT__atoldbl
@ cdecl _beep(long long)
@ cdecl _beginthread (ptr long ptr)
@ cdecl _beginthreadex (ptr long ptr ptr long ptr)

View File

@ -21,6 +21,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define _ISOC99_SOURCE
#include "config.h"
#include <stdlib.h>
#include "msvcrt.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));
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;
}

View File

@ -666,6 +666,9 @@
/* Define to 1 if you have the `strncasecmp' function. */
#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'. */
#undef HAVE_STRUCT_FF_EFFECT_DIRECTION