[haiku-development] Re: Coding guidelines

  • From: "Jorge G. Mare" <koki@xxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 07 May 2010 16:16:39 -0700

On 05/07/2010 03:50 PM, Markku Hyppönen wrote:
I've been asked to change few files to follow the coding guidelines.

Document says that indent should be set to four spaces
and that a line must not have more than 80 columns but in the first
example indents seems to be mainly 8 character and there's also couple
of lines exceeding 80 columns.

It seems examples code is not valid, right?

If you are referring to the sample code under "Indenting and white space" in...

http://www.haiku-os.org/development/coding-guidelines

...then you are pointing out the same problem already reported in ticket #5901 by Stippi.

One of the sysadmins responded that " a \t is interpreted as 8 spaces and this cannot be changed" and closed the ticket as invalid, but this is incorrect.

At least in the particular case of the Haiku website, it is possible to change the number of spaces per tab stop, and the solution was given in comments 2 and 3 of the same ticket:

http://dev.haiku-os.org/ticket/5901#comment:2
http://dev.haiku-os.org/ticket/5901#comment:3 <http://dev.haiku-os.org/ticket/5901#comment:2>

Regards,

Jorge / aka Koki

Other related posts: