Re: [PATCH] CodingStyle: add typedefs chapter

From: Jes Sorensen
Date: Tue May 02 2006 - 09:18:10 EST


>>>>> "David" == David Woodhouse <dwmw2@xxxxxxxxxxxxx> writes:

David> On Mon, 2006-05-01 at 23:01 +0200, Jan Engelhardt wrote:
>> find rc3 -type f -print0 | xargs -0 perl -i -pe
>> 's/\btask_t\b/struct task_struct'
>>
>> + a compile test afterwards. Something I missed? (Besides that
>> lines may get longer and violate the 80-column CodingStyle rule.)

David> If we're going to do that, we might as well make it 'struct
David> task'. The additional '_struct' is redundant.

There were some long discussions about that a couple of years ago. I
believe Linus stated that he preferred _struct for those things.

It is also less likely to hit name clashes.

Jes
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/