diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2010-11-18 09:50:49 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2010-11-18 09:51:04 -0800 |
commit | a71c22fdf0bae4a4d89327a78ab168b53a9d020f (patch) | |
tree | da51160fd14eba21bc2b6fa3c44ce175636de75c /bootstrap.conf | |
parent | cf90729e09572fa575ce7e1ee5a3cb3f513d2efb (diff) | |
download | coreutils-a71c22fdf0bae4a4d89327a78ab168b53a9d020f.tar.gz coreutils-a71c22fdf0bae4a4d89327a78ab168b53a9d020f.tar.bz2 coreutils-a71c22fdf0bae4a4d89327a78ab168b53a9d020f.zip |
od: fix bugs in displaying floating-point values
* NEWS: Describe patch.
* bootstrap.conf (gnulib_modules): Add ftoastr.
* src/od.c: Include ftoastr.h, not float.h.
(FLT_DIG, DBL_DIG): Remove. No need to verify LDBL_DIG.
(FMT_BYTES_ALLOCATED): No need to worry about floating point now,
since this format is no longer used for floating point.
(PRINT_FIELDS): New macro, with most of the guts of the old PRINT_TYPE.
(PRINT_TYPE): Rewrite to use PRINT_FIELDS.
(PRINT_FLOATTYPE): New macro. This uses the new functions from
ftoastr.
(print_float, print_double, print_long_double): Reimplement
using PRINT_FLOATTYPE.
(decode_one_format): Calculate field widths based on ftoastr-supplied
macros.
* tests/Makefile.am (TESTS): Add misc/od-float.
* tests/misc/od-float: New file.
Diffstat (limited to 'bootstrap.conf')
-rw-r--r-- | bootstrap.conf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bootstrap.conf b/bootstrap.conf index 2da088367..dc4b5b29f 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -88,6 +88,7 @@ gnulib_modules=" fsusage fsync ftello + ftoastr fts getgroups gethrxtime |