From: Paul Brook <paul@codesourcery.com>
To: qemu-devel@nongnu.org
Cc: Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [Qemu-devel] [RfC PATCH 0/2] qdev/prop: type checking.
Date: Mon, 13 Jul 2009 16:36:44 +0100 [thread overview]
Message-ID: <200907131636.45711.paul@codesourcery.com> (raw)
In-Reply-To: <1247492031-16104-1-git-send-email-kraxel@redhat.com>
> The second helps a bunch of helper macros to help creating property
> declarations and converts pci.c as example. I'm not that happy with
> that one yet. Especially I'd like to check somehow that
> typeof(_state->_field) == _type. But couldn't figure out a way to do
> so. As we are setting up static data structures we are quite limited in
> what we can do here. The typechecking trick used by the linux kernel
> min/max macros can't be used for example.
Could we use a union rather than an opaque pointer for the default value?
Paul
next prev parent reply other threads:[~2009-07-13 15:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-13 13:33 [Qemu-devel] [RfC PATCH 0/2] qdev/prop: type checking Gerd Hoffmann
2009-07-13 13:33 ` [Qemu-devel] [PATCH 1/2] qdev/prop: add property type Gerd Hoffmann
2009-07-13 13:33 ` [Qemu-devel] [PATCH 2/2] qdev/prop: helper macros Gerd Hoffmann
2009-07-13 15:36 ` Paul Brook [this message]
2009-07-13 19:19 ` [Qemu-devel] [RfC PATCH 0/2] qdev/prop: type checking Gerd Hoffmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200907131636.45711.paul@codesourcery.com \
--to=paul@codesourcery.com \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.