diff options
Diffstat (limited to 'src/commands.c')
| -rw-r--r-- | src/commands.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/commands.c b/src/commands.c index 6bfc7b7..1396b69 100644 --- a/src/commands.c +++ b/src/commands.c | |||
| @@ -18,6 +18,7 @@ static void solve_exec(CommandArgs *args); | |||
| 18 | static void scramble_exec(CommandArgs *args); | 18 | static void scramble_exec(CommandArgs *args); |
| 19 | static void steps_exec(CommandArgs *args); | 19 | static void steps_exec(CommandArgs *args); |
| 20 | static void commands_exec(CommandArgs *args); | 20 | static void commands_exec(CommandArgs *args); |
| 21 | static void freemem_exec(CommandArgs *args); | ||
| 21 | static void print_exec(CommandArgs *args); | 22 | static void print_exec(CommandArgs *args); |
| 22 | static void twophase_exec(CommandArgs *args); | 23 | static void twophase_exec(CommandArgs *args); |
| 23 | static void help_exec(CommandArgs *args); | 24 | static void help_exec(CommandArgs *args); |
| @@ -88,6 +89,15 @@ commands_cmd = { | |||
| 88 | }; | 89 | }; |
| 89 | 90 | ||
| 90 | Command | 91 | Command |
| 92 | freemem_cmd = { | ||
| 93 | .name = "freemem", | ||
| 94 | .usage = "freemem", | ||
| 95 | .description = "free large tables from RAM", | ||
| 96 | .parse_args = parse_no_arg, | ||
| 97 | .exec = freemem_exec, | ||
| 98 | }; | ||
| 99 | |||
| 100 | Command | ||
| 91 | print_cmd = { | 101 | print_cmd = { |
| 92 | .name = "print", | 102 | .name = "print", |
| 93 | .usage = "print SCRAMBLE", | 103 | .usage = "print SCRAMBLE", |
| @@ -535,6 +545,18 @@ commands_exec(CommandArgs *args) | |||
| 535 | } | 545 | } |
| 536 | 546 | ||
| 537 | static void | 547 | static void |
| 548 | freemem_exec(CommandArgs *args) | ||
| 549 | { | ||
| 550 | /* TODO: implement these functions | ||
| 551 | free_allpd(); | ||
| 552 | free_allsd(); | ||
| 553 | free_invtables(); | ||
| 554 | free_ttables(); | ||
| 555 | free_mtables(); | ||
| 556 | */ | ||
| 557 | } | ||
| 558 | |||
| 559 | static void | ||
| 538 | print_exec(CommandArgs *args) | 560 | print_exec(CommandArgs *args) |
| 539 | { | 561 | { |
| 540 | init_moves(); | 562 | init_moves(); |
