diff options
-rw-r--r-- | acinclude.m4 | 3 | ||||
-rw-r--r-- | mpfr.texi | 2 | ||||
-rw-r--r-- | tests/tfprintf.c | 2 | ||||
-rw-r--r-- | tests/tprintf.c | 2 | ||||
-rw-r--r-- | vasprintf.c | 9 |
5 files changed, 4 insertions, 14 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index a9b7b6f11..0a1e42046 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -118,9 +118,6 @@ dnl check for long long AC_CHECK_TYPE([long long int], AC_DEFINE(HAVE_LONG_LONG, 1, [Define if compiler supports long long]),,) -AC_CHECK_TYPE([quad_t], - AC_DEFINE(HAVE_QUAD_T, 1, [Define if compiler supports quad_t]),,) - AC_CHECK_TYPE( [union fpc_csr], AC_DEFINE(HAVE_FPC_CSR,1,[Define if union fpc_csr is available]), , [ @@ -1913,7 +1913,7 @@ The format specification accepted by @code{mpfr_printf} is an extension of the @code{printf}. @code{mpfr_printf} is an extension to the @code{gmp_printf} function, hence it accepts the same @samp{type} specifiers (except 'q', the one for quad_t and -u_quad_t) plus the following two: +u_quad_t which is not supported) plus the following two: @quotation @multitable {(space)} {MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM} @item @samp{R} @tab @code{mpfr_t} input, float conversions diff --git a/tests/tfprintf.c b/tests/tfprintf.c index 2886a907c..bc6587302 100644 --- a/tests/tfprintf.c +++ b/tests/tfprintf.c @@ -202,8 +202,6 @@ check_mixed (FILE *fout) MPFR_ASSERTN (mpq_cmp_ui (mpq, 31, 1) == 0); check_vfprintf (fout, "a. %lli, b. %Rf%Fn\n", llo, mpfr, &mpf); MPFR_ASSERTN (mpf_cmp_ui (mpf, 12) == 0); - check_vfprintf (fout, "a. %qi, b. %Rf%qn\n", llo, mpfr, &ullo); - MPFR_ASSERTN (ullo == 12); #endif #ifdef _MPFR_H_HAVE_INTMAX_T diff --git a/tests/tprintf.c b/tests/tprintf.c index 6ad6ea7fa..e6ffb0818 100644 --- a/tests/tprintf.c +++ b/tests/tprintf.c @@ -201,8 +201,6 @@ check_mixed () MPFR_ASSERTN (mpq_cmp_ui (mpq, 31, 1) == 0); check_vprintf ("a. %lli, b. %Rf%Fn", llo, mpfr, &mpf); MPFR_ASSERTN (mpf_cmp_ui (mpf, 12) == 0); - check_vprintf ("a. %qi, b. %Rf%qn", llo, mpfr, &ullo); - MPFR_ASSERTN (ullo == 12); #endif #ifdef _MPFR_H_HAVE_INTMAX_T diff --git a/vasprintf.c b/vasprintf.c index 3c895c1eb..5c207c43a 100644 --- a/vasprintf.c +++ b/vasprintf.c @@ -254,12 +254,9 @@ parse_arg_type (const char *format, struct printf_spec *specinfo) break; } case 'q': + /* quad_t and unsigned quad_t are not supported */ ++format; -#ifdef HAVE_QUAD_T - specinfo->arg_type = LONG_LONG_ARG; -#else specinfo->arg_type = UNSUPPORTED; -#endif break; case 'j': ++format; @@ -1907,8 +1904,8 @@ mpfr_vasprintf (char **ptr, const char *fmt, va_list ap) else if (spec.spec == 'n') /* put the number of characters written so far in the location pointed by the next va_list argument; the types of pointer accepted are the - same as in GMP (except quad_t) plus pointer to a mpfr_t so as to be - able to accept the same format strings. */ + same as in GMP (except unsupported quad_t) plus pointer to a mpfr_t + so as to be able to accept the same format strings. */ { void *p; size_t nchar; |