Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2001:
[Freeciv-Dev] Indentation in switch()
Home

[Freeciv-Dev] Indentation in switch()

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Indentation in switch()
From: Gregory Berkolaiko <gberkolaiko@xxxxxxxxxxx>
Date: Wed, 5 Dec 2001 10:27:39 +0000 (GMT)

Some people have mentioned that they would like to see case fields
indented in switch statements a la
switch (i) {
  case 0:
    break;
  case 1:
    {
      ++i;
    }
  default:
    break;
}

This is not compatible with indent -kr -i2

The best I could achieve is to have
switch (i) {
 case 0:
  break;
 case 1:
  {
    ++i;
  }
 default:
  break;
}   
with indent -kr -i2 -cli1 

If you can get better results with indent, let me know.

G.

________________________________________________________________
Nokia 5510 looks weird sounds great. 
Go to http://uk.promotions.yahoo.com/nokia/ discover and win it! 
The competition ends 16 th of December 2001.


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