From c9da228b49792354af6bb6735bc48bc1c156bc0d Mon Sep 17 00:00:00 2001 From: Federico Simoncelli Date: Tue, 20 Mar 2012 13:54:35 +0000 Subject: qapi: add c_fun to escape function names Signed-off-by: Federico Simoncelli Signed-off-by: Anthony Liguori --- scripts/qapi-types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/qapi-types.py') diff --git a/scripts/qapi-types.py b/scripts/qapi-types.py index 727fb77266..4a734f58d5 100644 --- a/scripts/qapi-types.py +++ b/scripts/qapi-types.py @@ -100,7 +100,7 @@ typedef enum %(name)s %(abbrev)s_%(value)s = %(i)d, ''', abbrev=de_camel_case(name).upper(), - value=c_var(value).upper(), + value=c_fun(value).upper(), i=i) i += 1 @@ -126,7 +126,7 @@ struct %(name)s %(c_type)s %(c_name)s; ''', c_type=c_type(typeinfo[key]), - c_name=c_var(key)) + c_name=c_fun(key)) ret += mcgen(''' }; -- cgit 1.4.1