Proposal for SAMBA_3_0/README.Coding

Michael Adam ma at sernet.de
Wed Jun 27 21:12:36 GMT 2007


On Wed, Jun 27, 2007 at 10:40:47PM +0200, Stefan (metze) Metzmacher wrote:
> Gerald (Jerry) Carter schrieb:
> > Gerald (Jerry) Carter wrote:
> > 
> >> Thanks.  New version that includes "Editor Hints" section posted at
> > 
> >>   http://www.samba.org/~jerry/README.Coding
> > 
> > If there is no other discussion, then I'm checking this into
> > SAMBA_3_0*.  So this will officially institute the 80 col rule :-)
> 
> I'm just back from vacation and need a bit more time to read all the
> mails...
> 
> what is the rule with
> 
> if ( foo != 0 ) vs. if (foo != 0)
> and
> if ( ! foo ) vs. if (!foo)
> 
> I really like the 2nd varint much more and that's what all the code in
> samba4 and the linux kernel uses. But in the last time I saw the 1st
> variant was used in samba3 sometimes.

Metze, good that you bring that up!

+1 from me for the 2nd variant.

Michael

-- 
Michael Adam <ma at sernet.de>
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.SerNet.DE, mailto: Info @ SerNet.DE


More information about the samba-technical mailing list