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.


I am just very curious here:
why does GCC accept such non-sense?

If it is the implementation, it can't be external at the same time...

Pierre Muller
Pascal language support maintainer for GDB
Still not a proficient C programmer :(


> -----Message d'origine-----
> De?: gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Doug Evans
> Envoyé?: Thursday, March 26, 2009 10:38 PM
> À?: gdb-patches@sourceware.org
> Objet?: [ob] inferior_thread: Remove "extern" in definition.
> 
> Hi.
> 
> Committed as obvious.
> 
> 2009-03-26  Doug Evans  <dje@google.com>
> 
> 	* thread.c (inferior_thread) Remove "extern" in definition.
> 
> diff -u -p -r1.106 thread.c
> --- thread.c	25 Mar 2009 21:53:10 -0000	1.106
> +++ thread.c	26 Mar 2009 21:28:39 -0000
> @@ -72,7 +72,7 @@ enum thread_state
>    THREAD_EXITED,
>  };
> 
> -extern struct thread_info*
> +struct thread_info*
>  inferior_thread (void)
>  {
>    struct thread_info *tp = find_thread_pid (inferior_ptid);


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