]> git.llucax.com Git - z.facultad/75.06/jacu.git/commitdiff
Se borra archivo de prueba.
authorLeandro Lucarella <llucax@gmail.com>
Sun, 20 Jun 2004 20:33:44 +0000 (20:33 +0000)
committerLeandro Lucarella <llucax@gmail.com>
Sun, 20 Jun 2004 20:33:44 +0000 (20:33 +0000)
src/statichuff/Makefile
src/statichuff/input.dat [deleted file]
src/statichuff/statichuff.c

index be2783f0a567bc279716b26ab2602ff2c7aab4c0..416844409b4a86b7194a6023a15e21545b40d019 100644 (file)
 # $Id: bufford.c 624 2004-05-30 20:18:04Z llucare $
 #
 
-TARGETS=main tabla_mtf.c
-COMMON=
-SRCS=main.c statichuff.c tabla_mtf.c
+TARGETS=shuff
+COMMON=statichuff.o
+SRCS=shuff.c statichuff.c
 
 #CFLAGS=-O3 -Wall -DNDEBUG
 CFLAGS=-ggdb -Wall -DDEBUG
 
 all: $(TARGETS)
 
-statichuff: $(COMMON) statichuff.o
-
-tabla_mtf: $(COMMON) tabla_mtf.o
+shuff: $(COMMON) shuff.o
 
 depend:
        makedepend -- $(CFLAGS) -- $(SRCS)
@@ -47,21 +45,25 @@ clean:
 
 # DO NOT DELETE
 
-main.o: statichuff.h /usr/include/stdio.h /usr/include/features.h
-main.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h
-main.o: /usr/include/bits/types.h /usr/include/bits/wordsize.h
-main.o: /usr/include/bits/typesizes.h /usr/include/libio.h
-main.o: /usr/include/_G_config.h /usr/include/wchar.h
-main.o: /usr/include/bits/wchar.h /usr/include/gconv.h
-main.o: /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h
-main.o: /usr/include/unistd.h /usr/include/bits/posix_opt.h
-main.o: /usr/include/bits/confname.h /usr/include/stdlib.h
+shuff.o: statichuff.h /usr/include/stdio.h /usr/include/features.h
+shuff.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h
+shuff.o: /usr/lib/gcc-lib/i486-linux/3.3.4/include/stddef.h
+shuff.o: /usr/include/bits/types.h /usr/include/bits/wordsize.h
+shuff.o: /usr/include/bits/typesizes.h /usr/include/libio.h
+shuff.o: /usr/include/_G_config.h /usr/include/wchar.h
+shuff.o: /usr/include/bits/wchar.h /usr/include/gconv.h
+shuff.o: /usr/lib/gcc-lib/i486-linux/3.3.4/include/stdarg.h
+shuff.o: /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h
+shuff.o: /usr/include/unistd.h /usr/include/bits/posix_opt.h
+shuff.o: /usr/include/bits/confname.h /usr/include/malloc.h
 statichuff.o: statichuff.h /usr/include/stdio.h /usr/include/features.h
 statichuff.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h
+statichuff.o: /usr/lib/gcc-lib/i486-linux/3.3.4/include/stddef.h
 statichuff.o: /usr/include/bits/types.h /usr/include/bits/wordsize.h
 statichuff.o: /usr/include/bits/typesizes.h /usr/include/libio.h
 statichuff.o: /usr/include/_G_config.h /usr/include/wchar.h
 statichuff.o: /usr/include/bits/wchar.h /usr/include/gconv.h
+statichuff.o: /usr/lib/gcc-lib/i486-linux/3.3.4/include/stdarg.h
 statichuff.o: /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h
 statichuff.o: /usr/include/unistd.h /usr/include/bits/posix_opt.h
-statichuff.o: /usr/include/bits/confname.h
+statichuff.o: /usr/include/bits/confname.h /usr/include/stdlib.h
diff --git a/src/statichuff/input.dat b/src/statichuff/input.dat
deleted file mode 100644 (file)
index 9178921..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Esto es una prueba de compresion de texto para ver como comprime el huffman
-estatico.
index 2fed82978ff64c61fbcfb9c583692c857855e6f7..6d6de7f613f078696870adb19d79fbbed25151ac 100644 (file)
@@ -1,5 +1,6 @@
 
 #include "statichuff.h"
+#include <stdlib.h>
 
 void putbit(char bit, char restart, char flush, FILE *fp)
 {
@@ -190,8 +191,8 @@ void shuff_buildcodes(SHUFFCODE *table, SHUFFNODE *node, int level, int code)
 
 
 
-int shuff_encode_symbols(t_freq *ftable, SHUFFCODE *ctable, char* inputfile, char *outputfile) {
-
+int shuff_encode_symbols(t_freq *ftable, SHUFFCODE *ctable, char* inputfile, char *outputfile)
+{
        FILE *fpsource,*fpdest;
        int symbol,i;
        unsigned long int sourcesize;