Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2004:
[Freeciv-Dev] Re: Freeciv commit: per: Look for information in savegames
Home

[Freeciv-Dev] Re: Freeciv commit: per: Look for information in savegames

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Jason Dorje Short <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Cc: Freeciv-Dev <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Freeciv commit: per: Look for information in savegames about where n...
From: Raimar Falke <i-freeciv-lists@xxxxxxxxxxxxx>
Date: Thu, 20 May 2004 19:09:17 +0200

On Wed, May 19, 2004 at 05:32:20PM -0400, Jason Dorje Short wrote:
> Raimar Falke wrote:
> >On Wed, May 19, 2004 at 01:20:50PM -0700, Raimar Falke wrote:
> >
> >
> >>-  struct map_position *start_positions;    /* allocated at runtime */
> >>+  struct start_position {
> >>+    int x, y;
> >>+    Nation_Type_id nation; /* May be NO_NATION_SELECTED. */
> >>+  } *start_positions;      /* allocated at runtime */
> >>};
> >
> >The old comment was placed correctly. The new ones aren't.
> 
> How so?
> 
> AFAICT there are no rules for the placement of such comments.

No explicit one. But we have "indent" as a catch-all: "Use K&R
indentation style with indentation 2". And indent with the
given parameters place the comments as follow:

  struct start_position {
    int x, y;
    Nation_Type_id nation;      /* May be NO_NATION_SELECTED. */
  } *start_positions;           /* allocated at runtime */

struct start_position {
  int x, y;
  Nation_Type_id nation;        /* May be NO_NATION_SELECTED. */
} *start_positions;             /* allocated at runtime */

You see that the placement is independed of the indention of the line
start.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  reality.sys corrupt. Reboot Universe? (y,n,q)


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