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-visit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/qapi-visit.py') diff --git a/scripts/qapi-visit.py b/scripts/qapi-visit.py index 54117d4..78c947c 100644 --- a/scripts/qapi-visit.py +++ b/scripts/qapi-visit.py @@ -129,9 +129,9 @@ void visit_type_%(name)s(Visitor *m, %(name)s ** obj, const char *name, Error ** break; ''', abbrev = de_camel_case(name).upper(), - enum = de_camel_case(key).upper(), + enum = c_fun(de_camel_case(key)).upper(), c_type=members[key], - c_name=c_var(key)) + c_name=c_fun(key)) ret += mcgen(''' default: -- cgit v1.1