lkml.org 
[lkml]   [2006]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC][PATCH 1/5] Virtualization/containers: startup
From
Date
>>>>> "Linus" == Linus Torvalds <torvalds@osdl.org> writes:

[snip - excellent description of typedefs considered evil]

Linus> Maybe there are other cases too, but the rule should basically
Linus> be to NEVER EVER use a typedef unless you can clearly match one
Linus> of those rules.

Linus> In general, a pointer, or a struct that has elements that can
Linus> reasonably be directly accessed should _never_ be a typedef.

Hi,

This one sounds like yet another example of something any new Linux
developer should print and stick on his/her wall next to their
monitor.

A candidate for Documentation/ any volunteers?

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

\
 
 \ /
  Last update: 2006-02-06 11:19    [W:0.172 / U:0.728 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site