Re: A: a new bug to old plain C

Andrey Tarasevich via Gcc-help <[email protected]> Mon, 8 Dec 2025 06:51:18 -0800 (PST)
Newsgroups gmane.comp.gcc.help,gmane.comp.gcc.devel
Message-ID <[email protected]>
> On 12/08/2025 4:41 AM PST Александр Поваляев <[email protected]> wrote:
> This is how explicit conversion looks like - "subfunc((struct zzz const * 
> const * const)arr_of_ptr);".
> Per me, it is awful and makes the code less readable.

That's partially your fault, since you keep adding that redundant and 
nonsensical `const` at the end. Let me fix that for you:

  subfunc((struct zzz const * const *) arr_of_ptr);

See? A lot more readable!

Of course, typedef-ing your struct would've made the code even shorter.

-- 
Best regards,
Andrey