qapi script: do not add "_" for every capitalized char in enum
commit5d371f41b4db8e47c89626ecf9d9914119583e23
authorWenchao Xia <wenchaoqemu@gmail.com>
Wed, 5 Mar 2014 02:44:40 +0000 (4 18:44 -0800)
committerLuiz Capitulino <lcapitulino@redhat.com>
Tue, 11 Mar 2014 13:07:42 +0000 (11 09:07 -0400)
treeab8fa3a72976eb570eeb59e77ec56cf29d216409
parent5223070c47c6fc35ee000b2392ae76d9fab54f16
qapi script: do not add "_" for every capitalized char in enum

Now "enum AIOContext" will generate AIO_CONTEXT instead of A_I_O_CONTEXT,
"X86CPU" will generate X86_CPU instead of X86_C_P_U.

Signed-off-by: Wenchao Xia <wenchaoqemu@gmail.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
include/qapi/qmp/qerror.h
scripts/qapi.py
target-i386/cpu.c