lkml.org 
[lkml]   [1996]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Current Status
Date
From
: The compiler must support this keyword, and many do.
: The kernel is not, was not, and will never be ANSI C.

"inline" is not in the ANSI C standard (C-89 in case they went off and
did another turn while I wasn't looking). Therefore, the compiler
needn't support it. gcc -ansi, for example, will not support it.

Also, many *PROGRAMS* that are strictly ANSI-C compliant use the
kernel headers indirectly. These fail to compile with gcc -ansi.
They shouldn't. That's why inline needs to be mapped to __inline__.

Other than it looks ugly, is there a good reason to not do it?

Warner


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