[flashrom] Re: NULLity to represent the default state of struct's

2022-09-09 Thread Nico Huber
Hi Edward, On 09.09.22 04:15, Edward O'Callaghan via flashrom wrote: > While refactoring flashrom.c to move towards a reentrant flashrom a > pragmatic choice of utilising NULLity to represent the default state of a > struct at instiation was used in the following and related commits - >

[flashrom] Re: NULLity to represent the default state of struct's

2022-09-09 Thread Thomas Heijligen
Hi Edward, thanks for bringing concepts of modern C to flashrom. +1 for using NULL and then falling back to a default implementation in the logic. IMO it makes the code much better. -- Thomas On Fri, 2022-09-09 at 12:15 +1000, Edward O'Callaghan via flashrom wrote: > Hello, > > While