Hi Bruno,

* Bruno Haible wrote on Tue, Apr 18, 2006 at 02:37:13PM CEST:
> 
> The AC_C_TYPEOF documentation makes it sounds as if, in order to use
> 'typeof', a program needs to do
> 
>     #if HAVE_TYPEOF || defined typeof
> 
> But actually, looking at the implementation in c.m4, a
> 
>     #if HAVE_TYPEOF
> 
> is enough. Here is a documentation fix.

Thank you for this bug report (and the others)!

> ***************
> *** 6296,6302 ****
>   If the C compiler supports GCC's @code{typeof} syntax, define
>   @code{HAVE_TYPEOF}.  If the support is available only via a different
>   spelling of the keyword (e.g., @code{__typeof__}), define @code{typeof}
> ! to that spelling.
>   @end defmac
>   
>   @defmac AC_C_PROTOTYPES
> --- 6296,6302 ----
>   If the C compiler supports GCC's @code{typeof} syntax, define
>   @code{HAVE_TYPEOF}.  If the support is available only via a different
>   spelling of the keyword (e.g., @code{__typeof__}), define @code{typeof}
> ! to that spelling and define @code{HAVE_TYPEOF} as well.
>   @end defmac
>   
>   @defmac AC_C_PROTOTYPES
> 

Instead of the repetition, why not just s/define @code{typeof}/also &/ ?

Cheers,
Ralf


Reply via email to