Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Mar 1998 00:11:00 +0100 (CET)
From:      Mikael Karpberg <karpen@ocean.campus.luth.se>
To:        gibbs@plutotech.com (Justin T. Gibbs)
Cc:        current@FreeBSD.ORG
Subject:   Re: A question about sys/sys/queue.h
Message-ID:  <199803132311.AAA20821@ocean.campus.luth.se>
In-Reply-To: <199803131808.LAA15797@pluto.plutotech.com> from "Justin T. Gibbs" at "Mar 13, 98 11:05:32 am"

next in thread | previous in thread | raw e-mail | index | archive | help
According to Justin T. Gibbs:
> 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.

Just FYI.

Inline functions also result in non-inlined code when compiling with -g.
Also, inlines should be declared "static inline" to act as "real inlines"
in gcc. I was rather stunned when I was pointed to gcc info pages about
this, when I was trying to argue that "static" was completely useless
to add to inline functions. I was proved wrong, for gcc inlines.
I haven't checked, but I would think g++ generates "real inlines"
without the "static" keyword.

  /Mikael

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?199803132311.AAA20821>