On Fri, 27 Feb 2004, Andras Erdei wrote:
> i don't really care which one i have to use, but unless these
> conventions are written down somewhere, you'll have to flame me about
> every new line of code i write, because i will not know what you
> expect from me
Reasonable :) Here is a summary where we got so far. Maybe
ntfsprogs/doc/CodingStyle could be updated with these addition
info as well:
- check out ntfsprogs/doc/CodingStyle
- check out {linux-kernel-latest}/Documentation/CodingStyle
- for the explicitely unwritten styles, check/read the kernel
and/or libntfs source. Some parts of the kernel might have
unwanted coding styles but usually e.g.
{linux-kernel}/kernel
has what Linus prefers/writes and most developer follows.
- {linux-kernel-latest}/scripts/Lindent formats the source the
most preferred way, moreover the below patch will be applied
to the official tree as well quite likely:
http://lkml.org/lkml/2004/1/30/180
Check indent(1) what the used/unused (default) parameters mean.
Cheers,
Szaka
|