From c1c5de21a90a5b958e13d151e7484983bf701fe3 Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Mon, 19 Sep 2005 09:48:08 +0000 Subject: * include/stdlib.h (strtof): Add prototype. Uglify parameter names in inline definition. (wcstof): Likewise. (_Exit): Uglify parameter names in inline definition. (llabs): Add prototype. (_set_error_mode): Add prototype and input defines. --- winsup/mingw/ChangeLog | 9 +++++++++ winsup/mingw/include/stdlib.h | 22 ++++++++++++++++------ 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index 1d20520..63f0f49 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,3 +1,12 @@ +2005-09-19 Danny Smith + + * include/stdlib.h (strtof): Add prototype. Uglify + parameter names in inline definition. + (wcstof): Likewise. + (_Exit): Uglify parameter names in inline definition. + (llabs): Add prototype. + (_set_error_mode): Add prototype and input defines. + 2005-08-25 Danny Smith * mingwex/fe*.c: Revert previous changes. diff --git a/winsup/mingw/include/stdlib.h b/winsup/mingw/include/stdlib.h index 0c66575..07a6b42 100644 --- a/winsup/mingw/include/stdlib.h +++ b/winsup/mingw/include/stdlib.h @@ -310,8 +310,9 @@ _CRTIMP long __cdecl _wtol (const wchar_t *); #endif _CRTIMP double __cdecl strtod (const char*, char**); #if !defined __NO_ISOCEXT /* extern stub in static libmingwex.a */ -__CRT_INLINE float __cdecl strtof (const char *nptr, char **endptr) - { return (strtod (nptr, endptr));} +float __cdecl strtof (const char *, char **); +__CRT_INLINE float __cdecl strtof (const char *__nptr, char **__endptr) + { return (strtod (__nptr, __endptr));} long double __cdecl strtold (const char * __restrict__, char ** __restrict__); #endif /* __NO_ISOCEXT */ @@ -322,8 +323,9 @@ _CRTIMP unsigned long __cdecl strtoul (const char*, char**, int); /* also declared in wchar.h */ _CRTIMP double __cdecl wcstod (const wchar_t*, wchar_t**); #if !defined __NO_ISOCEXT /* extern stub in static libmingwex.a */ -__CRT_INLINE float __cdecl wcstof( const wchar_t *nptr, wchar_t **endptr) -{ return (wcstod(nptr, endptr)); } +float __cdecl wcstof( const wchar_t *, wchar_t **); +__CRT_INLINE float __cdecl wcstof( const wchar_t *__nptr, wchar_t **__endptr) +{ return (wcstod(__nptr, __endptr)); } long double __cdecl wcstold (const wchar_t * __restrict__, wchar_t ** __restrict__); #endif /* __NO_ISOCEXT */ @@ -434,6 +436,13 @@ _CRTIMP unsigned int __cdecl _rotl(unsigned int, int) __MINGW_ATTRIB_CONST; _CRTIMP unsigned int __cdecl _rotr(unsigned int, int) __MINGW_ATTRIB_CONST; _CRTIMP unsigned long __cdecl _lrotl(unsigned long, int) __MINGW_ATTRIB_CONST; _CRTIMP unsigned long __cdecl _lrotr(unsigned long, int) __MINGW_ATTRIB_CONST; + +_CRTIMP int __cdecl _set_error_mode (int); +#define _OUT_TO_DEFAULT 0 +#define _OUT_TO_STDERR 1 +#define _OUT_TO_MSGBOX 2 +#define _REPORT_ERRMODE 3 + #endif #ifndef _NO_OLDNAMES @@ -460,14 +469,15 @@ _CRTIMP char* __cdecl gcvt (double, int, char*); /* C99 name for _exit */ void __cdecl _Exit(int) __MINGW_ATTRIB_NORETURN; #ifndef __STRICT_ANSI__ /* inline using non-ansi functions */ -__CRT_INLINE void __cdecl _Exit(int status) - { _exit(status); } +__CRT_INLINE void __cdecl _Exit(int __status) + { _exit (__status); } #endif typedef struct { long long quot, rem; } lldiv_t; lldiv_t __cdecl lldiv (long long, long long) __MINGW_ATTRIB_CONST; +long long __cdecl llabs(long long); __CRT_INLINE long long __cdecl llabs(long long _j) {return (_j >= 0 ? _j : -_j);} -- cgit v1.1