Re: [libfdt] RFC: Node iterators (v2)

2008-02-10 Thread David Gibson
On Thu, Feb 07, 2008 at 05:34:05PM -0600, Scott Wood wrote: David Gibson wrote: And here's a revised version. This now also handles recursive iteration and iteration across nodes without respect to depth. I've removed the for_each() macros for the time being, because they were making my

Re: [libfdt] RFC: Node iterators (v2)

2008-02-07 Thread Scott Wood
David Gibson wrote: And here's a revised version. This now also handles recursive iteration and iteration across nodes without respect to depth. I've removed the for_each() macros for the time being, because they were making my brain hurt, but I'm still contemplating bringing them back.

Re: [libfdt] RFC: Node iterators (v2)

2008-01-16 Thread David Gibson
On Wed, Jan 16, 2008 at 05:20:22PM +1100, David Gibson wrote: Here's my counter-attempt at node iterators for libfdt. It's based on an internal function very similar to Scott's fdt_next_node(), but the exported interfaces are altered to be (IMO) safer and simpler. So far, it only handles

[libfdt] RFC: Node iterators

2008-01-15 Thread David Gibson
Here's my counter-attempt at node iterators for libfdt. It's based on an internal function very similar to Scott's fdt_next_node(), but the exported interfaces are altered to be (IMO) safer and simpler. So far, it only handles iterating across immediate children of a node, not traversing an