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
main.c
2
main.c
|
@ -1139,7 +1139,7 @@ Lookup:
|
|||
BUG(VOCABULARY_TYPE_N_OVER_1000_NOT_BETWEEN_0_AND_3); // LCOV_EXCL_LINE
|
||||
}
|
||||
|
||||
switch (action(&command)) {
|
||||
switch (action(command)) {
|
||||
case GO_TERMINATE:
|
||||
return true;
|
||||
case GO_MOVE:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue