diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-05-01 12:48:55 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-05-01 12:48:55 +0200 |
| commit | 6f4313bc1ed5be794146e6ca2fd73f48c7906061 (patch) | |
| tree | a79c8be8613e8b4256d609477f98f440bfd7168c /src/shell.c | |
| parent | 1a5bfe9b08707b0aef748d7921a419ba4a046fba (diff) | |
| download | nissy-classic-6f4313bc1ed5be794146e6ca2fd73f48c7906061.tar.gz nissy-classic-6f4313bc1ed5be794146e6ca2fd73f48c7906061.zip | |
Reverted to 2.0.3
Diffstat (limited to 'src/shell.c')
| -rw-r--r-- | src/shell.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/shell.c b/src/shell.c index 4faa0a8..0001e0d 100644 --- a/src/shell.c +++ b/src/shell.c | |||
| @@ -1,5 +1,3 @@ | |||
| 1 | #define SHELL_C | ||
| 2 | |||
| 3 | #include "shell.h" | 1 | #include "shell.h" |
| 4 | 2 | ||
| 5 | static void cleanwhitespaces(char *line); | 3 | static void cleanwhitespaces(char *line); |
| @@ -9,9 +7,7 @@ bool | |||
| 9 | checkfiles() | 7 | checkfiles() |
| 10 | { | 8 | { |
| 11 | /* TODO: add more checks (other files, use checksum...) */ | 9 | /* TODO: add more checks (other files, use checksum...) */ |
| 12 | /* How to check for pruning tables with new method? */ | 10 | FILE *f; |
| 13 | /* Solution: use list of steps */ | ||
| 14 | /* | ||
| 15 | char fname[strlen(tabledir)+100]; | 11 | char fname[strlen(tabledir)+100]; |
| 16 | int i; | 12 | int i; |
| 17 | 13 | ||
| @@ -24,7 +20,6 @@ checkfiles() | |||
| 24 | else | 20 | else |
| 25 | fclose(f); | 21 | fclose(f); |
| 26 | } | 22 | } |
| 27 | */ | ||
| 28 | 23 | ||
| 29 | return true; | 24 | return true; |
| 30 | } | 25 | } |
| @@ -142,14 +137,12 @@ launch(bool batchmode) | |||
| 142 | free(shell_argv); | 137 | free(shell_argv); |
| 143 | } | 138 | } |
| 144 | 139 | ||
| 145 | #ifndef TEST | ||
| 146 | int | 140 | int |
| 147 | main(int argc, char *argv[]) | 141 | main(int argc, char *argv[]) |
| 148 | { | 142 | { |
| 149 | char *closing_cmd[1] = { "freemem" }; | 143 | char *closing_cmd[1] = { "freemem" }; |
| 150 | 144 | ||
| 151 | init_env(); | 145 | init_env(); |
| 152 | init_trans(); | ||
| 153 | 146 | ||
| 154 | if (!checkfiles()) { | 147 | if (!checkfiles()) { |
| 155 | fprintf(stderr, | 148 | fprintf(stderr, |
| @@ -174,4 +167,3 @@ main(int argc, char *argv[]) | |||
| 174 | 167 | ||
| 175 | return 0; | 168 | return 0; |
| 176 | } | 169 | } |
| 177 | #endif | ||
