lkml.org 
[lkml]   [1996]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: inline functions
Date
> Is there any reason "inline" (And "__inline" in asm/smp.h) is
> used instead of "__inline__" in some of the kernel include files?
> It breaks "gcc -ansi".
>
> Before you say "just use gcc", please note that *some* of the
> files already use __inline__, so I think this is an inconsistency
> in the files.
>
> I wouldn't mind submitting a patch to replace all inline
> with __inline__, but I want to know if it would break anything first.

I think they should all be converted to just "inline" because:

It is easy to read and helps avoid right margin overflow.
Although not pure ANSI, it is not gcc specific either.
Any compiler that does not have the inline keyword will cause problems.



\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.018 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site