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

2013-12-02 Thread Eric Blake
On 11/12/2013 03:25 PM, Wenchao Xia wrote: One function one rule, so the enum string generating have same behavior for different caller. If multiple caller exist for one enum define in schema, it is for sure the generated string is identical. Note before the patch qapi-visit.py used custom

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

2013-12-02 Thread Wenchao Xia
于 2013/12/3 4:17, Eric Blake 写道: On 11/12/2013 03:25 PM, Wenchao Xia wrote: One function one rule, so the enum string generating have same behavior for different caller. If multiple caller exist for one enum define in schema, it is for sure the generated string is identical. Note before the

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

2013-11-12 Thread Wenchao Xia
One function one rule, so the enum string generating have same behavior for different caller. If multiple caller exist for one enum define in schema, it is for sure the generated string is identical. Note before the patch qapi-visit.py used custom function to generate the string in union visit,