X-Git-Url: https://git.llucax.com/z.facultad/75.06/jacu.git/blobdiff_plain/816b508c140a36259ad9864d1b655b8336e9ac30..87673889dd7bc0a18e9cefd5cae898ef0e864ba8:/src/jacu.c?ds=inline diff --git a/src/jacu.c b/src/jacu.c index 3d18ed3..fc4188f 100644 --- a/src/jacu.c +++ b/src/jacu.c @@ -1,7 +1,8 @@ -#include "statichuff/statichuff.h" #include "blocksorting/bs.h" #include "mtf/mtf.h" +#include "zerogrouping/zerogrouping.h" +#include "statichuff/statichuff.h" #include "vfile/vfile.h" #include #include @@ -11,6 +12,7 @@ int main(int argc, char* argv[]) { int cflag = 0; int dflag = 0; + int zflag = 0; int tflag = 0; int pflag = 0; long int volumesize = 0; @@ -18,7 +20,7 @@ int main(int argc, char* argv[]) int ch; t_BlockSort *bs; - while ((ch = getopt(argc, argv, "cdt:p:")) != -1) { + while ((ch = getopt(argc, argv, "cdzt:p:")) != -1) { switch (ch) { case 'c': cflag = 1; @@ -27,6 +29,9 @@ int main(int argc, char* argv[]) case 'd': dflag = 1; break; + case 'z': zflag = 1; + break; + case 't': tflag = 1; volumesize = atol(optarg); break; @@ -83,8 +88,22 @@ int main(int argc, char* argv[]) /* Le aplico el MTF, salteo el tamaƱo del bloque para que no se pierda. */ mtf = jacu_mtf(salida+sizeof(unsigned long int), i+sizeof(unsigned long int)); - for(j=0; j