[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [Qemu-devel] [PATCH 1/2] include/hw/ppc: Fix compilation
From: |
Daniel P . Berrangé |
Subject: |
Re: [Qemu-ppc] [Qemu-devel] [PATCH 1/2] include/hw/ppc: Fix compilation with clang -std=gnu99 |
Date: |
Thu, 10 Jan 2019 10:12:43 +0000 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Wed, Jan 09, 2019 at 03:25:53PM -0600, Eric Blake wrote:
> On 1/9/19 3:20 PM, Paolo Bonzini wrote:
> > On 09/01/19 18:28, Daniel P. Berrangé wrote:
> >>> so both files include each other, how nice ...
> >> If the header files are mutually dependent it makes me wonder what the
> >> point of having them split up is ?
> >>
> >> Feels like either they need to be merged, or they need to be split up
> >> and refactored even more to remove the mutual dependancy.
> >
> > If they include each other only for the typedefs, then prehaps the
> > solution is to change the coding style and allow using struct in
> > function prototypes. I'm pretty sure there are several examples of this
> > already.
>
> Or stick the typedef in <typedefs.h>, instead of trying to find (or
> create) some other common header.
Probably better to just have a local spapr_types.h instead of
polluting the global namespace.
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
- [Qemu-ppc] [PATCH v3 0/2] Force the C standard to gnu99, Thomas Huth, 2019/01/09
- [Qemu-ppc] [PATCH 1/2] include/hw/ppc: Fix compilation with clang -std=gnu99, Thomas Huth, 2019/01/09
- Re: [Qemu-ppc] [PATCH 1/2] include/hw/ppc: Fix compilation with clang -std=gnu99, Paolo Bonzini, 2019/01/09
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 1/2] include/hw/ppc: Fix compilation with clang -std=gnu99, Eric Blake, 2019/01/09
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 1/2] include/hw/ppc: Fix compilation with clang -std=gnu99, Paolo Bonzini, 2019/01/09
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 1/2] include/hw/ppc: Fix compilation with clang -std=gnu99,
Daniel P . Berrangé <=
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 1/2] include/hw/ppc: Fix compilation with clang -std=gnu99, Greg Kurz, 2019/01/10
- Re: [Qemu-ppc] [PATCH 1/2] include/hw/ppc: Fix compilation with clang -std=gnu99, Thomas Huth, 2019/01/10
Re: [Qemu-ppc] [PATCH 1/2] include/hw/ppc: Fix compilation with clang -std=gnu99, Cédric Le Goater, 2019/01/09
[Qemu-ppc] [PATCH v3 2/2] configure: Force the C standard to gnu99, Thomas Huth, 2019/01/09
Re: [Qemu-ppc] [Qemu-devel] [PATCH v3 2/2] configure: Force the C standard to gnu99, Richard Henderson, 2019/01/09