Hi All,
   It would be good to get a bit more serious about the coding convention.
I revisited indent and came up with a set of options that I think we can all agree to.
Here is the indent options for .c files:
indent -ts4 -nut -nbad -bap -nbbo -bc -bl -bli0 -bls -c33 -cd33 -ncdb -nce -cli0 -cp33 -cs -d0 -di1 -nfc1 -nfca -nhnl -i4 -ip4 -l100 -lp -ci4 -pi4 -npcs -nprs -psl -saf -sai -saw -nsc -sob -nss -bfda

For .h files, this cannot be used as it is. However I was able to come up with some commands that would help achieve success with .h files: indent -ts4 -nut -nbad -bap -nbbo -bc -bl -bli0 -bls -c33 -cd33 -ncdb -nce -cli0 -cp33 -cs -d0 -di1 -nfc1 -nfca -nhnl -i8 -
ip4 -l100 -lp -ci4 -npcs -nprs -psl -saf -sai -saw -nsc -sob -nss -bfda -bbb
sed -i "s/AXIS2_CALL/AXIS2_CALL\n   /g"
sed -i "s/    AXIS2_EXTERN/AXIS2_EXTERN/g"
astyle --style=ansi  -b -p -s4  -M0 -c -U -S

Yes I know that is a bit of a hassle, but at least we can automate to some extent.

Please run this and voice your opinion on this style. I think it would be important that we should be able to run a script and fix formatting problems. At the same time, I always believe that the developers can help by writing it correct in the first place.

Thanks,
Samisa...

--
Samisa Abeysinghe - Apche Axis2/C
"http://ws.apache.org/axis2/c/?Apache Axis2/C The Web Services Engine";


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to