indent was not enough for me, i found some corner cases where it just
did not work. but i found a great alternative: uncrustify [1]
it really works great and i can recommend it to anyone as it has also
some aligning features.
i created a config file for cheese, which uses some quite gnome
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
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
BJörn Lindqvist a écrit :
[...]
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.
I am sorry, but I think there is
Ysgrifennodd Dodji Seketeli:
http://developer.gnome.org/doc/guides/programming-guidelines/code-style.html.
Does anyone have a good idea about modelines at the tops of files? That
page ought really to cover them, but it doesn't mention them. We have a
bug open about it
On Mon, Aug 18, 2008 at 7:22 AM, Dodji Seketeli [EMAIL PROTECTED] wrote:
BJörn Lindqvist a écrit :
[...]
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
Jason D. Clinton wrote:
On Mon, Aug 18, 2008 at 7:22 AM, Dodji Seketeli [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
BJörn Lindqvist a écrit :
[...]
There is no GNOME standard for indenting C code -- every
project use
their own indentation style
i tried to play with gnu indent but i dont like some specific parts,
e.g.
some_function_with_a_very_long_name (GtkWidget *widget, GdkEvent event,
gpointer data)
- either i would put every argument on its line or all of those on just
1 line..
primary =
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?
best regards,
daniel
--
this mail was sent using 100% recycled electrons
daniel g. siegel