Re: [Qemu-devel] [PATCH v2 12/54] qapi: change enum lookup structure

2017-08-23 Thread Markus Armbruster
Marc-André Lureau writes: > Store the length in the lookup table, i.e. change it from > const char *const[] to struct { int n, const char *const s[] }. > > The following conditional enum entry change will create "hole" > elements in the generated lookup array, that should be skipped. The commit

[Qemu-devel] [PATCH v2 12/54] qapi: change enum lookup structure

2017-08-22 Thread Marc-André Lureau
Store the length in the lookup table, i.e. change it from const char *const[] to struct { int n, const char *const s[] }. The following conditional enum entry change will create "hole" elements in the generated lookup array, that should be skipped. Signed-off-by: Marc-André Lureau --- include/q