[rfa] `struct _bfd' -> `struct bfd'
Hans-Peter Nilsson
hp@bitrange.com
Wed Feb 26 20:41:00 GMT 2003
On Mon, 24 Feb 2003, Andrew Cagney wrote:
> The attached renames the BFD object to `struct bfd' from `struct _bfd'.
> To ensure backward compatibility with existing code it also #defines
> _bfd -> bfd.
Would this break using bfd from C++?
Or building with pre-ISOC89 compilers? (Ouch! Don't hit me! ;-)
> Having `struct bfd' available will, I think, legitimize its use as an
> opaque declaration vis:
>
> struct bfd;
> void func (struct bfd *abfd);
And "bfd *" does not fit that purpose?
> Also, as far as I know, symbols with a leading `_' live in the system
> name space.
No, it's _ followed by upper-case letter, e.g "_Z".
brgds, H-P
More information about the Binutils
mailing list