From a4b2f0e262d30c15eeb4f94a23b199a7996979c9 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Sun, 20 Jun 2004 20:33:44 +0000 Subject: [PATCH] Se borra archivo de prueba. --- src/statichuff/Makefile | 34 ++++++++++++++++++---------------- src/statichuff/input.dat | 2 -- src/statichuff/statichuff.c | 5 +++-- 3 files changed, 21 insertions(+), 20 deletions(-) delete mode 100644 src/statichuff/input.dat diff --git a/src/statichuff/Makefile b/src/statichuff/Makefile index be2783f..4168444 100644 --- a/src/statichuff/Makefile +++ b/src/statichuff/Makefile @@ -24,18 +24,16 @@ # $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 index 9178921..0000000 --- a/src/statichuff/input.dat +++ /dev/null @@ -1,2 +0,0 @@ -Esto es una prueba de compresion de texto para ver como comprime el huffman -estatico. diff --git a/src/statichuff/statichuff.c b/src/statichuff/statichuff.c index 2fed829..6d6de7f 100644 --- a/src/statichuff/statichuff.c +++ b/src/statichuff/statichuff.c @@ -1,5 +1,6 @@ #include "statichuff.h" +#include 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; -- 2.43.0