Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2004:
[Freeciv-Dev] Re: (PR#7369) [RFC] Coding style
Home

[Freeciv-Dev] Re: (PR#7369) [RFC] Coding style

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: i-freeciv-lists@xxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#7369) [RFC] Coding style
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Mon, 2 Feb 2004 08:51:11 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=7369 >

On Mon, 2 Feb 2004, Per I. Mathisen wrote:

>
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=7369 >
>
> On Mon, 2 Feb 2004, Raimar Falke wrote:
> > > So my preference would be: no-parenthesis for single-line,
> > > parenthesis for multi-line.
> >
> > While this is also my personal preference it is inconsistent.
>
> My preference: No paranthesis for single expression, paranthesis for
> multiple expressions. So:
>
> void *do_nothing()
> {
>   return NULL;
> }
>
> int do_nothing_either()
> {
>   return (global1 + global2 + global3);
> }

I usually use this as well.

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa






[Prev in Thread] Current Thread [Next in Thread]