public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Brian Gough <bjg@gnu.org>
To: GSL Discuss Mailing List <gsl-discuss@sourceware.org>
Subject: c99 inline
Date: Thu, 03 Jul 2008 11:48:00 -0000	[thread overview]
Message-ID: <87iqvnkymx.wl%bjg@network-theory.co.uk> (raw)

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

                 reply	other threads:[~2008-07-03 11:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87iqvnkymx.wl%bjg@network-theory.co.uk \
    --to=bjg@gnu.org \
    --cc=gsl-discuss@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).