Introduced class OptVar for tracking optionally set options. Also

added three new options for finetuning lzma compression.
This commit is contained in:
Markus F.X.J. Oberhumer
2006-10-12 13:47:15 +02:00
parent 407a9e5be0
commit 0ef3f75d7a
5 changed files with 135 additions and 44 deletions
+11 -6
View File
@@ -83,17 +83,20 @@ struct options_t {
};
int overlay;
// compression runtime parameters - see struct ucl_compress_config_t
// compression runtime parameters - see struct XXX_compress_config_t
struct crp_lzma_t {
int dummy;
typedef lzma_compress_config_t TT;
TT::pos_bits_t pos_bits; // pb
TT::lit_pos_bits_t lit_pos_bits; // lp
TT::lit_context_bits_t lit_context_bits; // lc
#if 0
unsigned pos_bits; // pb
unsigned lit_pos_bits; // lp
unsigned lit_context_bits; // lc
unsigned dict_size;
unsigned mf_passes;
#endif
void reset() { memset(this, 0, sizeof(*this)); }
void reset() {
memset(this, 0, sizeof(*this));
pos_bits.reset(); lit_pos_bits.reset(); lit_context_bits.reset();
}
};
struct crp_ucl_t {
unsigned max_offset;
@@ -162,6 +165,8 @@ struct options_t {
int strip_relocs;
const char *keep_resource;
} win32_pe;
void reset();
};
extern struct options_t *opt;