Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Mar 1998 11:05:32 -0700
From:      "Justin T. Gibbs" <gibbs@plutotech.com>
To:        Damon Permezel <dap@damon.com>
Cc:        current@FreeBSD.ORG
Subject:   Re: A question about sys/sys/queue.h
Message-ID:  <199803131808.LAA15797@pluto.plutotech.com>
In-Reply-To: <199803131728.LAA07600@damon.com>

next in thread | previous in thread | raw e-mail | index | archive | help

In article <199803131728.LAA07600@damon.com> you wrote:
> "Simon Shapiro sez: "
>> 
>> I understand the code works.  I was wondering about:
>> 
>> b.  The sanity of writing useless code, knowing it will be thrown out by or
>>     frienfdly, thinking, machine, only to gain a `;' so something looks
>>     like what it is not - I do admit to the somewhat more convineient look
>>     of the sesultant code,  although an inline function would have
>>     accomplished the same thing while being semantically saner, but as it
>>     works...
> 
> This falls into aesthetics, where sanity is not an issue.

Actually, inline functions will not work for the queue macros unless you
change the way you specify the "links" portion of the object.  I agree
that, in general, using an inline is better than using a macro.

--
Justin

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



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