Programming style

by rullzer on Nov.24, 2006, under Programming things

So i spent my afternoon trying to figure out the program from our friends at GNU: indent. And well i have to say i like it! A bunch of settings and a huge man page. But it is worth it. From now i will run indent on everypiece of code I have to read just so i can read it! For those interested my flags:

-bad -bap -bbb -bbo -br -brs -bs -cbi0 -cdb -cdwa -ce -ci0 -cli2 -cs -i2 -fc1 -fca -hnl -l78 -lc78 -pcs -pi2 -ppi0 -pmt -nbfda -npsl -saf -sai -saw -sc -npsl -sob -ts2 -nut

I need to tweak a little bit here and there but overall it works like a charm. So go and find out your own flags so from now on you do not have to get used to someone’s weird indenting style if he/she asks you to take a look at the code.


2 Comments for this entry

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!