ソースを参照

qapi: don't convert enum strings to lowercase

Next commit will introduce enum strings in camel case.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Luiz Capitulino 13 年 前
コミット
ac4ff701d8
1 ファイル変更1 行追加1 行削除
  1. 1 1
      scripts/qapi-types.py

+ 1 - 1
scripts/qapi-types.py

@@ -70,7 +70,7 @@ def generate_enum_lookup(name, values):
         ret += mcgen('''
         ret += mcgen('''
     "%(value)s",
     "%(value)s",
 ''',
 ''',
-                     value=value.lower())
+                     value=value)
 
 
     ret += mcgen('''
     ret += mcgen('''
     NULL,
     NULL,