Re: [PATCH v18 0/2] c: Add __countof__ operator

2025-02-28 Thread Alejandro Colomar via Gcc
Hi Joseph, Jakub, On Thu, Feb 27, 2025 at 09:51:35PM +0100, Jakub Jelinek wrote: > On Thu, Feb 27, 2025 at 08:44:25PM +, Joseph Myers via Gcc wrote: > > On Thu, 27 Feb 2025, Alejandro Colomar via Gcc wrote: > > > > > Can you please confirm if we should add a version of this operator that > >

Re: [PATCH v18 0/2] c: Add __countof__ operator

2025-02-27 Thread Jakub Jelinek via Gcc
On Thu, Feb 27, 2025 at 08:44:25PM +, Joseph Myers via Gcc wrote: > On Thu, 27 Feb 2025, Alejandro Colomar via Gcc wrote: > > > Can you please confirm if we should add a version of this operator that > > need not be diagnosed under pedantic mode? If so, I'll propose this > > I'm doubtful of

Re: [PATCH v18 0/2] c: Add __countof__ operator

2025-02-27 Thread Joseph Myers via Gcc
On Thu, 27 Feb 2025, Alejandro Colomar via Gcc wrote: > Can you please confirm if we should add a version of this operator that > need not be diagnosed under pedantic mode? If so, I'll propose this I'm doubtful of the need for a second variant, but in any case the starting point should be a pat

Re: [PATCH v18 0/2] c: Add __countof__ operator

2025-02-27 Thread Alejandro Colomar via Gcc
Hi Joseph, Aaron, (Aaron, there's no code in this email, so you should be able to read it, I guess. We're just discussing the naming of the operator.) Context for readers: The C Committee has finally accepted this as _Countof instead of _Lengthof, due to the concerns regarding confusion with st