lkml.org 
[lkml]   [2005]   [Jul]   [13]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
FromDenis Vlasenko <>
SubjectRe: kernel guide to space
DateWed, 13 Jul 2005 08:46:36 +0300
On Tuesday 12 July 2005 22:36, Bodo Eggert wrote:
> Denis Vlasenko <vda@ilport.com.ua> wrote:
>
> > text with 8-char tabs:
> >
> > struct s {
> > int n; /* comment */
> > unsigned int u; /* comment */
> > };
> >
> > Same text viewed with tabs set to 4-char width:
> >
> > struct s {
> > int n; /* comment */
> > unsigned int u; /* comment */
> > };
> >
> > Comments are not aligned anymore
>
> That's why you SHOULD NOT use tabs for aligning, but for indenting.

Doesn't work either: 8-char tabs:

int i; /* comment */
};
int j; /* comment */
4-char tabs:

int i; /* comment */
};
int j; /* comment */
So we can either ban tabs altogether (unlikely) or agree
that pi is ~= 3.1415926535897932384626433832795028841971693993751058209749
and tab is strictly 8 chars.
--
vda

-
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: 2005-07-13 07:50    [from the cache]
©2003-2009