Re: [bug-grep] Re: length of dec. representation of a number
From:
Paul Jarc
Subject:
Re: [bug-grep] Re: length of dec. representation of a number
Date:
Thu, 10 Mar 2005 14:37:38 -0500
User-agent:
Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux)
Jim Meyering <address@hidden> wrote:
> Technically, yes, but that would prohibit applying that macro
> to variables, which is useful. Currently there are uses like
> that in the coreutils.
Ah - well, it's easy enough to factor, so you'd have to specify the
signedness explicitly for variables, but it would be automatically
detected for types.
#define INT_STRLEN_BOUND_VAR(t, signedness) ...
#define INT_STRLEN_BOUND_TYPE(t) INT_STRLEN_BOUND_VAR(t, TYPE_SIGNED(t))
paul