Re: [ovs-dev] [PATCH v4 01/15] util: add multi-variable loop iterator macros

2022-03-18 Thread Eelco Chaudron
On 9 Mar 2022, at 17:10, Adrian Moreno wrote: > Multi-variable loop iterators avoid potential undefined behavior by > using an internal iterator variable to perform the iteration and only > referencing the containing object (via OBJECT_CONTAINING) if the > iterator has been validated via the

[ovs-dev] [PATCH v4 01/15] util: add multi-variable loop iterator macros

2022-03-09 Thread Adrian Moreno
Multi-variable loop iterators avoid potential undefined behavior by using an internal iterator variable to perform the iteration and only referencing the containing object (via OBJECT_CONTAINING) if the iterator has been validated via the second expression of the for statement. That way, the user