Subject: Re: [libssh2] Compiling on Solaris 10 64Bit??

Re: [libssh2] Compiling on Solaris 10 64Bit??

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 19 Nov 2006 23:19:04 +0100 (CET)

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
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2006-11-19