diff options
Diffstat (limited to 'src/shell.c')
| -rw-r--r-- | src/shell.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/shell.c b/src/shell.c index 0001e0d..44665a8 100644 --- a/src/shell.c +++ b/src/shell.c | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | #define SHELL_C | ||
| 2 | |||
| 1 | #include "shell.h" | 3 | #include "shell.h" |
| 2 | 4 | ||
| 3 | static void cleanwhitespaces(char *line); | 5 | static void cleanwhitespaces(char *line); |
| @@ -7,7 +9,9 @@ bool | |||
| 7 | checkfiles() | 9 | checkfiles() |
| 8 | { | 10 | { |
| 9 | /* TODO: add more checks (other files, use checksum...) */ | 11 | /* TODO: add more checks (other files, use checksum...) */ |
| 10 | FILE *f; | 12 | /* How to check for pruning tables with new method? */ |
| 13 | /* Solution: use list of steps */ | ||
| 14 | /* | ||
| 11 | char fname[strlen(tabledir)+100]; | 15 | char fname[strlen(tabledir)+100]; |
| 12 | int i; | 16 | int i; |
| 13 | 17 | ||
| @@ -20,6 +24,7 @@ checkfiles() | |||
| 20 | else | 24 | else |
| 21 | fclose(f); | 25 | fclose(f); |
| 22 | } | 26 | } |
| 27 | */ | ||
| 23 | 28 | ||
| 24 | return true; | 29 | return true; |
| 25 | } | 30 | } |
| @@ -143,6 +148,21 @@ main(int argc, char *argv[]) | |||
| 143 | char *closing_cmd[1] = { "freemem" }; | 148 | char *closing_cmd[1] = { "freemem" }; |
| 144 | 149 | ||
| 145 | init_env(); | 150 | init_env(); |
| 151 | init_trans(); | ||
| 152 | |||
| 153 | /* | ||
| 154 | Cube c; | ||
| 155 | make_solved(&c); | ||
| 156 | c.co[0] = 1; | ||
| 157 | c.co[6] = 2; | ||
| 158 | print_cube(&c); | ||
| 159 | apply_trans(uf_mirror, &c); | ||
| 160 | print_cube(&c); | ||
| 161 | */ | ||
| 162 | |||
| 163 | /* | ||
| 164 | test_coord(&coord_coud_cpudsep); | ||
| 165 | */ | ||
| 146 | 166 | ||
| 147 | if (!checkfiles()) { | 167 | if (!checkfiles()) { |
| 148 | fprintf(stderr, | 168 | fprintf(stderr, |
