[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Headers without multiple inclusion guards
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] Headers without multiple inclusion guards |
Date: |
Thu, 30 May 2019 11:14:38 +0100 |
On Wed, 29 May 2019 at 13:48, Markus Armbruster <address@hidden> wrote:
>
> Peter Maydell <address@hidden> writes:
> > fpu/softfloat-specialize.h is a bit odd as it's intended to be included
> > exactly once, by fpu/softfloat.c. Guards wouldn't hurt, I think, but it
> > might be cleanest to rename it to fpu/softfloat-specialize.inc.c
> > to match our convention for "lump of C which is textually
> > included but isn't a header".
>
> Makes me wonder why we bother with a separate file.
Partly historical, because all the fpu/ code is originally
third-party from the softfloat project. Partly it separates
out "code which may need to be adjusted with ifdefs to
implement target-specific behaviour" from "code that should
be target-agnostic".
thanks
-- PMM
- [Qemu-devel] Headers without multiple inclusion guards, Markus Armbruster, 2019/05/28
- Re: [Qemu-devel] Headers without multiple inclusion guards, Peter Maydell, 2019/05/28
- Re: [Qemu-devel] Headers without multiple inclusion guards, Eduardo Habkost, 2019/05/28
- Re: [Qemu-devel] Headers without multiple inclusion guards, Max Filippov, 2019/05/28
- Re: [Qemu-devel] Headers without multiple inclusion guards, Richard Henderson, 2019/05/28
- Re: [Qemu-devel] Headers without multiple inclusion guards, BALATON Zoltan, 2019/05/28
- Re: [Qemu-devel] Headers without multiple inclusion guards, David Gibson, 2019/05/29
- Re: [Qemu-devel] Headers without multiple inclusion guards, Laurent Vivier, 2019/05/29