public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
* c99 inline
@ 2008-07-03 11:48 Brian Gough
  0 siblings, 0 replies; only message in thread
From: Brian Gough @ 2008-07-03 11:48 UTC (permalink / raw)
  To: GSL Discuss Mailing List

I have checked in support for C99 inline function declarations--these
are now the default in gcc 4.3 when compiling with -std=c99.
Previously the GNU 'extern inline' extension worked in C99 with gcc
but now it is more strict [1].

The new header file <gsl/gsl_inline.h> defines some macros which
change the inline declarations.  It needs to be included in any header
that uses inline functions.  

The static versions of inline functions in libgsl.a are now made by
compiling the header files (with the macros in "build.h"), so the code
only appears in one place rather than being duplicated in the .c
files.

[1] http://gcc.gnu.org/gcc-4.3/porting_to.html

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-07-03 11:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-03 11:48 c99 inline Brian Gough

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).