Re: indentation of c code



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 standard
whatever ;) you can find that config here [2]

daniel

[1]: http://uncrustify.sourceforge.net/
[2]: http://home.cs.tum.edu/~siegel/files/cheese-indent.cfg

On Mo, 2008-08-18 at 08:52 +0200, BJörn Lindqvist wrote:
> 2008/8/17 daniel g. siegel <dgsiegel gmail com>:
> > 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.
> 
> 
-- 
this mail was sent using 100% recycled electrons
================================================
daniel g. siegel <dgsiegel gmail com>
http://home.cs.tum.edu/~siegel
gnupg key id: 0x6EEC9E62
fingerprint: DE5B 1F64 9034 1FB6 E120 DE10 268D AFD5 6EEC 9E62
encrypted email preferred

Attachment: signature.asc
Description: This is a digitally signed message part



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