[PATCH RESEND libgpiod v2 13/18] dbus: add gpio-manager code
Thiago Macieira
thiago at kde.org
Tue Jul 2 13:40:13 UTC 2024
On Tuesday 2 July 2024 11:19:46 CEST Emmanuele Bassi wrote:
> There's no such recommendation anywhere, just a metric ton of code that has
> been doing it since 1996 and gets copy-pasted anyway.
Understood, but it already was UB in 1996. Past mistakes do not excuse
insisting on it.
> In practice, though, given the namespacing rules for any GLib-based code,
> the possibility of conflict with anything the ISO WG14 working group comes
> up with is virtually zero.
The issue might be less with the WG14-defined symbols, but with GCC's own,
because those would also start with "G". In this case, it also starts with the
letter "G", but as Bartosz says, he's only following existing practice. So it
stands to reason that other projects whose names do not start with "G" may do
the same and run into problems later.
Glib should not advise people to write UB code.
Anyway, advice given.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Principal Engineer - Intel DCAI Platform & System Engineering
More information about the dbus
mailing list