coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] maint: use C99 initialization syntax for single-variable 'fo


From: Collin Funk
Subject: Re: [PATCH] maint: use C99 initialization syntax for single-variable 'for' loops
Date: Mon, 17 Nov 2025 12:24:54 -0800
User-agent: Gnus/5.13 (Gnus v5.13)

PƔdraig Brady <P@draigBrady.com> writes:

> On 17/11/2025 04:23, Collin Funk wrote:
>> @@ -724,7 +722,6 @@ digest_word_file (char const *file_name, WORD_TABLE 
>> *table)
>>   static void
>>   find_occurs_in_text (int file_index)
>>   {
>> -  char *cursor;                     /* for scanning the source text */
>>     char *scan;                      /* for scanning the source text also */
>
> Cool. Was the change automated with something like coccinelle etc.?
> One small s/ also// tweak in the last comment here would be good.
>
> Otherwise +1

It was done by hand, unfortunately.

Can coccinelle do this automatically? I have never used it.

Collin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]