samba-technical@lists.samba.org
[Top] [All Lists]

Re: Proposal for SAMBA_3_0/README.Coding

Subject: Re: Proposal for SAMBA_3_0/README.Coding
From: "Gerald (Jerry) Carter"
Date: Wed, 27 Jun 2007 16:40:45 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Metze,

> 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.

The second variant is now king by default from the lk style.
The first variant was my fault but I have not now joined
the converted for the sake of consistency.





cheers, jerry

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

iD8DBQFGgtlcIR7qMdg1EfYRAq4xAKDuKBEUrLJ3+WZ9IPx5J7lffcDU8gCgk0+w
w5wbXIzJg6GYbOQJMZ3wlSY=
=brPc
-----END PGP SIGNATURE-----

<Prev in Thread] Current Thread [Next in Thread>