Re: [Xen-devel] [PATCH RFC 2/9] libxl idl: allow implicit enum values

2015-06-26 Thread Rob Hoes
On 25 Jun 2015, at 16:59, Ian Campbell wrote: > > On Wed, 2015-06-24 at 16:08 +0100, Ian Jackson wrote: >> Rob Hoes writes ("[PATCH RFC 2/9] libxl idl: allow implicit enum values"): >>> Introducing two special enum values: >>> * ENUM_NEXT: equal to the previous value in the enum plus 1 >>> * ENUM

Re: [Xen-devel] [PATCH RFC 2/9] libxl idl: allow implicit enum values

2015-06-25 Thread Ian Campbell
On Wed, 2015-06-24 at 16:08 +0100, Ian Jackson wrote: > Rob Hoes writes ("[PATCH RFC 2/9] libxl idl: allow implicit enum values"): > > Introducing two special enum values: > > * ENUM_NEXT: equal to the previous value in the enum plus 1 > > * ENUM_PREV: equal to the previous value in the enum minus

Re: [Xen-devel] [PATCH RFC 2/9] libxl idl: allow implicit enum values

2015-06-24 Thread Ian Jackson
Rob Hoes writes ("[PATCH RFC 2/9] libxl idl: allow implicit enum values"): > Introducing two special enum values: > * ENUM_NEXT: equal to the previous value in the enum plus 1 > * ENUM_PREV: equal to the previous value in the enum minus 1 > > This makes it a little easier to maintain enums for whi

[Xen-devel] [PATCH RFC 2/9] libxl idl: allow implicit enum values

2015-06-24 Thread Rob Hoes
Introducing two special enum values: * ENUM_NEXT: equal to the previous value in the enum plus 1 * ENUM_PREV: equal to the previous value in the enum minus 1 This makes it a little easier to maintain enums for which we do not care too much about the exact enum values. Signed-off-by: Rob Hoes ---