Re: Adding a FOREACH_CONTINUE() variant to queue(3)

2013-05-20 Thread John Baldwin
On Wednesday, May 01, 2013 3:41:52 am Lawrence Stewart wrote: On 05/01/13 15:59, Lawrence Stewart wrote: On 05/01/13 15:29, Poul-Henning Kamp wrote: In message 518092bf.9070...@freebsd.org, Lawrence Stewart writes: [reposting from freebsd-arch@ - was probably the wrong list] #define

Re: Adding a FOREACH_CONTINUE() variant to queue(3)

2013-05-01 Thread Lawrence Stewart
On 05/01/13 15:29, Poul-Henning Kamp wrote: In message 518092bf.9070...@freebsd.org, Lawrence Stewart writes: [reposting from freebsd-arch@ - was probably the wrong list] #define TAILQ_FOREACH_CONTINUE(var, head, field) \ Obligatory bikeshedding: I find the suffix _CONTINUE

Re: Adding a FOREACH_CONTINUE() variant to queue(3)

2013-05-01 Thread Lawrence Stewart
On 05/01/13 15:59, Lawrence Stewart wrote: On 05/01/13 15:29, Poul-Henning Kamp wrote: In message 518092bf.9070...@freebsd.org, Lawrence Stewart writes: [reposting from freebsd-arch@ - was probably the wrong list] #define TAILQ_FOREACH_CONTINUE(var, head, field)\ Obligatory

Re: Adding a FOREACH_CONTINUE() variant to queue(3)

2013-05-01 Thread Poul-Henning Kamp
In message 518092bf.9070...@freebsd.org, Lawrence Stewart writes: [reposting from freebsd-arch@ - was probably the wrong list] #define TAILQ_FOREACH_CONTINUE(var, head, field) \ Obligatory bikeshedding: I find the suffix _CONTINUE non-obvious, as there may not have been any

Adding a FOREACH_CONTINUE() variant to queue(3)

2013-04-30 Thread Lawrence Stewart
[reposting from freebsd-arch@ - was probably the wrong list] Hi all, I've had use for these a few times now when wanting to restart a loop at a previously found element, and wonder if there are any thoughts about sticking them (and equivalents for other list types) in sys/queue.h? Cheers,

Re: Adding a FOREACH_CONTINUE() variant to queue(3)

2013-04-30 Thread Alfred Perlstein
On 4/30/13 8:57 PM, Lawrence Stewart wrote: [reposting from freebsd-arch@ - was probably the wrong list] Hi all, I've had use for these a few times now when wanting to restart a loop at a previously found element, and wonder if there are any thoughts about sticking them (and equivalents for

Re: Adding a FOREACH_CONTINUE() variant to queue(3)

2013-04-30 Thread Lawrence Stewart
Hi Alfred, On 05/01/13 14:10, Alfred Perlstein wrote: On 4/30/13 8:57 PM, Lawrence Stewart wrote: [reposting from freebsd-arch@ - was probably the wrong list] Hi all, I've had use for these a few times now when wanting to restart a loop at a previously found element, and wonder if there