This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Coding style question
- From: Andreas Bauer <baueran at in dot tum dot de>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 26 Sep 2002 17:18:05 +1000
- Subject: Coding style question
Dear gcc hackers,
It was being pointed out to me that you might prefer in patches the
style (A)
bool
function (args)
{
/* ... */
return (<condition>);
}
over (B)
bool
function (args)
{
/* ... */
if (<condition>)
return true;
else
return false;
}
I looked in the coding style guides, but could not find this particular
case covered.
Thank you in advance,
Andi.