This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gcc-in-cxx] Remove extern "C" from libdecnumber
- From: Andrew Pinski <pinskia at gmail dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 27 May 2009 01:12:27 -0700
- Subject: Re: [gcc-in-cxx] Remove extern "C" from libdecnumber
- References: <m3r5ybrxhk.fsf@google.com>
On Tue, May 26, 2009 at 9:16 PM, Ian Lance Taylor <iant@google.com> wrote:
> 2009-05-26 ÂIan Lance Taylor Â<iant@google.com>
>
> Â Â Â Â* dfp.c: If __cplusplus, use extern "C" around inclusion of
> Â Â Â Âlibdecnumber header files.
That is bad coding style (most C++ text books recommend against doing
that). In fact it is one of the reasons why we should define a coding
style right now for C++ usage in GCC.
Thanks,
Andrew Pinski