Re: [ovs-dev] [PATCH] Embrace anonymous unions.

2018-05-25 Thread Ben Pfaff
On Fri, May 25, 2018 at 11:15:10PM +0300, aserd...@ovn.org wrote: > > > On May 24, 2018, at 10:32 AM, Ben Pfaff wrote: > > > > > > Several OVS structs contain embedded named unions, like this: > > > > > > struct { > > >... > > >union { > > >... > > >} u; > > > };

Re: [ovs-dev] [PATCH] Embrace anonymous unions.

2018-05-25 Thread aserdean
> > On May 24, 2018, at 10:32 AM, Ben Pfaff wrote: > > > > Several OVS structs contain embedded named unions, like this: > > > > struct { > >... > >union { > >... > >} u; > > }; > > > > C11 standardized a feature that many compilers already implemented > >

Re: [ovs-dev] [PATCH] Embrace anonymous unions.

2018-05-24 Thread Justin Pettit
> On May 24, 2018, at 10:32 AM, Ben Pfaff wrote: > > Several OVS structs contain embedded named unions, like this: > > struct { >... >union { >... >} u; > }; > > C11 standardized a feature that many compilers already implemented > anyway, where an embedded

[ovs-dev] [PATCH] Embrace anonymous unions.

2018-05-24 Thread Ben Pfaff
Several OVS structs contain embedded named unions, like this: struct { ... union { ... } u; }; C11 standardized a feature that many compilers already implemented anyway, where an embedded union may be unnamed, like this: struct { ... union { ... }; };