Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2001:
[Freeciv-Dev] Re: Coding Guideline --- more variants
Home

[Freeciv-Dev] Re: Coding Guideline --- more variants

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Gregory Berkolaiko <gberkolaiko@xxxxxxxxxxx>
Cc: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Coding Guideline --- more variants
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 28 Nov 2001 16:49:31 +0100
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

On Wed, Nov 28, 2001 at 04:32:25PM +0100, Raimar Falke wrote:
> On Wed, Nov 28, 2001 at 02:55:59PM +0000, Gregory Berkolaiko wrote:
> > To better reflect varying opinions of the voters I included another
> > possible choice in question 7 and added question 9 (very much related to
> > 3).
> > 
> > Shall we set a vague deadline on the voting?  Say this weekend?
> 
> 10a:

And another one (seen in Juha's code):

11a: always braces
  switch(a) {
  case 2:
  {
    return 2;
  }
  case 3:
  {
    int x;
    ....
  }

11b: braces where needed

  switch(a){
  case 2:
    return 2;

  case 3:
  {
    int x;
    ....
  }

11c: no extra local variables

  int x;
  switch(a):
  case 2:
    return 2;
  case 3:
    ....

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  Living on earth may be expensive, but it includes an annual free trip
  around the sun.


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