flate

deflate implementation
git clone git://git.suckless.org/flate
Log | Files | Refs | README

commit 571bc4a540d0f6c3061cd36221b3e1183a0e6d6e
parent ec41bc56dfff45d543230c914648233874a93a06
Author: nsz <nszabolcs@gmail.com>
Date:   Tue, 11 Aug 2009 00:23:59 +0200

rm printhuff
Diffstat:
printhuff.c | 20--------------------
1 file changed, 0 insertions(+), 20 deletions(-)

diff --git a/printhuff.c b/printhuff.c @@ -1,20 +0,0 @@ -#include <stdio.h> - -/* print huff code tree to stderr */ -void printhuff(Huff *huff) { - int i; - int sum = 0; - - fprintf(stderr, "Huff huff = {\n\t.table = {"); - for (i = 0; i < 1 << huff->nbits; i++) - fprintf(stderr, "{%d, %u},", huff->table[i].len, huff->table[i].sym); - fprintf(stderr, "},\n\t.nbits = %u\n\t.sum = %u\n\t.count = {", huff->nbits, huff->sum); - for (i = 0; i < CodeBits; i++) - fprintf(stderr, "%u,", huff->count[i]); - fprintf(stderr, "},\n\t.symbol = {"); - for (i = 0; i < CodeBits; i++) - sum += huff->count[i]; - for (i = 0; i < sum; i++) - fprintf(stderr, "%u,", huff->symbol[i]); - fprintf(stderr, "}\n};\n"); -}