[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 1/2] [troff]: Add lengthof() macro.
From: |
Thorsten Glaser |
Subject: |
Re: [PATCH v1 1/2] [troff]: Add lengthof() macro. |
Date: |
Fri, 4 Aug 2023 03:31:57 +0200 (CEST) |
On Fri, 4 Aug 2023, Alejandro Colomar wrote:
>* src/roff/troff/env.cpp (lengthof): Add macro to calculate the number
> of elements in an array. It's named after the proposal to ISO C,
> _Lengthof(), which wasn't accepted for C23, but hopefully will be
> added in a future revision.
Oh, interesting. In the BSD world it is known as NELEM, NENTS, N
or specific (e.g. NCMDS=NELEM(cmds)).
>Signed-off-by: Alejandro Colomar <alx@kernel.org>
lgtm mirabilos <m@mirbsd.org>
(don’t mail to that address from Googlemail though, messages
may arrive late or never because, well, Google…)
bye,
//mirabilos
--
15:41⎜<Lo-lan-do:#fusionforge> Somebody write a testsuite for helloworld :-)
- Re: [PATCH v1 1/2] [troff]: Add lengthof() macro., (continued)
- Re: [PATCH v1 1/2] [troff]: Add lengthof() macro., G. Branden Robinson, 2023/08/04
- Re: [PATCH v1 1/2] [troff]: Add lengthof() macro., Alejandro Colomar, 2023/08/04
- Re: [PATCH v1 1/2] [troff]: Add lengthof() macro., James K. Lowden, 2023/08/07
- Re: [PATCH v1 1/2] [troff]: Add lengthof() macro., G. Branden Robinson, 2023/08/25
- Re: [PATCH v1 1/2] [troff]: Add lengthof() macro., Alejandro Colomar, 2023/08/25
- Re: [PATCH v1 1/2] [troff]: Add lengthof() macro., G. Branden Robinson, 2023/08/26
- Re: [PATCH v1 1/2] [troff]: Add lengthof() macro., Lennart Jablonka, 2023/08/26
- Re: [PATCH v1 1/2] [troff]: Add lengthof() macro., Alejandro Colomar, 2023/08/26
- Re: [PATCH v1 1/2] [troff]: Add lengthof() macro., Alejandro Colomar, 2023/08/26
Re: [PATCH v1 2/2] [troff]: Rewrite function in C., Thorsten Glaser, 2023/08/04
Re: [PATCH v1 1/2] [troff]: Add lengthof() macro.,
Thorsten Glaser <=