Modify 'expr' so that it uses intmax_t, not int, to calculate
authorJim Meyering <jim@meyering.net>
Sat, 18 Aug 2001 16:04:16 +0000 (16:04 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 18 Aug 2001 16:04:16 +0000 (16:04 +0000)
commitc6c2071280dc3bbf048381a002da551040f3e3ad
treedbb41965e87ab6a64bc9f4f6cda62973799bcbae
parent28b012a9cc7b971e6e29a437ca7b5db637e559f1
Modify 'expr' so that it uses intmax_t, not int, to calculate
the value of integer expressions.

(struct valinfo.i): Now intmax_t, not int.
(docolon, int_value, str_value, isstring, nextarg, toarith,
freev, tostring, trace): Remove unnecessary forward decls.
(int_value, printv, tostring, toarith, arithf, arithdivf, docolon,
eval6, eval4, eval3): Do integer arithmetic using intmax_t, not int.
(docolon): Don't assume size_t fits in int.
src/expr.c