[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [RFC][PATCH v2 1/1] Add IOREQ_TYPE_VMWARE_PORT

On Fri, 2014-10-03 at 10:47 +0100, Stefano Stabellini wrote:
> The issue with a union is compatibility with older QEMU versions: we can
> introduce the union and retain compatibility only if we use anonymous
> unions.  However I seem to recall Jan arguing against anonymous unions
> in public interfaces in past.

The canonical headers in xen/include/public are supposed to be strict
ANSI C and anonymous unions are a gcc extension.

However no-one is obliged to use this copy and several projects
(including Linux, *BSD and others) take copies and modify them to suite
their local coding styles/conventions etc. That could include using
anonymous unions if that is preferable. I'm not sure if that helps you
here though (since the issue AIUI is with existing qemu releases...)


Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.