[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/2] Introduce macro for defining qdev properti
From: |
Blue Swirl |
Subject: |
Re: [Qemu-devel] [PATCH 2/2] Introduce macro for defining qdev properties |
Date: |
Fri, 17 Jul 2009 20:23:48 +0300 |
On Fri, Jul 17, 2009 at 5:41 PM, Anthony Liguori<address@hidden> wrote:
> This patch introduces macros for defining qdev properties. The default macro
> is clever enough to infer the type of the structure field and to automatically
> generate a name for the property. Additional macros are provided that allow
> infered values to be overridden along with a set of macros to define
> properties
> with default values.
Maybe for sake of non-GCC compatibility we should use less clever but
compatible macros, like
QDEV_PROP_NAME_DEFVAL_I32
QDEV_PROP_NAME_DEFVAL_I64
QDEV_PROP_NAME_DEFVAL_PTR
QDEV_PROP_NAME_DEFVAL_CHRDEV
etc?
For example, Sparse does not know about __builtin_choose_expr() and
will probably complain.
- [Qemu-devel] [PATCH 1/2] Introduce CharDriverState qdev property type, (continued)
- [Qemu-devel] [PATCH 1/2] Introduce CharDriverState qdev property type, Anthony Liguori, 2009/07/17
- [Qemu-devel] Re: [PATCH 1/2] Introduce CharDriverState qdev property type, Gerd Hoffmann, 2009/07/21
- [Qemu-devel] Re: [PATCH 1/2] Introduce CharDriverState qdev property type, Anthony Liguori, 2009/07/21
- [Qemu-devel] Re: [PATCH 1/2] Introduce CharDriverState qdev property type, Gerd Hoffmann, 2009/07/21
- [Qemu-devel] Re: [PATCH 1/2] Introduce CharDriverState qdev property type, Gerd Hoffmann, 2009/07/21
- [Qemu-devel] Re: [PATCH 1/2] Introduce CharDriverState qdev property type, Anthony Liguori, 2009/07/21
- [Qemu-devel] Re: [PATCH 1/2] Introduce CharDriverState qdev property type, Gerd Hoffmann, 2009/07/21
- [Qemu-devel] Re: [PATCH 1/2] Introduce CharDriverState qdev property type, Anthony Liguori, 2009/07/21
- [Qemu-devel] Re: [PATCH 1/2] Introduce CharDriverState qdev property type, Gerd Hoffmann, 2009/07/22
[Qemu-devel] [PATCH 2/2] Introduce macro for defining qdev properties, Anthony Liguori, 2009/07/17
- Re: [Qemu-devel] [PATCH 2/2] Introduce macro for defining qdev properties,
Blue Swirl <=
- Re: [Qemu-devel] [PATCH 2/2] Introduce macro for defining qdev properties, Anthony Liguori, 2009/07/17
- Re: [Qemu-devel] [PATCH 2/2] Introduce macro for defining qdev properties, Paul Brook, 2009/07/17
- Re: [Qemu-devel] [PATCH 2/2] Introduce macro for defining qdev properties, Anthony Liguori, 2009/07/17
- Re: [Qemu-devel] [PATCH 2/2] Introduce macro for defining qdev properties, Blue Swirl, 2009/07/17
- Re: [Qemu-devel] [PATCH 2/2] Introduce macro for defining qdev properties, Anthony Liguori, 2009/07/17
- Re: [Qemu-devel] [PATCH 2/2] Introduce macro for defining qdev properties, Paul Brook, 2009/07/17
- Re: [Qemu-devel] [PATCH 2/2] Introduce macro for defining qdev properties, Jamie Lokier, 2009/07/18
- Re: [Qemu-devel] [PATCH 2/2] Introduce macro for defining qdev properties, Anthony Liguori, 2009/07/18
- Re: [Qemu-devel] [PATCH 2/2] Introduce macro for defining qdev properties, Jamie Lokier, 2009/07/19
[Qemu-devel] Re: [PATCH 2/2] Introduce macro for defining qdev properties, Gerd Hoffmann, 2009/07/21