Complete.Org: Mailing Lists: Archives: freeciv-ai: April 2004:
[freeciv-ai] Re: simple historian agent wants to get into cvs
Home

[freeciv-ai] Re: simple historian agent wants to get into cvs

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: nikodimka <nikodimka@xxxxxxxxx>
Cc: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Re: simple historian agent wants to get into cvs
From: Raimar Falke <i-freeciv-lists@xxxxxxxxxxxxx>
Date: Fri, 2 Apr 2004 20:26:54 +0200

On Fri, Apr 02, 2004 at 10:06:22AM -0800, nikodimka wrote:
> > There is commented code and comments about cities but no real
> > support?!
> 
> yes. those are stubs.

Either make these work or remove them.

> > > +typedef union {
> > > +  int null_arg;
> > > +  int int_arg;
> > > +  struct xy_arg {
> > > +    int x;
> > > +    int y;
> > > +  } xy_arg;
> > > +} arguments;
> > 
> > The use of typedefs in freeciv isn't encouraged.
> 
> what else then? just struct tags?

Something like this:

union arguments {
  int null_arg;
  int int_arg;
  struct xy_arg {
    int x;
    int y;
  } xy_arg;
};

Then you refer to it with "union arguments".

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  What's nice about GUI is that you see what you manipulate.
  What's bad about GUI is that you can only manipulate what you see.


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