From c2852e886c903ae9e15145d18c07b09b7dcd048e Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Thu, 27 Feb 2003 21:24:36 +0000 Subject: 2003-02-27 Andrew Cagney * bfd.c (struct bfd): Rename "struct _bfd". * bfd-in.h: Update copyright. (struct bfd): Rename "struct _bfd". (_bfd): Define for backward compatibility. * bfd-in2.h: Regenerate. --- bfd/ChangeLog | 8 ++++++++ bfd/bfd-in.h | 12 ++++++++---- bfd/bfd-in2.h | 14 +++++++++----- bfd/bfd.c | 2 +- 4 files changed, 26 insertions(+), 10 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index bf733ca..62018ee 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,11 @@ +2003-02-27 Andrew Cagney + + * bfd.c (struct bfd): Rename "struct _bfd". + * bfd-in.h: Update copyright. + (struct bfd): Rename "struct _bfd". + (_bfd): Define for backward compatibility. + * bfd-in2.h: Regenerate. + 2003-02-25 Alan Modra * elflink.h (elf_bfd_final_link): Apportion reloc counts to rel_hdr diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h index 3b1f9ab..3247e5b 100644 --- a/bfd/bfd-in.h +++ b/bfd/bfd-in.h @@ -1,7 +1,8 @@ /* Main header file for the bfd library -- portable access to object files. - Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, - 2000, 2001, 2002 - Free Software Foundation, Inc. + + Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, + 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. + Contributed by Cygnus Support. This file is part of BFD, the Binary File Descriptor library. @@ -68,7 +69,10 @@ extern "C" { #endif /* Forward declaration. */ -typedef struct _bfd bfd; +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 diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 478138e..46d8aab 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -6,9 +6,10 @@ Run "make headers" in your build bfd/ to regenerate. */ /* Main header file for the bfd library -- portable access to object files. - Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, - 2000, 2001, 2002 - Free Software Foundation, Inc. + + Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, + 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. + Contributed by Cygnus Support. This file is part of BFD, the Binary File Descriptor library. @@ -75,7 +76,10 @@ extern "C" { #endif /* Forward declaration. */ -typedef struct _bfd bfd; +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 @@ -3605,7 +3609,7 @@ bfd_copy_private_symbol_data PARAMS ((bfd *ibfd, asymbol *isym, bfd *obfd, asymb (ibfd, isymbol, obfd, osymbol)) /* Extracted from bfd.c. */ -struct _bfd +struct bfd { /* A unique identifier of the BFD */ unsigned int id; diff --git a/bfd/bfd.c b/bfd/bfd.c index df3f60a..a713ad8 100644 --- a/bfd/bfd.c +++ b/bfd/bfd.c @@ -34,7 +34,7 @@ SECTION CODE_FRAGMENT . -.struct _bfd +.struct bfd .{ . {* A unique identifier of the BFD *} . unsigned int id; -- cgit v1.1