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:
parent
3fcee8ddd1
commit
90631d56ed
7 changed files with 33 additions and 26 deletions
|
@ -141,8 +141,8 @@ command(void)
|
|||
|
||||
if (getcommand(player->combuf) < 0)
|
||||
return 0;
|
||||
if (parse(player->combuf, player->argp, &player->condarg,
|
||||
scanspace, &redir) < 0) {
|
||||
if (parse(player->combuf, scanspace, player->argp, player->comtail,
|
||||
&player->condarg, &redir) < 0) {
|
||||
pr("See \"info Syntax\"?\n");
|
||||
} else {
|
||||
if (dispatch(player->combuf, redir) < 0)
|
||||
|
@ -287,8 +287,8 @@ execute(void)
|
|||
while (!failed && status()) {
|
||||
if (recvclient(buf, sizeof(buf)) < 0)
|
||||
break;
|
||||
if (parse(buf, player->argp, &player->condarg,
|
||||
scanspace, &redir) < 0) {
|
||||
if (parse(buf, scanspace, player->argp, player->comtail,
|
||||
&player->condarg, &redir) < 0) {
|
||||
failed = 1;
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue