X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=include%2Fwimlib%2Fcompress_common.h;h=f2ed4109e8712741785defc100659d36b8e066e8;hb=f2aeb875aa7e73a486c6b4f8bdf4952e49ec8b8e;hp=7913a138734925aaae2a01a965390e33948fe7f7;hpb=3a3f5da4587c4a438de9c5061d038eb79b531b67;p=wimlib diff --git a/include/wimlib/compress_common.h b/include/wimlib/compress_common.h index 7913a138..f2ed4109 100644 --- a/include/wimlib/compress_common.h +++ b/include/wimlib/compress_common.h @@ -9,11 +9,11 @@ #include "wimlib/types.h" -extern void -make_canonical_huffman_code(unsigned num_syms, - unsigned max_codeword_len, - const u32 freq_tab[restrict], - u8 lens[restrict], - u32 codewords[restrict]); +#define MAX_NUM_SYMS 799 /* LZMS_MAX_NUM_SYMS */ +#define MAX_CODEWORD_LEN 16 + +void +make_canonical_huffman_code(unsigned num_syms, unsigned max_codeword_len, + const u32 freqs[], u8 lens[], u32 codewords[]); #endif /* _WIMLIB_COMPRESS_COMMON_H */