This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: [rfa] `struct _bfd' -> `struct bfd'


Hans-Peter Nilsson <hp at bitrange dot com> writes:

|> On Mon, 24 Feb 2003, Andrew Cagney wrote:
|> 
|> > 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?

That would require that bfd be a complete type, since you can only forward
declare struct and union types.

|> 
|> > 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".

At file scope all identifiers starting with `_' are reserved, including
struct tags.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab at suse dot de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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