aboutsummaryrefslogtreecommitdiff
path: root/src/shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell.c')
-rw-r--r--src/shell.c10
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
5static void cleanwhitespaces(char *line); 3static void cleanwhitespaces(char *line);
@@ -9,9 +7,7 @@ bool
9checkfiles() 7checkfiles()
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
146int 140int
147main(int argc, char *argv[]) 141main(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

Generated with cgit - Back to sebastiano.tronto.net