Quoting Samuel Thibault (2014-11-27 19:18:35)
> Justus Winter, le Thu 27 Nov 2014 14:18:42 +0100, a écrit :
> > * include/refcount.h: Declare all functions `extern inline' instead of
> > `static inline'.  This forces those functions to be inlined,
> 
> Well, actually no. The compiler is still allowed not to inline them,
> and that turns them into external references.

Crap.  That must have been wishful thinking on my part ;)

> You then need to make some .c file provide the implementations. See
> for instance the use of DISKFS_DEFINE_EXTERN_INLINE

Yes, I'm introducing this for libports too.  When I introduced
refcount.h I didn't realized that gcc doesn't approve of me using a
static inline function in a extern inline one (that we're using all
over the place).  So where would I put this then?  libports?

Justus

Reply via email to