Re: [Qemu-devel] [PATCH V8 06/10] qapi script: use same function to generate enum string

2014-02-27 Thread Eric Blake
On 02/27/2014 04:09 AM, Wenchao Xia wrote: > From: Wenchao Xia > > Prior to this patch, qapi-visit.py used custom code to generate enum > names used for handling a qapi union. Fix it to instead reuse common > code, with identical generated results, and allowing future updates to > generation to o

[Qemu-devel] [PATCH V8 06/10] qapi script: use same function to generate enum string

2014-02-27 Thread Wenchao Xia
From: Wenchao Xia Prior to this patch, qapi-visit.py used custom code to generate enum names used for handling a qapi union. Fix it to instead reuse common code, with identical generated results, and allowing future updates to generation to only need to touch one place. Signed-off-by: Wenchao Xi