From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:53873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StHAF-0005JY-49 for qemu-devel@nongnu.org; Mon, 23 Jul 2012 07:51:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1StHAA-0000Tm-1G for qemu-devel@nongnu.org; Mon, 23 Jul 2012 07:51:03 -0400 Received: from e06smtp10.uk.ibm.com ([195.75.94.106]:54851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StHA9-0000TJ-Ou for qemu-devel@nongnu.org; Mon, 23 Jul 2012 07:50:57 -0400 Received: from /spool/local by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 23 Jul 2012 12:50:55 +0100 Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by d06nrmr1307.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q6NBosI62158814 for ; Mon, 23 Jul 2012 12:50:54 +0100 Received: from d06av04.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q6NBoruW027296 for ; Mon, 23 Jul 2012 05:50:53 -0600 From: Stefan Hajnoczi Date: Mon, 23 Jul 2012 12:50:29 +0100 Message-Id: <1343044244-28728-5-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1343044244-28728-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1343044244-28728-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 04/19] qapi: generate C types for fixed-width integers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Laszlo Ersek , qemu-devel@nongnu.org, Stefan Hajnoczi From: Laszlo Ersek (Long line folded using parens: .) Signed-off-by: Laszlo Ersek Signed-off-by: Stefan Hajnoczi --- scripts/qapi.py | 4 ++++ 1 file changed, 4 insertions(+) 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.10.4