From: René Scharfe. Date: Sat, 13 Mar 2021 16:10:26 GMT Subject: Re: [PATCH v2 0/4] Makefile/coccicheck: fix bugs and speed it up Message-ID: <778c6cd8-b1c4-2a97-ab09-a926196ab0b0@web.de> In-Reply-To: Am 07.03.21 um 21:09 schrieb Junio C Hamano: > René Scharfe. writes: >> Anyway, what about this more targeted approach: > > It is a targetted approach to solve a different problem from the > original one. I like the solution and the resulting code, but I > also like the solution to the original problem, too ;-) We can have both. :) The semantic patch for correcting the argument order of xcalloc calls allows the one for using CALLOC_ARRAY to be simplified, as it doesn't have to do that normalization itself. I can't bring myself to introduce special macros for allocating a single object. Let's first make use what we already have. René