Re: Ensuring that all the fields of struct predicate are initialized

2024-05-15 Thread Nikolaos Chatzikonstantinou
On Tue, May 14, 2024 at 5:16 PM James Youngman wrote: > One of the worries in the back of my mind with findutils has always been > about whether all the fields in `struct predicate` actually get initialised > correctly by the parser functions. > > I should explain that recently I've been using oth

Re: Ensuring that all the fields of struct predicate are initialized

2024-05-15 Thread Bernhard Voelker
On 5/14/24 11:15 PM, James Youngman wrote: One of the worries in the back of my mind with findutils has always been about whether all the fields in `struct predicate` actually get initialised correctly by the parser functions. However, perhaps there's another way to help us be confident that t

Re: Ensuring that all the fields of struct predicate are initialized

2024-05-14 Thread Collin Funk
On 5/14/24 2:15 PM, James Youngman wrote: > I should explain that recently I've been using other languages which make > it possible to ensure at compile time that things are correctly initialised > and consistently used, and to be direct about it, I miss these things in C. Newer GCC versions have

Ensuring that all the fields of struct predicate are initialized

2024-05-14 Thread James Youngman
One of the worries in the back of my mind with findutils has always been about whether all the fields in `struct predicate` actually get initialised correctly by the parser functions. I should explain that recently I've been using other languages which make it possible to ensure at compile time th