diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2020-08-21 13:31:33 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2020-08-21 13:31:33 +0000 |
commit | cf07612e0309cb9ce623c74cd7933364a9ca2dce (patch) | |
tree | 4259496b625979543ed65533984088910ed81368 /src/strtofr.c | |
parent | 589e4748934cf2108be8564665f73bf1c4be4056 (diff) | |
download | mpfr-cf07612e0309cb9ce623c74cd7933364a9ca2dce.tar.gz |
[src,tests] Consistency: in prototypes, changed
const mpfr_t to mpfr_srcptr
mpfr_t to mpfr_ptr
(except for mpfr_t *), as this is equivalent (the array is converted
to a pointer) and the mpfr_srcptr/mpfr_ptr form is the usual one.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14103 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/strtofr.c')
-rw-r--r-- | src/strtofr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/strtofr.c b/src/strtofr.c index c6aeb7391..f45fd5516 100644 --- a/src/strtofr.c +++ b/src/strtofr.c @@ -226,7 +226,7 @@ fast_casecmp (const char *s1, const char *s2) BUT if it returns 0 (NAN or INF), the ternary value is also '0' (ie NAN and INF are exact) */ static int -parse_string (mpfr_t x, struct parsed_string *pstr, +parse_string (mpfr_ptr x, struct parsed_string *pstr, const char **string, int base) { const char *str = *string; @@ -451,7 +451,7 @@ parse_string (mpfr_t x, struct parsed_string *pstr, and the precision of x. Returns the ternary value. */ static int -parsed_string_to_mpfr (mpfr_t x, struct parsed_string *pstr, mpfr_rnd_t rnd) +parsed_string_to_mpfr (mpfr_ptr x, struct parsed_string *pstr, mpfr_rnd_t rnd) { mpfr_prec_t precx, prec, ysize_bits, pstr_size; mpfr_exp_t exp; @@ -934,7 +934,7 @@ free_parsed_string (struct parsed_string *pstr) } int -mpfr_strtofr (mpfr_t x, const char *string, char **end, int base, +mpfr_strtofr (mpfr_ptr x, const char *string, char **end, int base, mpfr_rnd_t rnd) { int res; |