On Fri, 17 Nov 2006, Simon Josefsson wrote: > So how about running 'indent' on the code, see > <http://www.gnu.org/software/indent/>. Perhaps we can find parameters for > indent that Sara can agree with.
I played with it a bit, and I could get something similar to the existing format using these options: indent \ --braces-on-if-line \ --braces-after-struct-decl-line \ --space-after-cast \ --line-length 78 \ --comment-line-length 78 \ --cuddle-else \ --use-tabs \ --tab-size 8 \ --indent-level 4 \ --no-space-after-for \ --space-after-if \ --space-after-while \ --no-space-after-function-call-names ... with the exception that I set indent-level 4 in this snippet, but that's just because we have plenty of very long function names so having indent level 8 quickly outgrows the line lengths! ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ libssh2-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/libssh2-devel
