[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]
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.
|
|