summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-05-27 20:37:14 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-05-27 20:37:14 +0000
commit42a4ba9143eeb3deb968c3f228e807093c638e15 (patch)
treef00f2a5c64a812cbad995539a6a5ba65c76eacb9 /ChangeLog
parenta2b86be29574145e2f26770bc495893c27ec6016 (diff)
downloadcoreutils-42a4ba9143eeb3deb968c3f228e807093c638e15.tar.xz
expr and test now correctly compare integers of unlimited size.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog36
1 files changed, 35 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 36b943145..b38fdedaa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,41 @@
-2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
+2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
* Version 5.3.1.
+ * NEWS: expr and test now correctly compare integers of unlimited size.
+ (Also, correct a comment that claimed that expr detects integer
+ overflow; it does so only when converting from strings.)
+ * src/expr.c: Include strnumcmp.h, xstrtol.h.
+ (looks_like_integer): New function.
+ (toarith): Use it. Also, use xstrtoimax rather than rolling our
+ own diagnostics.
+ (eval2): Don't look for trouble if !evaluate; this simplifies things.
+ Compare numbers using string comparison, so that overflow is
+ not possible.
+ * src/sort.c: Refactor so that others can use large-integer
+ comparison functions.
+ Include "strnumcmp.h".
+ (NEGATION_SIGN, NUMERIC_ZERO, fraccompare):
+ Remove; moved to strnumcmp.
+ (decimal_point): Now int, to simplify converison overhead with
+ new API. All uses changed.
+ (thousands_sep): Now -1 if there isn't one, as per new API.
+ All uses changed.
+ (numcompare): Move contents to strnumcmp module, except for
+ skipping blanks.
+ * src/test.c: Include inttostr.h, strnumcmp.h.
+ (whitespace, digit, digit_value, integer_expected_error): Remove.
+ (is_int): Remove; replaced by...
+ (find_int): New function.
+ (binary_operator): Don't let integers overflow in comparisons;
+ return the correct answer instead. Simplify the code.
+ (unary_operator): Convert the integer ourself, since find_int
+ no longer does so.
+ * tests/expr/basic (bigcmp): New test.
+ * tests/test/Test.pm (eq-6, gt-5, lt-5): New tests.
+
+2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
+
* NEWS: nohup now redirects a tty stdin to an unreadable fd
instead of closing it.
* doc/coreutils.texi (nohup invocation): Document this.