Re: indentation of c code

2008-08-19 Thread Kjartan Maraas
ma., 18.08.2008 kl. 08.52 +0200, skrev BJörn Lindqvist:
> 2008/8/17 daniel g. siegel <[EMAIL PROTECTED]>:
> > hi all!
> >
> > i just wanted to know if someone out there has already an option file or
> > a small script for gnu indent to indent c code to the "gnome standard"?
> 
> There is no GNOME standard for indenting C code -- every project use
> their own indentation style (unfortunately). But to reformat a file to
> an indentation style many projects use, you can just run "indent"
> without any arguments.
> 
Once upon a time there was this:

http://developer.gnome.org/doc/guides/programming-guidelines/code-style.html

So, basically GNOME was supports to be using the linux kernel coding
style to begin with, but that has probably been watered out by now.

Cheers
Kjartan


___
desktop-devel-list mailing list
desktop-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/desktop-devel-list

Re: indentation of c code

2008-08-19 Thread Alan Cox
> http://developer.gnome.org/doc/guides/programming-guidelines/code-style.html
> 
> So, basically GNOME was supports to be using the linux kernel coding
> style to begin with, but that has probably been watered out by now.

For the kernel coding style its

indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1 -il0

(which is why its a script scripts/Lindent in the kernel distribution)

Alan
___
desktop-devel-list mailing list
desktop-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/desktop-devel-list