Subject: Re: typeof (Re: CVS commit: src)
To: None <email@example.com>
From: YAMAMOTO Takashi <firstname.lastname@example.org>
Date: 09/23/2006 17:51:15
> On Sat, Sep 02, 2006 at 12:09:19AM +0100, David Laight wrote:
> > On Fri, Sep 01, 2006 at 09:01:06AM +0900, YAMAMOTO Takashi wrote:
> > > >
> > > > Make the __BIT and __BITS macros "widthless," as best I can, by
> > > > changing their type to uintmax_t from uint32_t. XXX The manual
> > > > page lags this change by a bit.
> > > >
> > > > Define __PRIxBIT and __PRIxBITS printf(3) format strings.
> > >
> > > is it ok to use typeof here?
> > Almost certainly not since the header files gets built into tools.
> Please suggest an alternative.
i'm still not sure why typeof() here is a good idea.
yielding 0 for __SHIFTIN((uint8_t)0xff, 0xff00) seems weird to me.