Re: [Qemu-devel] [PATCH v5 05/28] qapi: Better error messages for bad enums

2015-03-26 Thread Markus Armbruster
Eric Blake writes: > The previous commit demonstrated that the generator had several > flaws with less-than-perfect enums: > - an enum that listed the same string twice (or two variant > strings that map to the same C enumerator) ended up generating > an invalid C enum > - because the generator a

[Qemu-devel] [PATCH v5 05/28] qapi: Better error messages for bad enums

2015-03-24 Thread Eric Blake
The previous commit demonstrated that the generator had several flaws with less-than-perfect enums: - an enum that listed the same string twice (or two variant strings that map to the same C enumerator) ended up generating an invalid C enum - because the generator adds a _MAX terminator to each enu