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

2022-03-24 Thread Dumitru Ceara
On 3/23/22 12:56, 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 second expres

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

2022-03-23 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