This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Guidance please: static or extern __inline__
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: jkj at sco dot com
- Cc: gcc at gcc dot gnu dot org
- Date: 28 Jul 2005 18:36:03 +0200
- Subject: Re: Guidance please: static or extern __inline__
- References: <42E903E5.4040905@sco.com>
Kean Johnston <jkj@sco.com> writes:
[...]
| However, I *think* I like the semantics of 'extern inline'
| better: use the inline version for the most part but if,
| for example, you take the address of the function, use the
| actual symbol stat(). But I see that most other fixincs
| use static inline.
I've long come to the conclulsion that "static inline" is the most
palatable form of the whole thingy -- its semantics does not depend on
optimization level. It is also the form that suits needs for people
who need to write C++ codes that use or interface with C codes.
-- Gaby