qemu-devel
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]