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: RFC: Short circuit bfd_map_over_sections


On Thu, Apr 29, 2004 at 08:29:01PM -0400, Ian Lance Taylor wrote:
> "H. J. Lu" <hjl@lucon.org> writes:
> 
> > That is fine. What should we call it? bfd_run_over_sections,
> > bfd_call_over_sections, bfd_call_on_sections, ...
> 
> By analogy with C++, it should be bfd_sections_find_if, and it should
> return the first section for which the function returns true.
> 

I like bfd_sections_find_if. Here is a patch.

> bfd_for_each_section is another possibility.
> 
> Or bfd_traverse_sections.
> 

H.J.

Attachment: bfd-section-if-1.patch
Description: Text document


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