getlimits: port to hosts with very wide int, or non-ASCII
commit83e01384804810e14a9d2765760c670b9b6a7dd8
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 23 Dec 2010 07:11:05 +0000 (22 23:11 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 23 Dec 2010 07:11:40 +0000 (22 23:11 -0800)
tree11ffb4e0ebdf22e4e71ebfc96b6138ef72bb5f13
parent8f90efd006fdcb8de861bba363fc5a1b8a330a76
getlimits: port to hosts with very wide int, or non-ASCII

* src/getlimits.c (decimal_ascii_add): Remove, replacing with ...
(decimal_absval_add_one): New function, with different signature,
which does not assume ASCII.  All callers changed.
(print_int): Remove assumptions that integers fit in 206 bits, and
that characters are ASCII.  These assumptions are portable in
practice but are easy to remove here.
src/getlimits.c