Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2001:
[Freeciv-Dev] Re: [RFC PATCH] init_techs
Home

[Freeciv-Dev] Re: [RFC PATCH] init_techs

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Justin Moore <justin@xxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [RFC PATCH] init_techs
From: Arien Malec <arien_malec@xxxxxxxxx>
Date: Sat, 22 Sep 2001 21:52:51 -0700 (PDT)

--- Arien Malec <arien_malec@xxxxxxxxx> wrote:
> Or something. Otherwise the callback functions have to typecheck their
> arguments. If the parsing code typechecks, the callback functions can be:
> 
> typedef void (*int_command_func) (int);
> typedef void (*str_command_func) (char *);
> typedef void (*int_list_command_func) (int, int *);
> typedef void (*str_list_command_func) (int, char **);
> 
> (For the list callbacks, the first function is the size of the list).

Ahem. That's "first argument" of course. With this change, and with a sensible
dotted approach to naming commands, we have the basic architecture for a
complete unification of server command processing and rulesets. I think....

Arien

__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger. 
http://im.yahoo.com


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