[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inline and __inline__



On Thu, 02 Jan 2003 07:28:02 +0800
zw <zhaoway@public1.ptt.js.cn> wrote:

>For functions, some use  "inline", some use "__inline__", what should
>new code use?

Mail appeared on lkml (Feb 1999). 

>What is the  difference between inline and __inline__  WRT the kernel
>sources?
 
There's no  functional difference. "__inline__" is  a reserved keyword
in  C so  it's  safe(ish) to  use in  headers  that might  be seen  by
arbitrary  user applications. For  stuff that  only the  kernel proper
uses, "inline" is slightly more readable.
 

Regards,

Angelo Dell'Aera 'buffer' 
<buffer@users.sourceforge.net>

PGP information in e-mail header

PGP signature