[EMAIL PROTECTED] (Paul Jarc) wrote:
> Jim Meyering <[EMAIL PROTECTED]> 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))

I don't see the benefit.
Having to specify signedness makes it unmaintainable.
It'd be too easy to get wrong, or (more likely) to render
incorrect with a subsequent variable type change.


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to