[Top][All Lists]

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

Re: [Bug-gnubg] Coding Styles - Indentation / Tabs / Spaces

From: Michael Petch
Subject: Re: [Bug-gnubg] Coding Styles - Indentation / Tabs / Spaces
Date: Sat, 03 Nov 2012 22:40:11 -0600
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1

On 2012-11-03 16:06, Philippe Michel wrote:
> with -br being your -kr. If this is the only discrepancy or there is 
> enough of a common subset, it should be ok.

-kr is Kernighan and Ritchie style. That style uses these options:

-nbad -bap -bbo -nbc -br -brs -c33 -cd33 -ncdb -ce -ci4 -cli0 -cp33 -cs
-d0 -di1 -nfc1 -nfca -hnl -i4 -ip0 -l75 -lp -npcs -nprs -npsl -saf -sai
-saw -nsc -nsob -nss

By specifying -kr I am forcing the default settings above with the extra
modification -l120 -fc1 -sc which affects the right margin, and the
commenting style. -l120 could be argued though. I do know the default
-l75 doesn't seem wide enough given the depth of some of our existing
indentation levels and line lengths. -br (brackets on if statement line)
is implied by selecting -kr . This was with GNU indent 2.2.11 .

As for the extra blank lines, I personally don't mind them, but I'd be
willing to compromise on that point if I had to.

Thanks for your feedback Philippe.

Michael Petch
CApp::Sysware Consulting Ltd.
OpenPGP FingerPrint=D81C 6A0D 987E 7DA5 3219 6715 466A 2ACE 5CAE 3304

reply via email to

[Prev in Thread] Current Thread [Next in Thread]