From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeiqN-0001c5-VX for qemu-devel@nongnu.org; Wed, 13 Jun 2012 04:22:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Seipn-0003bY-Fg for qemu-devel@nongnu.org; Wed, 13 Jun 2012 04:22:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41837) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Seipn-0003b3-7f for qemu-devel@nongnu.org; Wed, 13 Jun 2012 04:21:47 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q5D8LjS8019942 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 13 Jun 2012 04:21:45 -0400 From: Laszlo Ersek Date: Wed, 13 Jun 2012 10:22:33 +0200 Message-Id: <1339575768-2557-3-git-send-email-lersek@redhat.com> In-Reply-To: <1339575768-2557-1-git-send-email-lersek@redhat.com> References: <1339575768-2557-1-git-send-email-lersek@redhat.com> Subject: [Qemu-devel] [PATCH v2 02/17] qapi: generate C types for fixed-width integers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, lersek@redhat.com (Long line folded using parens: .) Signed-off-by: Laszlo Ersek --- scripts/qapi.py | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/scripts/qapi.py b/scripts/qapi.py index e062336..1292476 100644 --- a/scripts/qapi.py +++ b/scripts/qapi.py @@ -159,6 +159,10 @@ def c_type(name): return 'char *' elif name == 'int': return 'int64_t' + elif (name == 'int8' or name == 'int16' or name == 'int32' or + name == 'int64' or name == 'uint8' or name == 'uint16' or + name == 'uint32' or name == 'uint64'): + return name + '_t' elif name == 'bool': return 'bool' elif name == 'number': -- 1.7.1