#define MAJOR_VERSION 0 #define MINOR_VERSION 1 #define MAX_CHARACTERS 256 #define MAX_NODES (MAX_CHARACTERS * MAX_CHARACTERS) #define NODE_STEP 16 #define READ_BLOC 16 #define WRITE_BLOC 8 #define REMAP_SIZE 65536 typedef struct _huffman_t { unsigned char character; unsigned int nOccurrences; int code; int nBits; struct _huffman_t * left; struct _huffman_t * right; } huffman_t; huffman_t HuffmanCodes[MAX_NODES + 1]; huffman_t * HuffmanSorted[MAX_NODES + 1]; huffman_t * HuffmanRoot = NULL; int nHuffmanCodes = 0;