summaryrefslogtreecommitdiff
path: root/bgrep.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bgrep.cpp')
-rw-r--r--bgrep.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/bgrep.cpp b/bgrep.cpp
index 8759907..b3ff324 100644
--- a/bgrep.cpp
+++ b/bgrep.cpp
@@ -1,10 +1,12 @@
#include <stdio.h>
#include <stdlib.h>
#include "Input.h"
+#include "Main.h"
#define THRESHOLD 20480
-int main(int argc, char ** argv) {
+CODE_BEGINS
+virtual int startup() throw (GeneralException) {
unsigned int p = strtol(argv[1], 0, 0);
char * fn = argv[2];
Handle * f = new Input(fn);
@@ -26,4 +28,7 @@ int main(int argc, char ** argv) {
}
delete f;
+
+ return 0;
}
+CODE_ENDS \ No newline at end of file