Patchwork [19/27] qapi: don't convert enum strings to lowercase

login
register
mail settings
Submitter Luiz Capitulino
Date July 27, 2012, 9:32 p.m.
Message ID <1343424728-22461-20-git-send-email-lcapitulino@redhat.com>
Download mbox | patch
Permalink /patch/173812/
State New
Headers show

Comments

Luiz Capitulino - July 27, 2012, 9:32 p.m.
Next commit will introduce enum strings in camel case.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
 scripts/qapi-types.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/scripts/qapi-types.py b/scripts/qapi-types.py
index 9b7da96..cf601ae 100644
--- a/scripts/qapi-types.py
+++ b/scripts/qapi-types.py
@@ -70,7 +70,7 @@  const char *%(name)s_lookup[] = {
         ret += mcgen('''
     "%(value)s",
 ''',
-                     value=value.lower())
+                     value=value)
 
     ret += mcgen('''
     NULL,