aboutsummaryrefslogtreecommitdiff
path: root/src/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands.c')
-rw-r--r--src/commands.c22
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);
18static void scramble_exec(CommandArgs *args); 18static void scramble_exec(CommandArgs *args);
19static void steps_exec(CommandArgs *args); 19static void steps_exec(CommandArgs *args);
20static void commands_exec(CommandArgs *args); 20static void commands_exec(CommandArgs *args);
21static void freemem_exec(CommandArgs *args);
21static void print_exec(CommandArgs *args); 22static void print_exec(CommandArgs *args);
22static void twophase_exec(CommandArgs *args); 23static void twophase_exec(CommandArgs *args);
23static void help_exec(CommandArgs *args); 24static void help_exec(CommandArgs *args);
@@ -88,6 +89,15 @@ commands_cmd = {
88}; 89};
89 90
90Command 91Command
92freemem_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
100Command
91print_cmd = { 101print_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
537static void 547static void
548freemem_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
559static void
538print_exec(CommandArgs *args) 560print_exec(CommandArgs *args)
539{ 561{
540 init_moves(); 562 init_moves();

Generated with cgit - Back to sebastiano.tronto.net