Re: [Qemu-devel] [PATCH V4 5/9] qapi script: use same function to generate enum string

2013-12-11 Thread Eric Blake
On 12/10/2013 10:48 PM, Wenchao Xia wrote: > 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 pl

[Qemu-devel] [PATCH V4 5/9] qapi script: use same function to generate enum string

2013-12-10 Thread 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 Xia --- scripts/qapi