diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2006-07-01 00:11:23 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2006-07-01 00:11:23 +0000 |
commit | 69f1a97138d154be7c3f4e8ed4687793530bc625 (patch) | |
tree | a6f553309b12cc960bab62991d73deb3a409d644 /ChangeLog | |
parent | 248c092226c26ef4605d83fba5d202420b9bc8d0 (diff) | |
download | coreutils-69f1a97138d154be7c3f4e8ed4687793530bc625.tar.xz |
seq defaults to a minimal fixed point format that does not lose
information if seq's operands are all fixed point decimal numbers.
You no longer need the `-f%.f' in `seq -f%.f 1048575 1024 1050623',
for example, since the default format now has the same effect.
seq now lets you use %a, %A, %E, %F, and %G formats.
seq now uses long double internally rather than double.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -1,3 +1,32 @@ +2006-06-30 Paul Eggert <eggert@cs.ucla.edu> + + * NEWS: seq now uses long double internally rather than double. + It now defaults to a minimal fixed point format if possible. + It lets you use %a, %A, %E, %F, %G. + * src/Makefile.am (seq_LDADD): Remove $(SEQ_LIBM); add $(POW_LIB). + * src/seq.c: Don't include <math.h> or <xstrtol.h>; no longer needed. + (isfinite) [!defined isfinite]: New macro. + (separator, terminator): Now points to const. + (first, step, last): Remove. + (usage): Update to match new behavior. + (struct operand, operand): New type. + (scan_arg): Renamed from scan_double_arg, since we no longer use double. + All uses changed. + Compute and return a value of type operand, not double. + (long_double_format): Renamed from valid_format, and now returns a + new format with an "L" added if needed, if the original format was + valid. Allow %a, %A, %E, %F, and %G formats. + (print_numbers): Take numeric values as args rather than from globals. + Print long double, not double. + (get_width_format): Remove. + (get_default_format): New function. + (main): Implement new way of calculating default format. + Don't worry about locale's representation of the decimal point, since + the arguments are always processed in the C locale. + * tests/seq/basic (neg-2): Adjust to new default format. + (eq-wid-1, eq-wid-2): Resurrect these tests, since the new + implementation should do the right thing. + 2006-06-30 Jim Meyering <jim@meyering.net> * tests/stty/basic-1: Work around an intermittent test failure |