Re: [OCLUG-Tech] White spaces in 'C' /kernel programming??

2009-09-02 Thread Bart Trojanowski
* Rafael Roquetto [090902 13:36]: > > Which editor is best for correctly editing spaces and tabs? > > emacs or vi(m)? > > Both. I agree with Rafael, both are fine. You should not select between vim and emacs based on just this criterion. Since I have selected vim already, I did some tuning on

Re: [OCLUG-Tech] White spaces in 'C' /kernel programming??

2009-09-02 Thread Rafael Roquetto
On Wed, Sep 2, 2009 at 2:27 PM, Brett Delmage wrote: > On Wed, 2 Sep 2009, Bart Trojanowski wrote: > >> The standard is strict to >> make sure that it's legible, consistent, and will not produce future >> flame wars exclusively over style. > > Which editor is best for correctly editing spaces and t

Re: [OCLUG-Tech] White spaces in 'C' /kernel programming??

2009-09-02 Thread Richard Guy Briggs
On Wed, Sep 02, 2009 at 01:27:46PM -0400, Brett Delmage wrote: > On Wed, 2 Sep 2009, Bart Trojanowski wrote: > > >The standard is strict to > >make sure that it's legible, consistent, and will not produce future > >flame wars exclusively over style. > > Which editor is best for correctly editing

Re: [OCLUG-Tech] White spaces in 'C' /kernel programming??

2009-09-02 Thread Brett Delmage
On Wed, 2 Sep 2009, Bart Trojanowski wrote: The standard is strict to make sure that it's legible, consistent, and will not produce future flame wars exclusively over style. Which editor is best for correctly editing spaces and tabs? emacs or vi(m)? ___

Re: [OCLUG-Tech] White spaces in 'C' /kernel programming??

2009-09-02 Thread Stephen Gregory
William Case wrote: > that 'C' compilers like gcc just ignore or > throw out any unneeded white space. Compilers generally don't care about white space, but humans do. White space makes the code easier to read. -- sg ___ Linux mailing list Linux@lists

Re: [OCLUG-Tech] White spaces in 'C' /kernel programming??

2009-09-02 Thread Richard Guy Briggs
On Wed, Sep 02, 2009 at 11:44:18AM -0400, William Case wrote: > Hi; Hi Bill, > I have just been reading Documentation/Coding Style for the 2.6 kernel. > It goes on at length about when and when not to use white spaces. > > E.g. > "Do not leave trailing white space at the ends of lines. Some e

Re: [OCLUG-Tech] White spaces in 'C' /kernel programming??

2009-09-02 Thread Bart Trojanowski
* William Case [090902 12:12]: > So, why the concern over extra white spaces in 'C' code? If you have a code base with such a large rate of change as the Linux kernel, you don't want to see patches that only modify spaces. It's confusing and provides no technical benefit. The standard is strict

[OCLUG-Tech] White spaces in 'C' /kernel programming??

2009-09-02 Thread William Case
Hi; I have just been reading Documentation/Coding Style for the 2.6 kernel. It goes on at length about when and when not to use white spaces. E.g. "Do not leave trailing white space at the ends of lines. Some editors with "smart" indentation will insert white space at the beginning of new line