Re: [Qemu-devel] [PATCH v3 17/50] qapi: do not define enumeration value explicitely

2018-02-02 Thread Markus Armbruster
Marc-André Lureau writes: > Hi > > On Fri, Dec 8, 2017 at 8:50 AM, Markus Armbruster wrote: >> Marc-André Lureau writes: >> >>> On Thu, Dec 7, 2017 at 5:23 PM, Markus Armbruster wrote: Marc-André Lureau writes: > The C standard has the initial value at 0 and the subsequent value

Re: [Qemu-devel] [PATCH v3 17/50] qapi: do not define enumeration value explicitely

2018-01-11 Thread Marc-André Lureau
Hi On Fri, Dec 8, 2017 at 8:50 AM, Markus Armbruster wrote: > Marc-André Lureau writes: > >> On Thu, Dec 7, 2017 at 5:23 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

Re: [Qemu-devel] [PATCH v3 17/50] qapi: do not define enumeration value explicitely

2017-12-07 Thread Markus Armbruster
Marc-André Lureau writes: > On Thu, Dec 7, 2017 at 5:23 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" wh

Re: [Qemu-devel] [PATCH v3 17/50] qapi: do not define enumeration value explicitely

2017-12-07 Thread Marc-André Lureau
On Thu, Dec 7, 2017 at 5:23 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 >> values

Re: [Qemu-devel] [PATCH v3 17/50] qapi: do not define enumeration value explicitely

2017-12-07 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. > > Sig