Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 May 1999 08:34:28 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, phk@FreeBSD.org
Subject:   Re: cvs commit: src/sys/sys types.h
Message-ID:  <19990510083428.K22791@freebie.lemis.com>
In-Reply-To: <199905092221.IAA25882@godzilla.zeta.org.au>; from Bruce Evans on Mon, May 10, 1999 at 08:21:50AM %2B1000
References:  <199905092221.IAA25882@godzilla.zeta.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, 10 May 1999 at  8:21:50 +1000, Bruce Evans wrote:
>>  Modified files:
>>    sys/sys              types.h
>>  Log:
>>  Make minor, major and makedev inline functions so we gain type checking
>>  and prevent compile time creation of dev_t's from happening again.
>
> You can't do that.  It adds gratuitous dependencies on the compiler being
> gcc to the most central header in the system.

Well, the dependency is on a compiler that understands `inline'.  Are
we planning to migrate to one that doesn't in the near future?  It
also allows more type checking than a macro.

Greg
--
See complete headers for address, home page and phone numbers
finger grog@lemis.com for PGP public key


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990510083428.K22791>