comparison src/inline.c @ 155:43dd3413c7c7 r20-3b4

Import from CVS: tag r20-3b4
author cvs
date Mon, 13 Aug 2007 09:39:39 +0200
parents 538048ae2ab8
children 3d6bfa290dbd
comparison
equal deleted inserted replaced
154:94141801dd7e 155:43dd3413c7c7
23 /* The purpose of this file is so that there is at least one actual 23 /* The purpose of this file is so that there is at least one actual
24 definition of each inline function. This is needed under GCC. The 24 definition of each inline function. This is needed under GCC. The
25 reason is that under GCC we declare our inline functions `extern 25 reason is that under GCC we declare our inline functions `extern
26 inline', which causes the inlined version to get used only for 26 inline', which causes the inlined version to get used only for
27 inlining, and in other cases to generate an external reference to 27 inlining, and in other cases to generate an external reference to
28 the function. This is more efficient that declaring out inline 28 the function. This is more efficient than declaring our inline
29 functions `static inline', which (in many cases) would cause a separate 29 functions `static inline', which (in many cases) would cause a separate
30 version of the function to get inserted into every source file that 30 version of the function to get inserted into every source file that
31 included the corresponding header file. 31 included the corresponding header file.
32 32
33 Some compilers that recognize `inline' may not do the same 33 Some compilers that recognize `inline' may not do the same