diff options
author | Martynas Venckus <martynas@cvs.openbsd.org> | 2009-08-07 00:14:05 +0000 |
---|---|---|
committer | Martynas Venckus <martynas@cvs.openbsd.org> | 2009-08-07 00:14:05 +0000 |
commit | 13769bdf71050cd4509f3dfcce063834ca44be24 (patch) | |
tree | cef6cab57ded07169839095b1a38cbfc943a7ff4 /lib | |
parent | e2d8aa4d1438f3aaf0756806fe951770ef8b2045 (diff) |
define substitution in some cases might happen after prototypes are
already pulled; so manually substitute protos ensuring they will
always be right; ok millert@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gdtoa/gdtoa.h | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/lib/libc/gdtoa/gdtoa.h b/lib/libc/gdtoa/gdtoa.h index e59ebf65d08..3cd95292088 100644 --- a/lib/libc/gdtoa/gdtoa.h +++ b/lib/libc/gdtoa/gdtoa.h @@ -103,49 +103,49 @@ enum { /* FPI.rounding values: same as FLT_ROUNDS */ extern "C" { #endif -extern char* dtoa ANSI((double d, int mode, int ndigits, int *decpt, +extern char* __dtoa ANSI((double d, int mode, int ndigits, int *decpt, int *sign, char **rve)); -extern char* gdtoa ANSI((FPI *fpi, int be, ULong *bits, int *kindp, +extern char* __gdtoa ANSI((FPI *fpi, int be, ULong *bits, int *kindp, int mode, int ndigits, int *decpt, char **rve)); -extern void freedtoa ANSI((char*)); -extern float strtof ANSI((CONST char *, char **)); -extern double strtod ANSI((CONST char *, char **)); -extern int strtodg ANSI((CONST char*, char**, FPI*, Long*, ULong*)); - -extern char* g_ddfmt ANSI((char*, double*, int, size_t)); -extern char* g_dfmt ANSI((char*, double*, int, size_t)); -extern char* g_ffmt ANSI((char*, float*, int, size_t)); -extern char* g_Qfmt ANSI((char*, void*, int, size_t)); -extern char* g_xfmt ANSI((char*, void*, int, size_t)); -extern char* g_xLfmt ANSI((char*, void*, int, size_t)); - -extern int strtoId ANSI((CONST char*, char**, double*, double*)); -extern int strtoIdd ANSI((CONST char*, char**, double*, double*)); -extern int strtoIf ANSI((CONST char*, char**, float*, float*)); -extern int strtoIQ ANSI((CONST char*, char**, void*, void*)); -extern int strtoIx ANSI((CONST char*, char**, void*, void*)); -extern int strtoIxL ANSI((CONST char*, char**, void*, void*)); -extern int strtord ANSI((CONST char*, char**, int, double*)); -extern int strtordd ANSI((CONST char*, char**, int, double*)); -extern int strtorf ANSI((CONST char*, char**, int, float*)); -extern int strtorQ ANSI((CONST char*, char**, int, void*)); -extern int strtorx ANSI((CONST char*, char**, int, void*)); -extern int strtorxL ANSI((CONST char*, char**, int, void*)); +extern void __freedtoa ANSI((char*)); +extern float __strtof ANSI((CONST char *, char **)); +extern double __strtod ANSI((CONST char *, char **)); +extern int __strtodg ANSI((CONST char*, char**, FPI*, Long*, ULong*)); + +extern char* __g_ddfmt ANSI((char*, double*, int, size_t)); +extern char* __g_dfmt ANSI((char*, double*, int, size_t)); +extern char* __g_ffmt ANSI((char*, float*, int, size_t)); +extern char* __g_Qfmt ANSI((char*, void*, int, size_t)); +extern char* __g_xfmt ANSI((char*, void*, int, size_t)); +extern char* __g_xLfmt ANSI((char*, void*, int, size_t)); + +extern int __strtoId ANSI((CONST char*, char**, double*, double*)); +extern int __strtoIdd ANSI((CONST char*, char**, double*, double*)); +extern int __strtoIf ANSI((CONST char*, char**, float*, float*)); +extern int __strtoIQ ANSI((CONST char*, char**, void*, void*)); +extern int __strtoIx ANSI((CONST char*, char**, void*, void*)); +extern int __strtoIxL ANSI((CONST char*, char**, void*, void*)); +extern int __strtord ANSI((CONST char*, char**, int, double*)); +extern int __strtordd ANSI((CONST char*, char**, int, double*)); +extern int __strtorf ANSI((CONST char*, char**, int, float*)); +extern int __strtorQ ANSI((CONST char*, char**, int, void*)); +extern int __strtorx ANSI((CONST char*, char**, int, void*)); +extern int __strtorxL ANSI((CONST char*, char**, int, void*)); #if 1 -extern int strtodI ANSI((CONST char*, char**, double*)); -extern int strtopd ANSI((CONST char*, char**, double*)); -extern int strtopdd ANSI((CONST char*, char**, double*)); -extern int strtopf ANSI((CONST char*, char**, float*)); -extern int strtopQ ANSI((CONST char*, char**, void*)); -extern int strtopx ANSI((CONST char*, char**, void*)); -extern int strtopxL ANSI((CONST char*, char**, void*)); +extern int __strtodI ANSI((CONST char*, char**, double*)); +extern int __strtopd ANSI((CONST char*, char**, double*)); +extern int __strtopdd ANSI((CONST char*, char**, double*)); +extern int __strtopf ANSI((CONST char*, char**, float*)); +extern int __strtopQ ANSI((CONST char*, char**, void*)); +extern int __strtopx ANSI((CONST char*, char**, void*)); +extern int __strtopxL ANSI((CONST char*, char**, void*)); #else -#define strtopd(s,se,x) strtord(s,se,1,x) -#define strtopdd(s,se,x) strtordd(s,se,1,x) -#define strtopf(s,se,x) strtorf(s,se,1,x) -#define strtopQ(s,se,x) strtorQ(s,se,1,x) -#define strtopx(s,se,x) strtorx(s,se,1,x) -#define strtopxL(s,se,x) strtorxL(s,se,1,x) +#define __strtopd(s,se,x) strtord(s,se,1,x) +#define __strtopdd(s,se,x) strtordd(s,se,1,x) +#define __strtopf(s,se,x) strtorf(s,se,1,x) +#define __strtopQ(s,se,x) strtorQ(s,se,1,x) +#define __strtopx(s,se,x) strtorx(s,se,1,x) +#define __strtopxL(s,se,x) strtorxL(s,se,1,x) #endif #ifdef __cplusplus |