From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31297 invoked by alias); 19 Dec 2012 21:48:26 -0000 Received: (qmail 31273 invoked by uid 22791); 19 Dec 2012 21:48:22 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_05,KHOP_THREADED,MSGID_MULTIPLE_AT X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.158) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 19 Dec 2012 21:48:17 +0000 Received: from md13.u-strasbg.fr (md13.u-strasbg.fr [130.79.200.248]) by mailhost.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id qBJLmDCG095864 ; Wed, 19 Dec 2012 22:48:14 +0100 (CET) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from mailserver.u-strasbg.fr (ms11.u-strasbg.fr [130.79.204.111]) by md13.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id qBJLmDhV013564 ; Wed, 19 Dec 2012 22:48:13 +0100 (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from E6510Muller (lec67-4-82-230-53-140.fbx.proxad.net [82.230.53.140]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id qBJLmBsh001474 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) ; Wed, 19 Dec 2012 22:48:12 +0100 (envelope-from pierre.muller@ics-cnrs.unistra.fr) From: "Pierre Muller" To: "'Eli Zaretskii'" Cc: References: <000001cddddb$7999a0a0$6ccce1e0$%muller@ics-cnrs.unistra.fr> <83r4mmnfm7.fsf@gnu.org> In-Reply-To: <83r4mmnfm7.fsf@gnu.org> Subject: RE: [RFC] Require extern modifier for function prototypes in headers. Date: Wed, 19 Dec 2012 21:48:00 -0000 Message-ID: <002201cdde32$8b3379b0$a19a6d10$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-12/txt/msg00723.txt.bz2 > -----Message d'origine----- > De=A0: gdb-patches-owner@sourceware.org [mailto:gdb-patches- > owner@sourceware.org] De la part de Eli Zaretskii > Envoy=E9=A0: mercredi 19 d=E9cembre 2012 17:58 > =C0=A0: Pierre Muller > Cc=A0: gdb-patches@sourceware.org > Objet=A0: Re: [RFC] Require extern modifier for function prototypes in > headers. >=20 > > From: "Pierre Muller" > > Date: Wed, 19 Dec 2012 12:24:56 +0100 > > > > All external functions should have a declaration in a header file that > > -callers include, except for @code{_initialize_*} functions, which must > > +callers include, that declaration should use the @code{extern} modifier. > > +The only exception concerns @code{_initialize_*} functions, which must > > be external so that @file{init.c} construction works, but shouldn't be > > visible to random source files. >=20 > 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. =20 > Otherwise, OK with me. >=20 > Thanks. Pierre