Re: Indention - why spaces?

Pete Zaitcev (zaitcev@redhat.com)
Tue, 31 Dec 2002 00:28:37 -0500


> IMHO and in my personal projects I use the following indenting rules:
>
> 1) use TABs for _indentation_
> 2) use SPACEs for aligning
>
> here is an exaple:
>
><tab><tab>if (cond) {
><tab><tab><tab>dosometing;
><tab><tab><tab>printf("This is foo: '%s', and this bar: '%d'",
><tab><tab><tab> foo, bar);

BTW, this practice is codified in Solaris developer's guidelines.
They even have a perl script called "hdrchk" which is run before
commits and tells about violations. Actually, the Sun requirement
is to have exactly 4 spaces, but it sounds a little too anal to me.

-- Pete
-
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/