Re: [PATCH v1 1/3] string: Consolidate yesno() helpers under string.h hood

From: Andy Shevchenko
Date: Mon Feb 15 2021 - 12:13:30 EST


On Mon, Feb 15, 2021 at 04:37:50PM +0200, Jani Nikula wrote:
> On Mon, 15 Feb 2021, Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
> > We have already few similar implementation and a lot of code that can benefit
> > of the yesno() helper. Consolidate yesno() helpers under string.h hood.
>
> Good luck. I gave up after just four versions. [1]

Thanks for a pointer! I like your version, but here we also discussing a
possibility to do something like %py[DOY]. It will consolidate all those RO or
whatever sections inside one data structure.

> Acked-by: Jani Nikula <jani.nikula@xxxxxxxxx>
>
> [1] http://lore.kernel.org/r/20191023131308.9420-1-jani.nikula@xxxxxxxxx


--
With Best Regards,
Andy Shevchenko