diff options
author | josh.macdonald <jmacd@users.noreply.github.com> | 2009-11-08 17:31:16 +0000 |
---|---|---|
committer | josh.macdonald <jmacd@users.noreply.github.com> | 2009-11-08 17:31:16 +0000 |
commit | 299d98b8710ae6e6b84ec78a759d91a15448a8b9 (patch) | |
tree | 153d9ddda5649ef749eb1ebf3a3021c5140d1b37 /xdelta3/xdelta3.h | |
parent | a42182cd17787a521afa61b2cea719ae67b7d45b (diff) |
Rewrote main_set_source() to delay deciding lru_size (effectively
option_srcwinsz) until after decompression state is known. Working
but definitely needs more testing.
Diffstat (limited to 'xdelta3/xdelta3.h')
-rw-r--r-- | xdelta3/xdelta3.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xdelta3/xdelta3.h b/xdelta3/xdelta3.h index 6258957..5b99a72 100644 --- a/xdelta3/xdelta3.h +++ b/xdelta3/xdelta3.h | |||
@@ -834,9 +834,12 @@ struct _xd3_stream | |||
834 | 834 | ||
835 | // SRCWIN | 835 | // SRCWIN |
836 | // these variables plus srcwin_maxsz above (set by config) | 836 | // these variables plus srcwin_maxsz above (set by config) |
837 | int srcwin_decided; /* boolean: true if the | 837 | int srcwin_decided; /* boolean: true if srclen and |
838 | srclen,srcbase have been | 838 | srcbase have been |
839 | decided. */ | 839 | decided. */ |
840 | int srcwin_decided_early; /* boolean: true if srclen | ||
841 | and srcbase were | ||
842 | decided early. */ | ||
840 | xoff_t srcwin_cksum_pos; /* Source checksum position */ | 843 | xoff_t srcwin_cksum_pos; /* Source checksum position */ |
841 | 844 | ||
842 | // MATCH | 845 | // MATCH |