summaryrefslogtreecommitdiff
path: root/dteutils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dteutils.cpp')
-rw-r--r--dteutils.cpp47
1 files changed, 0 insertions, 47 deletions
diff --git a/dteutils.cpp b/dteutils.cpp
index 7c5057d..4ae8668 100644
--- a/dteutils.cpp
+++ b/dteutils.cpp
@@ -340,50 +340,3 @@ void read_thingy_file(FILE * f) {
dte_text[ptr] = dte_text[ptr + 1] = dte_text[ptr + 2] = dte_text[ptr + 3] = 0;
dte_text_size = ptr;
}
-
-#ifdef DTEMAIN
-
-int main(int argc, char ** argv) {
- FILE * f, * t;
- long old_size;
- int i;
-
- verbosity = M_INFO;
-
- printm(M_STATUS, "Reading thingy table\n");
- t = fopen(argv[2], "r");
- read_thingy(t);
- fclose(t);
-
- f = fopen(argv[1], "r");
- dte_text_size = filesize(f);
- dte_text = (char *) calloc(dte_text_size + 4, 1);
- printm(M_STATUS, "Reading file, size = %li\n", dte_text_size);
- read_thingy_file(f);
- fclose(f);
-
- printm(M_STATUS, "True size = %li\n", old_size = dte_text_size);
-
- printm(M_STATUS, "Compressing file.\n");
- dte_compress();
-
- printm(M_STATUS, "Rereading file.\n");
- f = fopen(argv[1], "r");
- dte_text_size = filesize(f);
- dte_text = (char *) calloc(dte_text_size + 4, 1);
- read_thingy_file(f);
- fclose(f);
-
- printm(M_STATUS, "True size = %li, real gain = %li\n", dte_text_size, old_size - dte_text_size);
-
- printm(M_INFO, "DTE Usage:\n");
- for (i = 0; i < 256; i++) {
- printm(M_INFO, "Entry %i ('%s') used at %i\n", i, things[i], dte_usage[i]);
- }
-
- printm(M_INFO, "Number of couples: %i\n", tnb_dte);
-
- free(dte_text);
-}
-
-#endif