diff options
author | Laszlo Ersek | 2012-07-17 16:17:06 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2012-07-23 12:55:17 +0200 |
commit | c46f18ce2b6dae531d72f61cf8441110c7936e70 (patch) | |
tree | 798c01ee6f6c4e99af28e775a38c2862e05cb5f7 /scripts/qapi.py | |
parent | qapi: add test case for deallocating traversal of incomplete structure (diff) | |
download | qemu-c46f18ce2b6dae531d72f61cf8441110c7936e70.tar.gz qemu-c46f18ce2b6dae531d72f61cf8441110c7936e70.tar.xz qemu-c46f18ce2b6dae531d72f61cf8441110c7936e70.zip |
qapi: generate C types for fixed-width integers
(Long line folded using parens:
<http://www.python.org/dev/peps/pep-0008/#maximum-line-length>.)
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'scripts/qapi.py')
-rw-r--r-- | scripts/qapi.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/qapi.py b/scripts/qapi.py index e06233666b..1292476a7d 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': |