At 09:19 AM 2/24/00 +0100, Hrvoje Niksic wrote:
Notice how in almost all files INLINE is #defined to _extern_ inline,
not to static or static inline as one would assume. This is so that
the inline functions defined in headers work right.
RIght, inline IMHO should almost always be used in headers. If you define
inline functions in a source file (as per redisplay-msw.c) any decent
compiler should inline them declared as static anyway. Its only in headers
that the compiler cannot be smart enough.
So I removed the INLINE's becuase (a) gcc was getting confused (b) the
definition is only use in that source file and they will therefore get
inline'd anyway.
andy
--------------------------------------------------------------
Dr Andy Piper
Senior Consultant Architect, BEA Systems Ltd