This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [rfa] `struct _bfd' -> `struct bfd'
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Andrew Cagney <ac131313 at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Sat, 1 Mar 2003 10:29:46 +1030
- Subject: Re: [rfa] `struct _bfd' -> `struct bfd'
- References: <20030227021848.GC31111@bubble.sa.bigpond.net.au>
On Thu, Feb 27, 2003 at 12:48:48PM +1030, Alan Modra wrote:
> On Wed, Feb 26, 2003 at 09:14:21PM -0500, Andrew Cagney wrote:
> > >Do we really need this? Seems like you can update gdb and sim in
> >
> > Well, for a day or so. It will make the switch easier.
>
> OK, go ahead. I'll delete it tomorrow. :-)
* bfd-in.h (_bfd): Don't define.
* bfd.c: Rename occurrences of "struct _bfd" to "struct bfd".
* syms.c: Likewise.
* bfd-in2.h: Regenerate.
Index: bfd/bfd-in.h
===================================================================
RCS file: /cvs/src/src/bfd/bfd-in.h,v
retrieving revision 1.56
diff -u -p -r1.56 bfd-in.h
--- bfd/bfd-in.h 27 Feb 2003 21:24:36 -0000 1.56
+++ bfd/bfd-in.h 28 Feb 2003 07:14:20 -0000
@@ -70,9 +70,6 @@ extern "C" {
/* Forward declaration. */
typedef struct bfd bfd;
-/* For backward compatibility. Keep code that was using "struct
- _bfd" working. */
-#define _bfd bfd
/* Boolean type used in bfd. Too many systems define their own
versions of "boolean" for us to safely typedef a "boolean" of
Index: bfd/bfd.c
===================================================================
RCS file: /cvs/src/src/bfd/bfd.c,v
retrieving revision 1.47
diff -u -p -r1.47 bfd.c
--- bfd/bfd.c 27 Feb 2003 21:24:36 -0000 1.47
+++ bfd/bfd.c 28 Feb 2003 07:14:23 -0000
@@ -65,7 +65,7 @@ CODE_FRAGMENT
.
. {* The caching routines use these to maintain a
. least-recently-used list of BFDs. *}
-. struct _bfd *lru_prev, *lru_next;
+. struct bfd *lru_prev, *lru_next;
.
. {* When a file is closed by the caching routines, BFD retains
. state information on the file here... *}
@@ -139,13 +139,13 @@ CODE_FRAGMENT
.
. {* Stuff only useful for archives. *}
. PTR arelt_data;
-. struct _bfd *my_archive; {* The containing archive BFD. *}
-. struct _bfd *next; {* The next BFD in the archive. *}
-. struct _bfd *archive_head; {* The first BFD in the archive. *}
+. struct bfd *my_archive; {* The containing archive BFD. *}
+. struct bfd *next; {* The next BFD in the archive. *}
+. struct bfd *archive_head; {* The first BFD in the archive. *}
. bfd_boolean has_armap;
.
. {* A chain of BFD structures involved in a link. *}
-. struct _bfd *link_next;
+. struct bfd *link_next;
.
. {* A field used by _bfd_generic_link_add_archive_symbols. This will
. be used only for archive elements. *}
Index: bfd/syms.c
===================================================================
RCS file: /cvs/src/src/bfd/syms.c,v
retrieving revision 1.28
diff -u -p -r1.28 syms.c
--- bfd/syms.c 14 Feb 2003 09:31:57 -0000 1.28
+++ bfd/syms.c 28 Feb 2003 07:14:35 -0000
@@ -192,7 +192,7 @@ CODE_FRAGMENT
. instead, except that some symbols point to the global sections
. bfd_{abs,com,und}_section. This could be fixed by making
. these globals be per-bfd (or per-target-flavor). FIXME. *}
-. struct _bfd *the_bfd; {* Use bfd_asymbol_bfd(sym) to access this field. *}
+. struct bfd *the_bfd; {* Use bfd_asymbol_bfd(sym) to access this field. *}
.
. {* The text of the symbol. The name is left alone, and not copied; the
. application may not alter it. *}
--
Alan Modra
IBM OzLabs - Linux Technology Centre