apologies if this is an inappropriately trivial question but this
has been bugging me for a while. what is the deal with "inline"?
first, there appear to be three possible ways of specifying an
inline routine in the kernel source:
$ grep -r "static inline " .
$ grep -r "static __inline__ " .
$ grep -r "static __inline " .
i vaguely recall that this has something to do with a distinction
between C99 inline and gcc inline and trying to avoid a clash between
the two, but i'm not going to put any money on that. but the
confusion probably explains why so many people insist on creating new
macros to represent inline:
$ grep -r "#define.*inline" .
is there a simple explanation for how to *properly* define inline
routines in the kernel? and maybe this can be added to the
CodingStyle guide (he mused, wistfully).
rdau
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]