Messages in this thread | | | Subject | Re: Current Status | Date | Thu, 21 Mar 1996 23:13:23 -0700 | From | Warner Losh <> |
| |
: 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
| |