Re: [PATCH v17 2/2] c: Add __countof__ operator

2024-11-08 Thread Thorsten Glaser
On Fri, 8 Nov 2024, Alejandro Colomar wrote: >I've just checked that JeanHeyd opened a survey about the name. >It's here: . Yes, I saw it on Fedi, where it was announced big, and filled it in. Thanks, //mirabilos -- 11:56⎜«liwakura:#!/bin/mksh

Re: [PATCH v17 2/2] c: Add __countof__ operator

2024-11-08 Thread Alejandro Colomar via Gcc
Hi Joseph, On Fri, Nov 08, 2024 at 03:54:51PM GMT, Joseph Myers wrote: > On Fri, 8 Nov 2024, Alejandro Colomar wrote: > > > Hi Thorsten, JeanHeyd, > > > > I've just checked that JeanHeyd opened a survey about the name. > > It's here: . > > Than

Re: [PATCH v17 2/2] c: Add __countof__ operator

2024-11-08 Thread Joseph Myers via Gcc
On Fri, 8 Nov 2024, Alejandro Colomar wrote: > Hi Thorsten, JeanHeyd, > > I've just checked that JeanHeyd opened a survey about the name. > It's here: . > Thanks for the survey, JeanHeyd; It's a fair one. (The only thing I > miss is anouncing i

Re: [PATCH v17 2/2] c: Add __countof__ operator

2024-11-08 Thread Alejandro Colomar via Gcc
Hi Thorsten, JeanHeyd, I've just checked that JeanHeyd opened a survey about the name. It's here: . Thanks for the survey, JeanHeyd; It's a fair one. (The only thing I miss is anouncing it to some relevant publics, but I guess I'm doing it now,

Re: [PATCH v17 2/2] c: Add __countof__ operator

2024-10-27 Thread Thorsten Glaser
Alejandro Colomar dixit: >Yes; there are four n papers. See below, plus the history of why >four papers. Thanks, will look at them but probably on Tuesday. >> >- _Nelementsof >> >- _Nelemsof >> >> If you want to shorten elements, elts is probably seen more >> often than elems, at least in

Re: [PATCH v17 2/2] c: Add __countof__ operator

2024-10-27 Thread Alejandro Colomar via Gcc
On Sun, Oct 27, 2024 at 02:00:01PM GMT, Alejandro Colomar wrote: > Hi Thorsten, > > On Sun, Oct 27, 2024 at 04:30:43AM GMT, Thorsten Glaser wrote: > > Hi Alejandro, > > > > >On Sun, Oct 27, 2024 at 01:40:23AM GMT, mirabilos wrote: > > >> Not too sure what the root context of this thread is, but i

Re: [PATCH v17 2/2] c: Add __countof__ operator

2024-10-27 Thread Alejandro Colomar via Gcc
Hi Thorsten, On Sun, Oct 27, 2024 at 04:30:43AM GMT, Thorsten Glaser wrote: > Hi Alejandro, > > >On Sun, Oct 27, 2024 at 01:40:23AM GMT, mirabilos wrote: > >> Not too sure what the root context of this thread is, but in BSD land > > > >The root context is that > > > >- _Lengthof was added to C2y

Re: [PATCH v17 2/2] c: Add __countof__ operator

2024-10-26 Thread Thorsten Glaser
Hi Alejandro, >On Sun, Oct 27, 2024 at 01:40:23AM GMT, mirabilos wrote: >> Not too sure what the root context of this thread is, but in BSD land > >The root context is that > >- _Lengthof was added to C2y in the Minnesota meeting. It was proposed where/how would this be used for? Also, do you h

Re: [PATCH v17 2/2] c: Add __countof__ operator

2024-10-26 Thread Alejandro Colomar via Gcc
Hi mirabilos, On Sun, Oct 27, 2024 at 01:40:23AM GMT, mirabilos wrote: > Not too sure what the root context of this thread is, but in BSD land The root context is that - _Lengthof was added to C2y in the Minnesota meeting. It was proposed by me, although they pushed me to rename the operato

Re: [PATCH v17 2/2] c: Add __countof__ operator

2024-10-26 Thread mirabilos
On Sat, 26 Oct 2024, Alejandro Colomar wrote: >> It would also be interesting to hear the opinion of people from the BSDs >> >#define sizeof_array(a) (countof(a) * sizeof((a)[0])) >> >#define sizeof_array(a) (array_size(a) * sizeof((a)[0])) Not too sure what the root context of this th

Re: [PATCH v17 2/2] c: Add __countof__ operator

2024-10-26 Thread Alejandro Colomar via Gcc
On Sat, Oct 26, 2024 at 12:12:39PM GMT, Alejandro Colomar wrote: > On Sat, Oct 26, 2024 at 12:07:04PM GMT, Alejandro Colomar wrote: > > [Moved from gcc-patches@ to gcc@] > > > > Hi JeanHeyd, наб, > > > > I see you (JeanHeyd) are developing yet another survey about the names > > for this new opera

Re: [PATCH v17 2/2] c: Add __countof__ operator

2024-10-26 Thread Alejandro Colomar via Gcc
On Sat, Oct 26, 2024 at 12:27:03PM GMT, Alejandro Colomar wrote: > On Sat, Oct 26, 2024 at 12:12:39PM GMT, Alejandro Colomar wrote: > > On Sat, Oct 26, 2024 at 12:07:04PM GMT, Alejandro Colomar wrote: > > > [Moved from gcc-patches@ to gcc@] > > > > > > Hi JeanHeyd, наб, > > > > > > I see you (Jea

Re: [PATCH v17 2/2] c: Add __countof__ operator

2024-10-26 Thread Alejandro Colomar via Gcc
On Sat, Oct 26, 2024 at 12:07:04PM GMT, Alejandro Colomar wrote: > [Moved from gcc-patches@ to gcc@] > > Hi JeanHeyd, наб, > > I see you (JeanHeyd) are developing yet another survey about the names > for this new operator. Let me ask you to be clear about my fear of > ambiguity with null-termina

Re: [PATCH v17 2/2] c: Add __countof__ operator

2024-10-26 Thread Alejandro Colomar via Gcc
[Moved from gcc-patches@ to gcc@] Hi JeanHeyd, наб, I see you (JeanHeyd) are developing yet another survey about the names for this new operator. Let me ask you to be clear about my fear of ambiguity with null-terminated strings which are stored within arrays and the length of both entities diff