view lib/uinttostr.c @ 12221:a12bc0c11a21

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.
author Jim Meyering <meyering@redhat.com>
date Sat, 31 Oct 2009 09:42:37 +0100
parents 1785ef4dfcdf
children 4a25c1663687
line wrap: on
line source

#define inttostr uinttostr
#define inttype unsigned int
#define inttype_is_signed 0
#include "inttostr.c"