Re: Lindent and coding style

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2006-03-20 at 17:21, Jiri Slaby wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Xavier Bestel napsal(a):
> > On Mon, 2006-03-20 at 15:51, Jiri Slaby wrote:
> >>> It should produce suitable output. Do you have examples of where it
> >>> produces space indentation and you expect tabs ?
> >> As far as I know, it produces:
> >> <tab>	if (very long condition &&
> >> <tab>   ssss2nd condition)...
> >> where ssss are four spaces. Maybe this is considered as well formed at all, but
> >> I indent 3 tabs in this case.
> > 
> > Does that mean your tabs are 2-chars wide ? I think Linus stated that
> > tabs should be 8-chars wide, that should be somewhere in the
> > CodingStyle.
> Nope, you maybe misunderstood me. Tab is 8 chars wide, but lindent do 4 spaces
> on line after `if' if the condition continues on the next line. Then, I wrote I
> do 2 tabs (16 chars) instead of 4-lindent spaces.

My  bad. I thought your 3 tabs were equivalent to 1 tab + 4 spaces.



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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux