svn commit: r228471 - in head/sys: boot/arm/at91/libat91 dev/cm dev/de dev/fdc dev/pccard dev/spibus dev/xen/netback pc98/cbus

Ed Schouten ed at 80386.nl
Wed Dec 14 06:26:19 UTC 2011


Bruce,

* Bruce Evans <brde at optusnet.com.au>, 20111214 04:26:
> And using inline instead of __inline breaks C90 compilers.  Unline const
> and signed, inline is new in C99, and there are still usable C90 compilers
> (e.g., c89, gcc -std=c89 and old(?) versions of TenDRA) which will break
> if it is spelled inline.  C90 compilers should also break if it is spelled
> __inline, but it is easier to annul if is spelled __inline, and
> <sys/cdefs.h> already supports this.

But the point is that we switched to C99 and haven't looked back since.
There is no harm in using C99 in the kernel. The only places where we
need to use __inline, is in header files that provide public APIs.

-- 
 Ed Schouten <ed at 80386.nl>
 WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-head/attachments/20111214/bea79e9d/attachment.pgp


More information about the svn-src-head mailing list