Modified action() to take take a copy of command rather than a pointer.
It should be safer now that we're not scribbling all over command in action(), as it's closer to pure. Also fixed a bug in say.
This commit is contained in:
parent
30f13c6c25
commit
ca5374edc3
4 changed files with 114 additions and 111 deletions
2
advent.h
2
advent.h
|
@ -225,7 +225,7 @@ extern int suspend(void);
|
|||
extern int resume(void);
|
||||
extern int restore(FILE *);
|
||||
extern long initialise(void);
|
||||
extern int action(struct command_t *command);
|
||||
extern int action(struct command_t command);
|
||||
extern void state_change(obj_t, int);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue