Re: [Qemu-devel] Enum String Generator

2015-02-16 Thread John Snow
On 02/14/2015 09:37 PM, Fam Zheng wrote: On Fri, 02/13 19:33, John Snow wrote: Just a stupid question: We don't have a macro facility in the current codebase that generates both an enum and string table / lookup function simultaneously, do we? Some things really do just wind up looking grossl

Re: [Qemu-devel] Enum String Generator

2015-02-14 Thread Fam Zheng
On Fri, 02/13 19:33, John Snow wrote: > Just a stupid question: We don't have a macro facility in the current > codebase that generates both an enum and string table / lookup function > simultaneously, do we? > > Some things really do just wind up looking grossly inelegant in C, and this > is one

[Qemu-devel] Enum String Generator

2015-02-13 Thread John Snow
Just a stupid question: We don't have a macro facility in the current codebase that generates both an enum and string table / lookup function simultaneously, do we? Some things really do just wind up looking grossly inelegant in C, and this is one of them. --js