From: Markus Armbruster <armbru@redhat.com>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>
Cc: qemu-devel@nongnu.org, David Hildenbrand <david@redhat.com>,
Bastian Koppelmann <kbastian@mail.uni-paderborn.de>,
Thomas Huth <thuth@redhat.com>,
qemu-s390x@nongnu.org,
Richard Henderson <richard.henderson@linaro.org>,
Laurent Vivier <laurent@vivier.eu>,
Cornelia Huck <cohuck@redhat.com>,
qemu-trivial@nongnu.org
Subject: Re: [PATCH 0/3] target: Rename headers using .def extension to .h.inc
Date: Thu, 27 Oct 2022 16:39:18 +0200 [thread overview]
Message-ID: <87bkpxl4a1.fsf@pond.sub.org> (raw)
In-Reply-To: <20221025235006.7215-1-philmd@linaro.org> ("Philippe Mathieu-Daudé"'s message of "Wed, 26 Oct 2022 01:50:03 +0200")
Philippe Mathieu-Daudé <philmd@linaro.org> writes:
> We use the .h.inc extension to include C headers. To be consistent
> with the rest of the codebase, rename the C headers using the .def
> extension.
>
> IDE/tools using our .editorconfig / .gitattributes will leverage
> this consistency.
>
> Philippe Mathieu-Daudé (3):
> target/m68k: Rename qregs.def -> qregs.h.inc
> target/s390x: Rename insn-data/format.def -> insn-data/format.h.inc
> target/tricore: Rename csfr.def -> csfr.h.inc
>
> target/m68k/{qregs.def => qregs.h.inc} | 0
> target/m68k/translate.c | 4 ++--
> target/s390x/tcg/{insn-data.def => insn-data.h.inc} | 2 +-
> .../s390x/tcg/{insn-format.def => insn-format.h.inc} | 0
> target/s390x/tcg/translate.c | 10 +++++-----
> target/tricore/{csfr.def => csfr.h.inc} | 0
> target/tricore/translate.c | 4 ++--
> 7 files changed, 10 insertions(+), 10 deletions(-)
> rename target/m68k/{qregs.def => qregs.h.inc} (100%)
> rename target/s390x/tcg/{insn-data.def => insn-data.h.inc} (99%)
> rename target/s390x/tcg/{insn-format.def => insn-format.h.inc} (100%)
> rename target/tricore/{csfr.def => csfr.h.inc} (100%)
I wonder why we use any of .def, .h.inc, .inc.h, .c.inc, .inc.c. Why
not .h and call it a day? No need to configure each and every editor to
tread these as C code.
next prev parent reply other threads:[~2022-10-27 14:39 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-25 23:50 [PATCH 0/3] target: Rename headers using .def extension to .h.inc Philippe Mathieu-Daudé
2022-10-25 23:50 ` [PATCH 1/3] target/m68k: Rename qregs.def -> qregs.h.inc Philippe Mathieu-Daudé
2022-10-26 9:54 ` Laurent Vivier
2022-11-02 18:29 ` Laurent Vivier
2022-10-25 23:50 ` [PATCH 2/3] target/s390x: Rename insn-data/format.def -> insn-data/format.h.inc Philippe Mathieu-Daudé
2022-10-27 6:45 ` Thomas Huth
2022-11-02 18:30 ` Laurent Vivier
2022-10-25 23:50 ` [PATCH 3/3] target/tricore: Rename csfr.def -> csfr.h.inc Philippe Mathieu-Daudé
2022-10-26 8:21 ` Bastian Koppelmann
2022-11-02 18:30 ` Laurent Vivier
2022-10-26 9:45 ` [PATCH 0/3] target: Rename headers using .def extension to .h.inc Alex Bennée
[not found] ` <8d197b71-937a-5693-3b7f-ea4bded8c360@redhat.com>
2022-10-27 14:12 ` Philippe Mathieu-Daudé
2022-10-27 15:25 ` Thomas Huth
2022-10-27 14:39 ` Markus Armbruster [this message]
2022-10-27 15:01 ` Peter Maydell
2022-10-27 17:17 ` Markus Armbruster
2022-10-27 17:24 ` Peter Maydell
2022-10-28 4:37 ` Markus Armbruster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bkpxl4a1.fsf@pond.sub.org \
--to=armbru@redhat.com \
--cc=cohuck@redhat.com \
--cc=david@redhat.com \
--cc=kbastian@mail.uni-paderborn.de \
--cc=laurent@vivier.eu \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.