Subject: Re: Proposal: eliminate all macros in the kernel
To: Tonnerre LOMBARD <tonnerre@thundrix.ch>
From: Thor Lancelot Simon <tls@rek.tjls.com>
List: tech-kern
Date: 11/20/2005 12:39:10
On Sun, Nov 20, 2005 at 06:22:05PM +0100, Tonnerre LOMBARD wrote:
> Salut,
> 
> On Sun, Nov 20, 2005 at 12:09:27PM -0500, Thor Lancelot Simon wrote:
> > Opinions?
> 
> It is mostly a good idea to reduce the amount of macros used, however,
> in some cases using an inline function may be overkill, and in some
> cases (e.g. macros using ##, initializer macros, etc.) this is simply
> impossible. Also, in some cases, conversions of macros to inline
> functions may be impractical.

One particular case I was wondering about was the queue.h macros.  Their
use is pervasive and they seem mostly harmless; changing them to inline
functions would give us a major API difference from other BSDs for what
seems like little reason.  Thoughts?

Thor