How do I tell / usr / bin / indent on Mac OS X 10.5 to format my K & R code?

On Linux, I use indent -kr ...C./usr/bin/indent to create subfolder files on Mac OS X 10.5 does not support the option -kr. Does anyone have a ~ / .indent.pro file that will produce results closest to the K & R style? Thank you

+5
source share
2 answers

You can always just get the indent gnu source program and use the -kr option. This is probably better since you will have accurate results on both machines. But still, if you want to use OS X, these are the flags that make up the -kr parameter:

-nbad -bap -bbo -nbc -br -brs -c33 -cd33 -ncdb -ce -ci4 -cli0 -cp33 -cs -d0 -di1 -nfc1 -nfca -hnl -i4 -ip0 -l75 -lp -npcs -nprs -npsl -saf -sai -saw -nsc -nsob -nss

+6
+3

All Articles