bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC_C_TYPEOF documentation


From: Ralf Wildenhues
Subject: Re: AC_C_TYPEOF documentation
Date: Tue, 18 Apr 2006 15:53:13 +0200
User-agent: Mutt/1.5.11

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

[Prev in Thread] Current Thread [Next in Thread]