"struct sec" -> "struct bfd_section"?

Alan Modra amodra@bigpond.net.au
Sat Oct 11 15:39:00 GMT 2003


On Sat, Oct 11, 2003 at 09:25:55AM -0400, Andrew Cagney wrote:
> Hello,
> 
> What would be the reaction to having "typedef asection"s underlying 
> struct renamed to "struct bfd_section"?  The objective here is to make 
> an official namespace-proof opaque declaration available to clients.  I 
> asked about "struct sec" and got all sorts of pushback.

Seems reasonable.

> A rollout would be as follows:
> - #define bfd_section sec

Won't work.  include/elf/internal.h:  asection *   bfd_section;

> - go through the code base and s/struct sec/struct bfd_section/
> - update the definition

Hit the lot in one go.  I count less than 30 files in /src that use
struct sec directly.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list