This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [RFC] Require extern modifier for function prototypes in headers.
- From: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- To: "'Jan Kratochvil'" <jan dot kratochvil at redhat dot com>
- Cc: <gdb-patches at sourceware dot org>, "'Eli Zaretskii'" <eliz at gnu dot org>
- Date: Sat, 22 Dec 2012 18:53:11 +0100
- Subject: RE: [RFC] Require extern modifier for function prototypes in headers.
- References: <002201cdde32$8b3379b0$a19a6d10$@muller@ics-cnrs.unistra.fr> <000001cddddb$7999a0a0$6ccce1e0$@muller@ics-cnrs.unistra.fr> <20121222125347.GA6406@host2.jankratochvil.net>
> -----Message d'origine-----
> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Jan Kratochvil
> Envoyà : samedi 22 dÃcembre 2012 13:54
> Ã : Pierre Muller
> Cc : gdb-patches@sourceware.org; 'Eli Zaretskii'
> Objet : Re: [RFC] Require extern modifier for function prototypes in
> headers.
>
> On Wed, 19 Dec 2012 12:24:56 +0100, Pierre Muller wrote:
> > Joel proposed that I added a change to GDB coding styles.
>
> It was me, that we do not put it into Joel's mouth.
Whoops, sorry for the mistake.
> On Wed, 19 Dec 2012 22:48:11 +0100, Pierre Muller wrote:
> > > De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> > > owner@sourceware.org] De la part de Eli Zaretskii
> [...]
> > > If all declarations must be external, the _initialize_* case is no
> > > longer special, so the second sentence should go away, IMO.
> >
> > I thought that it was still special in the sense that they
> > are the only non-static functions that are not declared in headers,
> > but only inside the C source itself.
>
> I agree with the technical part said by Pierre here. So the doc change
> seems
> approved to me that way.
Thanks,
Patch applied in
http://sourceware.org/ml/gdb-cvs/2012-12/msg00174.html
Pierre Muller