]> git.ipfire.org Git - thirdparty/coreutils.git/commit
Include strnumcmp.h, xstrtol.h.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 27 May 2005 20:36:20 +0000 (20:36 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 27 May 2005 20:36:20 +0000 (20:36 +0000)
commit6d740fd9eea4115304e493147e203c665489fb34
tree1022de398ec0f5d829cdb6ce479e6ed826e60a31
parent1ef7a75fa8f30a715b58a88355d29d287c17b4dd
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/expr.c