]> wimlib.net Git - wimlib/blob - include/wimlib/xpress.h
Compiler stuff
[wimlib] / include / wimlib / xpress.h
1 #ifndef _WIMLIB_XPRESS_H
2 #define _WIMLIB_XPRESS_H
3
4 /* See the comments in xpress-decompress.c about the XPRESS format. */
5
6 //#define ENABLE_XPRESS_DEBUG
7 #ifdef ENABLE_XPRESS_DEBUG
8 #       define XPRESS_DEBUG DEBUG
9 #else
10 #       define XPRESS_DEBUG(format, ...)
11 #endif
12
13 #define XPRESS_NUM_CHARS        256
14 #define XPRESS_NUM_SYMBOLS      512
15 #define XPRESS_MAX_CODEWORD_LEN 15
16 #define XPRESS_TABLEBITS        12
17
18 #define XPRESS_END_OF_DATA      256
19
20 #define XPRESS_MIN_OFFSET       1
21 #define XPRESS_MAX_OFFSET       65535
22
23 #define XPRESS_MIN_MATCH        3
24 #define XPRESS_MAX_MATCH        65538
25
26 #endif /* _WIMLIB_XPRESS_H */