This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [ob] inferior_thread: Remove "extern" in definition.
- From: "Pierre Muller" <muller at ics dot u-strasbg dot fr>
- To: "'Doug Evans'" <dje at google dot com>, <gdb-patches at sourceware dot org>
- Date: Fri, 27 Mar 2009 09:06:04 +0100
- Subject: RE: [ob] inferior_thread: Remove "extern" in definition.
- References: <20090326213807.2D1771C74E3@localhost>
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);