diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/efgcvt.c | 15 | ||||
-rw-r--r-- | misc/efgcvt_r.c | 14 |
2 files changed, 9 insertions, 20 deletions
diff --git a/misc/efgcvt.c b/misc/efgcvt.c index 05a4253ac2..10a451152f 100644 --- a/misc/efgcvt.c +++ b/misc/efgcvt.c @@ -64,9 +64,8 @@ static char ECVT_BUFFER[MAXDIG]; libc_freeres_ptr (static char *FCVT_BUFPTR); char * -__APPEND (FUNC_PREFIX, fcvt) (value, ndigit, decpt, sign) - FLOAT_TYPE value; - int ndigit, *decpt, *sign; +__APPEND (FUNC_PREFIX, fcvt) (FLOAT_TYPE value, int ndigit, int *decpt, + int *sign) { if (FCVT_BUFPTR == NULL) { @@ -87,9 +86,8 @@ __APPEND (FUNC_PREFIX, fcvt) (value, ndigit, decpt, sign) char * -__APPEND (FUNC_PREFIX, ecvt) (value, ndigit, decpt, sign) - FLOAT_TYPE value; - int ndigit, *decpt, *sign; +__APPEND (FUNC_PREFIX, ecvt) (FLOAT_TYPE value, int ndigit, int *decpt, + int *sign) { (void) __APPEND (FUNC_PREFIX, ecvt_r) (value, ndigit, decpt, sign, ECVT_BUFFER, MAXDIG); @@ -98,10 +96,7 @@ __APPEND (FUNC_PREFIX, ecvt) (value, ndigit, decpt, sign) } char * -__APPEND (FUNC_PREFIX, gcvt) (value, ndigit, buf) - FLOAT_TYPE value; - int ndigit; - char *buf; +__APPEND (FUNC_PREFIX, gcvt) (FLOAT_TYPE value, int ndigit, char *buf) { sprintf (buf, "%.*" FLOAT_FMT_FLAG "g", MIN (ndigit, NDIGIT_MAX), value); return buf; diff --git a/misc/efgcvt_r.c b/misc/efgcvt_r.c index 2761222d87..9f599637d5 100644 --- a/misc/efgcvt_r.c +++ b/misc/efgcvt_r.c @@ -71,11 +71,8 @@ int -__APPEND (FUNC_PREFIX, fcvt_r) (value, ndigit, decpt, sign, buf, len) - FLOAT_TYPE value; - int ndigit, *decpt, *sign; - char *buf; - size_t len; +__APPEND (FUNC_PREFIX, fcvt_r) (FLOAT_TYPE value, int ndigit, int *decpt, + int *sign, char *buf, size_t len) { ssize_t n; ssize_t i; @@ -169,11 +166,8 @@ __APPEND (FUNC_PREFIX, fcvt_r) (value, ndigit, decpt, sign, buf, len) } int -__APPEND (FUNC_PREFIX, ecvt_r) (value, ndigit, decpt, sign, buf, len) - FLOAT_TYPE value; - int ndigit, *decpt, *sign; - char *buf; - size_t len; +__APPEND (FUNC_PREFIX, ecvt_r) (FLOAT_TYPE value, int ndigit, int *decpt, + int *sign, char *buf, size_t len) { int exponent = 0; |