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.








November 25th, 2006 on 1:55 pm
Ah, but it only works for C/C++, right?
November 25th, 2006 on 2:14 pm
yeah you’re right. But my main program language is C so…