On 15.02.2024 17:11, Andy Shevchenko wrote: > On Thu, Feb 15, 2024 at 04:37:18PM +0100, Michal Wajdeczko wrote: >> On 15.02.2024 16:20, Jani Nikula wrote: >>> On Wed, 14 Feb 2024, Kees Cook <[email protected]> wrote: >>>> On Wed, Feb 14, 2024 at 08:49:39PM +0200, Andy Shevchenko wrote: > > ... > >>>> Or a Coccinelle script that could do some rewrites? But, yes, if you can >>>> include some examples, that would be nice. I think the helper is fine to >>>> add. >> >> please find below requested Coccinelle script: > > Thanks! > > Btw, what to do with 0? > code is based on this rule: "With countable nouns, zero is always followed by plural nouns."
- [PATCH] lib/string_choices: Add str_plural() helper Michal Wajdeczko
- Re: [PATCH] lib/string_choices: Add str_plural() hel... Andy Shevchenko
- Re: [PATCH] lib/string_choices: Add str_plural()... Andy Shevchenko
- Re: [PATCH] lib/string_choices: Add str_plur... Jani Nikula
- Re: [PATCH] lib/string_choices: Add str_... Andy Shevchenko
- Re: [PATCH] lib/string_choices: Add... Kees Cook
- Re: [PATCH] lib/string_choices:... Jani Nikula
- Re: [PATCH] lib/string_choi... Michal Wajdeczko
- Re: [PATCH] lib/string_choi... Andy Shevchenko
- Re: [PATCH] lib/string_choi... Michal Wajdeczko
- Re: [PATCH] lib/string_choi... Andy Shevchenko
- Re: [PATCH] lib/string_choi... Michal Wajdeczko
- Re: [PATCH] lib/string_choices: Add str_plural() hel... Kees Cook
