diff options
author | Markus Armbruster <armbru@redhat.com> | 2015-09-16 13:06:15 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2015-09-21 09:56:48 +0200 |
commit | 5710153e7310995b5d4127af267e36d8529b3b30 (patch) | |
tree | ebf4a9fcda67ce87e0217d50328dcb1612266bf8 /docs/qapi-code-gen.txt | |
parent | 05f43a960877cf941635324b2d0a74c0d0f7128e (diff) | |
download | qemu-5710153e7310995b5d4127af267e36d8529b3b30.zip |
qapi: Replace dirty is_c_ptr() by method c_null()
is_c_ptr() looks whether the end of the C text for the type looks like
a pointer. Works, but is fragile.
We now have a better tool: use QAPISchemaType method c_null(). The
initializers for non-pointers become prettier: 0, false or the
enumeration constant with the value 0 instead of {0}.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Message-Id: <1442401589-24189-13-git-send-email-armbru@redhat.com>
Diffstat (limited to 'docs/qapi-code-gen.txt')
0 files changed, 0 insertions, 0 deletions