sim-card
/
qemu
Archived
10
0
Fork 0

qapi: Don't use c_var() on enum strings

Otherwise if we have something like 'foo-bar' in the schema,
it will be generated as 'foo_bar' in the string lookup table.

c_var() is good for C variables, but not for enum strings.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
Luiz Capitulino 2011-09-28 16:56:56 -03:00
parent e1bc2f7b3f
commit d2a80d6bb3
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ const char *%(name)s_lookup[] = {
ret += mcgen('''
"%(value)s",
''',
value=c_var(value).lower())
value=value.lower())
ret += mcgen('''
NULL,