Update some structs for future features.
This commit is contained in:
+11
@@ -199,18 +199,29 @@ typedef void (__acc_cdecl *upx_progress_func_t)
|
|||||||
|
|
||||||
struct upx_callback_t
|
struct upx_callback_t
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
upx_alloc_func_t nalloc;
|
upx_alloc_func_t nalloc;
|
||||||
upx_free_func_t nfree;
|
upx_free_func_t nfree;
|
||||||
|
#endif
|
||||||
upx_progress_func_t nprogress;
|
upx_progress_func_t nprogress;
|
||||||
void * user1;
|
void * user1;
|
||||||
|
#if 0
|
||||||
unsigned user2;
|
unsigned user2;
|
||||||
unsigned user3;
|
unsigned user3;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
struct lzma_compress_config_t
|
struct lzma_compress_config_t
|
||||||
{
|
{
|
||||||
unsigned max_num_probs;
|
unsigned max_num_probs;
|
||||||
|
#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)); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -86,6 +86,13 @@ struct options_t {
|
|||||||
// compression runtime parameters - see struct ucl_compress_config_t
|
// compression runtime parameters - see struct ucl_compress_config_t
|
||||||
struct crp_lzma_t {
|
struct crp_lzma_t {
|
||||||
int dummy;
|
int dummy;
|
||||||
|
#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)); }
|
||||||
};
|
};
|
||||||
struct crp_ucl_t {
|
struct crp_ucl_t {
|
||||||
|
|||||||
Reference in New Issue
Block a user