Re: coding style

From: Jan Engelhardt
Date: Fri Jun 15 2007 - 16:21:54 EST

On Jun 15 2007 23:41, Cyrill Gorcunov wrote:
>Dunno who wrote that part :(. Jan, look:
> Now, some people will claim that having 8-character indentations makes
> the code move too far to the right, and makes it hard to read on a
> 80-character terminal screen. The answer to that is that if you need
> more than 3 levels of indentation, you're screwed anyway, and should fix
> your program.
>your opinion? Is it a bug too? Don't get me wrong I'm just trying to clarify
>coding style.

Linux maintainers will enforce \t "being"[1] 8, and will also enforce
the 80-column limit[2].

(Assuming maintainer != developer)

To [1]: There is actually no substance in how wide a tab is. The developer
may set a tab width of 4, the maintainer may have his tab width set to 12,
and the end user to 6. As far as I interpret CodingStyle, it reads:

Use \ts for indent, spaces for align, and make sure your code
fits into 80 columns when the tab width would be 8.
(You can test that by adjusting your tab width temporarily)

To [2]: There's always code slipping in that disobeys this ;-)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at