This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [ob] inferior_thread: Remove "extern" in definition.


> -----Message d'origine-----
> De?: gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Andreas Schwab
> Envoyé?: Friday, March 27, 2009 12:56 PM
> À?: Pierre Muller
> Cc?: 'Doug Evans'; gdb-patches@sourceware.org
> Objet?: Re: [ob] inferior_thread: Remove "extern" in definition.
> 
> "Pierre Muller" <muller@ics.u-strasbg.fr> writes:
> 
> > I am just very curious here:
> > why does GCC accept such non-sense?
> 
> It's not nonsense, but strict C.

  Sorry, I didn't mean to be offensive.

 
> > If it is the implementation, it can't be external at the same time...
> 
> "extern" is only about linkage.  In a definition if the linkage is not
> static then extern is implicit, but making it explicit is not an error.

Thanks for the explanation,


Pierre Muller
Pascal language support maintainer for GDB





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]