[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: making INT_STRLEN_BOUND tight for unsigned types
From: |
Paul Eggert |
Subject: |
Re: making INT_STRLEN_BOUND tight for unsigned types |
Date: |
Mon, 26 Sep 2005 22:24:15 -0700 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
Jim Meyering <address@hidden> writes:
> 2005-09-27 Jim Meyering <address@hidden>
>
> * intprops.h (signed_type_or_expr__): Define.
> (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
> for unsigned types.
That looks good to me; thanks. One nit:
> +#if __GNUC__
I just checked, and it appears that __typeof__ was introduced in GCC
around version 1.40, so if you want to take advantage of my software
archaeology expedition you could change that #if to something like this:
#if __GNUC__ >= 2
(Yes, this has no real practical application these days....)
PS. My Google search claims that Doug Schmidt was the very first
person to mention __typeof__ on Usenet, on March 22, 1990.
You were #2:
Jim Meyering
g++-1.37.2: __typeof__(expr) can produce side-effects
gnu.g++.bug (1990-08-30)
<http://groups.google.com/group/gnu.g++.bug/msg/35051acd5c839d5b>
Michael Meissner was #3.
I was #4 <http://groups.google.com/group/gnu.gcc.bug/msg/8f167bd3a9abdc64>.
Small world, huh?