Renamed from strtoxmax.c, removing the old strtoimax.c.
authorJim Meyering <jim@meyering.net>
Fri, 31 Aug 2001 09:37:58 +0000 (09:37 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 31 Aug 2001 09:37:58 +0000 (09:37 +0000)
commit9a3aebb793224b17196fc77d6cb203a41a5c1905
tree284a520ec53a29f7a18d415e1d07dc256c2f6d61
parent2fb2160cfb909db8734ba0b8e26580b9175ce4db
Renamed from strtoxmax.c, removing the old strtoimax.c.

Also, make the following further changes to make this file's
configuration more similar to that of strtol.c:
(UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
(strtoumax, uintmax_t, strtoull, strtol): Remove.
(intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
(strtoimax): Renamed from strtoumax.  All uses of unsigned values
changed to signed values.

And make the following changes as well:
Fix copyright notice, as 1999 was missing.
(verify): New macro.
(strtoimax): Check sizes at compile-time, not run-time.
Prefer strtol to strtoll if both work.
(main): Remove; it was not that useful and was a pain to maintain.
lib/strtoimax.c