groff
[Top][All Lists]
Advanced

[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 :-)



reply via email to

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