Re: [Qemu-devel] [PATCH RFC 03/10] qapi script: check correctness of discriminator values in union

2013-11-05 Thread Wenchao Xia
于 2013/11/5 21:25, Eric Blake 写道: On 11/04/2013 05:37 PM, Wenchao Xia wrote: It will check whether the values specfied are wrotten correctly when s/specfied/specified/ s/wrotten/written/ discriminator is a pre-defined enum type, which help check whether the schema is in good form. It is all

Re: [Qemu-devel] [PATCH RFC 03/10] qapi script: check correctness of discriminator values in union

2013-11-05 Thread Eric Blake
On 11/04/2013 05:37 PM, Wenchao Xia wrote: > It will check whether the values specfied are wrotten correctly when s/specfied/specified/ s/wrotten/written/ > discriminator is a pre-defined enum type, which help check whether the > schema is in good form. > > It is allowed that, not every value in

[Qemu-devel] [PATCH RFC 03/10] qapi script: check correctness of discriminator values in union

2013-11-05 Thread Wenchao Xia
It will check whether the values specfied are wrotten correctly when discriminator is a pre-defined enum type, which help check whether the schema is in good form. It is allowed that, not every value in enum is used, so do not check that case. Signed-off-by: Wenchao Xia --- scripts/qapi-visit.p