On Aug 3, 2004, at 10:29 AM, Dan Weber wrote:

Jamie Herre wrote:
[snip]
+// inline will be better because I can't see why wasting a function call is a
+// good idea.  As well, the type checking stays.

inline is not portable, doesn't work properly with all versions of gcc, and is done automatically by -O3. no need to add this.
Since we don't use -O3 by default, it should be added. Since inline is part of C99, it should be supported by every compiler. Also note, gcc has supported 'inline' since '94.


My bad. I meant to imply that the semantics of 'inline' can vary (especially for non-static functions). Note that the gcc team has marked gcc3.x C99 conformance with 'inline' as 'Broken'.



Reply via email to