[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 04/19] qapi: generate C types for fixed-width intege
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH 04/19] qapi: generate C types for fixed-width integers |
Date: |
Mon, 23 Jul 2012 12:50:29 +0100 |
From: Laszlo Ersek <address@hidden>
(Long line folded using parens:
<http://www.python.org/dev/peps/pep-0008/#maximum-line-length>.)
Signed-off-by: Laszlo Ersek <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
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
- [Qemu-devel] [PULL 00/19] Net patches, Stefan Hajnoczi, 2012/07/23
- [Qemu-devel] [PATCH 03/19] qapi: add test case for deallocating traversal of incomplete structure, Stefan Hajnoczi, 2012/07/23
- [Qemu-devel] [PATCH 02/19] qapi: fix error propagation, Stefan Hajnoczi, 2012/07/23
- [Qemu-devel] [PATCH 04/19] qapi: generate C types for fixed-width integers,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH 01/19] MAINTAINERS: Replace net maintainer Mark McLoughlin with Stefan Hajnoczi, Stefan Hajnoczi, 2012/07/23
- [Qemu-devel] [PATCH 12/19] convert net_init_nic() to NetClientOptions, Stefan Hajnoczi, 2012/07/23
- [Qemu-devel] [PATCH 19/19] remove unused QemuOpts parameter from net init functions, Stefan Hajnoczi, 2012/07/23
- [Qemu-devel] [PATCH 08/19] qapi schema: remove trailing whitespace, Stefan Hajnoczi, 2012/07/23
- [Qemu-devel] [PATCH 14/19] convert net_init_slirp() to NetClientOptions, Stefan Hajnoczi, 2012/07/23
- [Qemu-devel] [PATCH 11/19] convert net_client_init() to OptsVisitor, Stefan Hajnoczi, 2012/07/23
- [Qemu-devel] [PATCH 10/19] hw, net: "net_client_type" -> "NetClientOptionsKind" (qapi-generated), Stefan Hajnoczi, 2012/07/23
- [Qemu-devel] [PATCH 16/19] convert net_init_vde() to NetClientOptions, Stefan Hajnoczi, 2012/07/23
- [Qemu-devel] [PATCH 15/19] convert net_init_socket() to NetClientOptions, Stefan Hajnoczi, 2012/07/23
- [Qemu-devel] [PATCH 17/19] convert net_init_tap() to NetClientOptions, Stefan Hajnoczi, 2012/07/23