+2007-04-06 Bruno Haible <bruno@clisp.org>
+
+ * printf-args.h: Assume HAVE_LONG_DOUBLE to be true.
+ * printf-args.c: Likewise.
+ * printf-parse.c: Likewise.
+ * vasnprintf.c: Likewise.
+
2007-03-25 Bruno Haible <bruno@clisp.org>
- * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
+ * printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
(PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
2007-03-04 Bruno Haible <bruno@clisp.org>
case TYPE_DOUBLE:
ap->a.a_double = va_arg (args, double);
break;
-#if HAVE_LONG_DOUBLE
case TYPE_LONGDOUBLE:
ap->a.a_longdouble = va_arg (args, long double);
break;
-#endif
case TYPE_CHAR:
ap->a.a_char = va_arg (args, int);
break;
TYPE_ULONGLONGINT,
#endif
TYPE_DOUBLE,
-#if HAVE_LONG_DOUBLE
TYPE_LONGDOUBLE,
-#endif
TYPE_CHAR,
#if HAVE_WINT_T
TYPE_WIDE_CHAR,
#endif
float a_float;
double a_double;
-#if HAVE_LONG_DOUBLE
long double a_longdouble;
-#endif
int a_char;
#if HAVE_WINT_T
wint_t a_wide_char;
break;
case 'f': case 'F': case 'e': case 'E': case 'g': case 'G':
case 'a': case 'A':
-#if HAVE_LONG_DOUBLE
if (flags >= 16 || (flags & 4))
type = TYPE_LONGDOUBLE;
else
-#endif
- type = TYPE_DOUBLE;
+ type = TYPE_DOUBLE;
break;
case 'c':
if (flags >= 8)
break;
case 'f': case 'F':
-# if HAVE_LONG_DOUBLE
if (type == TYPE_LONGDOUBLE)
tmp_length =
(unsigned int) (LDBL_MAX_EXP
+ 1 /* turn floor into ceil */
+ 10; /* sign, decimal point etc. */
else
-# endif
tmp_length =
(unsigned int) (DBL_MAX_EXP
* 0.30103 /* binary -> decimal */
break;
case 'a': case 'A':
-# if HAVE_LONG_DOUBLE
if (type == TYPE_LONGDOUBLE)
tmp_length =
(unsigned int) (LDBL_DIG
)
+ 1; /* turn floor into ceil */
else
-# endif
tmp_length =
(unsigned int) (DBL_DIG
* 0.831 /* decimal -> hexadecimal */
#endif
*p++ = 'l';
break;
-#if HAVE_LONG_DOUBLE
case TYPE_LONGDOUBLE:
*p++ = 'L';
break;
-#endif
default:
break;
}
SNPRINTF_BUF (arg);
}
break;
-#if HAVE_LONG_DOUBLE
case TYPE_LONGDOUBLE:
{
long double arg = a.arg[dp->arg_index].a.a_longdouble;
SNPRINTF_BUF (arg);
}
break;
-#endif
case TYPE_CHAR:
{
int arg = a.arg[dp->arg_index].a.a_char;
+2007-04-06 Bruno Haible <bruno@clisp.org>
+
+ * printf-args.h: Assume HAVE_LONG_DOUBLE to be true.
+ * printf-args.c: Likewise.
+ * printf-parse.c: Likewise.
+ * vasnprintf.c: Likewise.
+
2007-03-29 Bruno Haible <bruno@clisp.org>
* Makefile.am (DEFS): New variable.
2007-03-25 Bruno Haible <bruno@clisp.org>
- * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
+ * printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
(PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
2007-02-25 Bruno Haible <bruno@clisp.org>
case TYPE_DOUBLE:
ap->a.a_double = va_arg (args, double);
break;
-#if HAVE_LONG_DOUBLE
case TYPE_LONGDOUBLE:
ap->a.a_longdouble = va_arg (args, long double);
break;
-#endif
case TYPE_CHAR:
ap->a.a_char = va_arg (args, int);
break;
TYPE_ULONGLONGINT,
#endif
TYPE_DOUBLE,
-#if HAVE_LONG_DOUBLE
TYPE_LONGDOUBLE,
-#endif
TYPE_CHAR,
#if HAVE_WINT_T
TYPE_WIDE_CHAR,
#endif
float a_float;
double a_double;
-#if HAVE_LONG_DOUBLE
long double a_longdouble;
-#endif
int a_char;
#if HAVE_WINT_T
wint_t a_wide_char;
break;
case 'f': case 'F': case 'e': case 'E': case 'g': case 'G':
case 'a': case 'A':
-#if HAVE_LONG_DOUBLE
if (flags >= 16 || (flags & 4))
type = TYPE_LONGDOUBLE;
else
-#endif
- type = TYPE_DOUBLE;
+ type = TYPE_DOUBLE;
break;
case 'c':
if (flags >= 8)
break;
case 'f': case 'F':
-# if HAVE_LONG_DOUBLE
if (type == TYPE_LONGDOUBLE)
tmp_length =
(unsigned int) (LDBL_MAX_EXP
+ 1 /* turn floor into ceil */
+ 10; /* sign, decimal point etc. */
else
-# endif
tmp_length =
(unsigned int) (DBL_MAX_EXP
* 0.30103 /* binary -> decimal */
break;
case 'a': case 'A':
-# if HAVE_LONG_DOUBLE
if (type == TYPE_LONGDOUBLE)
tmp_length =
(unsigned int) (LDBL_DIG
)
+ 1; /* turn floor into ceil */
else
-# endif
tmp_length =
(unsigned int) (DBL_DIG
* 0.831 /* decimal -> hexadecimal */
#endif
*p++ = 'l';
break;
-#if HAVE_LONG_DOUBLE
case TYPE_LONGDOUBLE:
*p++ = 'L';
break;
-#endif
default:
break;
}
SNPRINTF_BUF (arg);
}
break;
-#if HAVE_LONG_DOUBLE
case TYPE_LONGDOUBLE:
{
long double arg = a.arg[dp->arg_index].a.a_longdouble;
SNPRINTF_BUF (arg);
}
break;
-#endif
case TYPE_CHAR:
{
int arg = a.arg[dp->arg_index].a.a_char;
Assume the 'long double' type.
* longdouble.m4: Remove file.
- * Makefile.am (EXTRA_DIST): Remove it.
+ * intl.m4: Remove gt_TYPE_LONGDOUBLE invocation.
+ * Makefile.am (EXTRA_DIST): Remove longdouble.m4.
2007-03-04 Bruno Haible <bruno@clisp.org>