Proposal for SAMBA_3_0/README.Coding

Gerald (Jerry) Carter jerry at samba.org
Thu Jun 28 19:29:01 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Adam wrote:
> On Mon, Jun 25, 2007 at 11:45:57PM -0500, Gerald (Jerry) Carter wrote:
>> * Use 8 Space Tabs to Indent
>>   No whitespace filler.
> 
> To make sure I don't get this wrong:
> 
> This means that when breaking arguments for functions,
> they should not be algnend under the parentheses along
> with the other arguments (using spaces for the last
> few steps), right?
> 
> How should on chose the number of tabs to indent for
> a function etc that needs to have is argument wrapped?

I'm updated the coding style guide.  It's based on what
emacs does using the Linux kernel style so I don't think
it contradicts anything we've already agreed on.

Indention & Whitespace & 80 columns
- -----------------------------------

To avoid confusion, indentations are to be 8 character with tab (not
8 ' ' characters.  When wrapping parameters for function calls,
alignment parameter list with the first parameter on the previous line.
Use tabs to get as close as possible and then fill in the final 7
characters or less with whitespace.  For example,

	var1 = foo(arg1, arg2,
		   arg3);

The previous example is intended to illustrate alignment of function
parameters across lines and not as encourage for gratuitous line
splitting.  Never split a line before columns 70 - 79 unless you
have a really good reason.  Be smart about formatting.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGhAv9IR7qMdg1EfYRAgmOAJ4ib+F2xuMsWxZ//nzvq/rELiwKmwCgrnQf
yRXJOULcTRUOhyvTmZnF1wU=
=JGal
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list