Re: [Qemu-devel] [PATCH v6 06/27] qapi: do not define enumeration value explicitly

2018-12-08 Thread Marc-André Lureau
Hi On Wed, Dec 5, 2018 at 5:19 PM Markus Armbruster wrote: > > Marc-André Lureau writes: > > > The C standard has the initial value at 0 and the subsequent values > > incremented by 1. No need to set this explicitely. > > > > This will prevent from artificial "gaps" when compiling out some enum >

Re: [Qemu-devel] [PATCH v6 06/27] qapi: do not define enumeration value explicitly

2018-12-05 Thread Markus Armbruster
Marc-André Lureau writes: > The C standard has the initial value at 0 and the subsequent values > incremented by 1. No need to set this explicitely. > > This will prevent from artificial "gaps" when compiling out some enum > values and having unnecessarily large MAX values & enums arrays, or > si

[Qemu-devel] [PATCH v6 06/27] qapi: do not define enumeration value explicitly

2018-07-06 Thread Marc-André Lureau
The C standard has the initial value at 0 and the subsequent values incremented by 1. No need to set this explicitely. This will prevent from artificial "gaps" when compiling out some enum values and having unnecessarily large MAX values & enums arrays, or simplifying iterating over valid enum val