Record raw arguments, to be used in the next changesets:

(player): New member comtail.
(parse): New parameter tail.  Reorder parameter list.
(command, execute): Pass player->comtail.
(player_login, emp_config, do_unit_move): Pass NULL.  No functional
change.
This commit is contained in:
Markus Armbruster 2007-11-25 13:55:52 +00:00
parent 3fcee8ddd1
commit 90631d56ed
7 changed files with 33 additions and 26 deletions

View file

@ -60,11 +60,12 @@ struct player {
natid cnum;
int state;
int flags;
struct cmndstr *command;
struct cmndstr *command; /* currently executing command */
struct iop *iop;
char combuf[1024]; /* command input buffer, UTF-8 */
char *argp[128]; /* arguments, ASCII */
char *condarg; /* conditional, ASCII */
char *argp[128]; /* arguments, ASCII, valid if command */
char *condarg; /* conditional, ASCII, valid if command */
char *comtail[128]; /* start of args in combuf[] */
time_t lasttime; /* when minleft was last debited */
int ncomstat;
int minleft;