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


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

bfd_for_each_section is another possibility.

Or bfd_traverse_sections.

Ian


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