[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master 37889523278: Add new `swap` macro and use it
|
From: |
Po Lu |
|
Subject: |
Re: master 37889523278: Add new `swap` macro and use it |
|
Date: |
Sun, 14 Jan 2024 16:05:26 +0800 |
|
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Eli Zaretskii <eliz@gnu.org> writes:
> Instead of reverting, the swap macro could have used __typeof__ where
> typeof is not available. This has been pointed out several times
> already, so I don't understand why you keep raising this non-issue.
__typeof__ is not Standard C, and our declared objective is to be
"portable to C99 or later". Invoking non-standard syntactic features
such as __typeof__ without a check is an issue in itself, regardless of
the number of systems it affects, not least when it is not invoked from
code that can reasonably be expected to only compile on machines with
well-established compilers (i.e. w32*.c, android*.c), but from code that
must compile everywhere.
Further proving my point, neither variant of typeof compiles with Sun C
5.8, a C99 compiler that does presently produce working Emacs builds.
> The only breakage we know of was with a compiler that does support
> __typeof__, AFAIU, so again: why do you keep insisting on your
> absolute rejection of the macro, when all the real problems have been
> addressed?
If Gnulib doesn't require __typeof__, why should we? Generally
speaking, Emacs is portable to more systems and compilers than Gnulib
officially is; departing from this policy for no good reason will
frustrate users and future porting efforts alike.
- Re: master 37889523278: Add new `swap` macro and use it, (continued)
- Re: master 37889523278: Add new `swap` macro and use it, Stefan Kangas, 2024/01/07
- Re: master 37889523278: Add new `swap` macro and use it, Po Lu, 2024/01/07
- Re: master 37889523278: Add new `swap` macro and use it, Eli Zaretskii, 2024/01/07
- Re: master 37889523278: Add new `swap` macro and use it, Gregory Heytings, 2024/01/11
- Re: master 37889523278: Add new `swap` macro and use it, Stefan Kangas, 2024/01/13
- Re: master 37889523278: Add new `swap` macro and use it, Richard Stallman, 2024/01/13
- Re: master 37889523278: Add new `swap` macro and use it, Po Lu, 2024/01/14
- Re: master 37889523278: Add new `swap` macro and use it, Eli Zaretskii, 2024/01/14
- Re: master 37889523278: Add new `swap` macro and use it,
Po Lu <=
- Re: master 37889523278: Add new `swap` macro and use it, Eli Zaretskii, 2024/01/14
- Re: master 37889523278: Add new `swap` macro and use it, Gregory Heytings, 2024/01/14
- Re: master 37889523278: Add new `swap` macro and use it, Eli Zaretskii, 2024/01/15
- Re: master 37889523278: Add new `swap` macro and use it, Po Lu, 2024/01/15
- Re: master 37889523278: Add new `swap` macro and use it, Eli Zaretskii, 2024/01/15
- Re: master 37889523278: Add new `swap` macro and use it, Gregory Heytings, 2024/01/17
- Re: master 37889523278: Add new `swap` macro and use it, Po Lu, 2024/01/17
- Re: master 37889523278: Add new `swap` macro and use it, Gregory Heytings, 2024/01/26
- Re: master 37889523278: Add new `swap` macro and use it, Po Lu, 2024/01/26
- Re: master 37889523278: Add new `swap` macro and use it, Stefan Kangas, 2024/01/27