[Tuxnes-devel] inline cleanup
Brought to you by:
tmmm
From: Jason D. S. <jd...@us...> - 2004-02-19 23:10:29
|
This patch uses AC_C_INLINE to check for inline. I remove the definition and users of INLINE. Inline may be defined to "inline", "__inline", or "" (for instance). In all cases the code should be able to compile fine. The inline keyword is just a hint to the compiler. Since we compile with -O instead of (the default) -O2 or -O3 it's probably ignored anyway (I don't know). Note that inline is already used elsewhere. But non-static inlines generally won't be inlined. (At least the last time I checked. gcc compiles foo.c into foo.o and bar.c into bar.o. A function declared as inline in foo.c that is used in bar.c can't be inlined because the two pieces of code aren't compiled at the same time. But if you put the function into foo.h or bar.c then it can be inlined.) None of this really matters since inlining is surely not needed. What's slow is the renderer, and this is all done in libraries. jason |