From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8B8U-0002T1-Vh for qemu-devel@nongnu.org; Thu, 15 Mar 2012 09:55:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8B86-0000pJ-H0 for qemu-devel@nongnu.org; Thu, 15 Mar 2012 09:54:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55868) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8B86-0000ow-8b for qemu-devel@nongnu.org; Thu, 15 Mar 2012 09:54:10 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q2FDs7nV027662 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 15 Mar 2012 09:54:07 -0400 From: Federico Simoncelli Date: Thu, 15 Mar 2012 13:53:38 +0000 Message-Id: <1331819618-12481-1-git-send-email-fsimonce@redhat.com> Subject: [Qemu-devel] [PATCH] qapi: escaping the dots in c_var List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, Federico Simoncelli , lcapitulino@redhat.com This allows qapi commands and types with dots. Signed-off-by: Federico Simoncelli --- scripts/qapi.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/scripts/qapi.py b/scripts/qapi.py index 6e05469..4090c55 100644 --- a/scripts/qapi.py +++ b/scripts/qapi.py @@ -131,7 +131,7 @@ def camel_case(name): return new_name def c_var(name): - return '_'.join(name.split('-')).lstrip("*") + return name.replace('-', '_').replace('.', '_').lstrip('*') def c_list_type(name): return '%sList' % name -- 1.7.1