inttostr: aesthetics and improved (compile-time) safety
authorJim Meyering <meyering@redhat.com>
Sat, 31 Oct 2009 08:42:37 +0000 (09:42 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 31 Oct 2009 08:42:37 +0000 (09:42 +0100)
commitc74c2411db5f3bf06848008c0d121a23fd31cf91
tree40c8907b4d587854cb23b3bee52191c0b47c0aa3
parent708e2420452bb7233e0153b0b92c4e7dc79e03e3
inttostr: aesthetics and improved (compile-time) safety

Define inttype_is_signed rather than inttype_is_unsigned,
since the sole use is via "#if inttype_is_signed".
* lib/imaxtostr.c (inttype_is_signed): Define this, rather than
inttype_is_unsigned.
* lib/offtostr.c (inttype_is_signed): Likewise.
* lib/uinttostr.c (inttype_is_signed): Likewise.
* lib/umaxtostr.c (inttype_is_signed): Likewise.
* lib/inttostr.c (inttostr): Use verify to cross-check the
inttype_is_signed value and the signedness of the actual type.
* modules/inttostr (Depends-on): Add verify.
ChangeLog
lib/imaxtostr.c
lib/inttostr.c
lib/offtostr.c
lib/uinttostr.c
lib/umaxtostr.c
modules/inttostr