From d2a80d6bb3fdf319d28f25eb034b32a9f3da7334 Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Wed, 28 Sep 2011 16:56:56 -0300 Subject: 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 --- scripts/qapi-types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/qapi-types.py b/scripts/qapi-types.py index 4797a70813..3bacc0c0da 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=c_var(value).lower()) + value=value.lower()) ret += mcgen(''' NULL, -- cgit v1.2.3