summaryrefslogtreecommitdiff
path: root/xdelta3/xdelta3-decode.h
diff options
context:
space:
mode:
authorJoshua MacDonald <josh.macdonald@gmail.com>2015-11-17 22:52:01 -0800
committerJoshua MacDonald <josh.macdonald@gmail.com>2015-11-17 22:52:01 -0800
commitdc410accc1e1dcef1100d4c047fadb3c6545d172 (patch)
tree5df6805271e4a6d79b385a25df6f487010593d78 /xdelta3/xdelta3-decode.h
parent97a6543f64e84821b638a60c88c814c2bdcdfc60 (diff)
Simplifies xd3_srcwin_move_point; reads the full max_winsize before starting to compress (see notes in the corresponding comments); eliminates xd3_stream::frontier_pos; changes as a result, and improvements in testing/regtest.cc; tested on osx-darwin
Diffstat (limited to 'xdelta3/xdelta3-decode.h')
-rw-r--r--xdelta3/xdelta3-decode.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/xdelta3/xdelta3-decode.h b/xdelta3/xdelta3-decode.h
index dc28323..6b3815f 100644
--- a/xdelta3/xdelta3-decode.h
+++ b/xdelta3/xdelta3-decode.h
@@ -207,9 +207,6 @@ xd3_decode_section (xd3_stream *stream,
207 /* No allocation/copy needed */ 207 /* No allocation/copy needed */
208 section->buf = stream->next_in; 208 section->buf = stream->next_in;
209 sect_take = section->size; 209 sect_take = section->size;
210
211 IF_DEBUG2 (DP(RINT "[xd3_decode_section] copy==0 @ 0 %u\n",
212 sect_take, section->alloc1));
213 } 210 }
214 else 211 else
215 { 212 {
@@ -1166,8 +1163,8 @@ xd3_decode_input (xd3_stream *stream)
1166 &src->cpyoff_blocks, 1163 &src->cpyoff_blocks,
1167 &src->cpyoff_blkoff); 1164 &src->cpyoff_blkoff);
1168 1165
1169 IF_DEBUG1(DP(RINT 1166 IF_DEBUG2(DP(RINT
1170 "decode cpyoff %"Q"u " 1167 "[decode_cpyoff] %"Q"u "
1171 "cpyblkno %"Q"u " 1168 "cpyblkno %"Q"u "
1172 "cpyblkoff %u " 1169 "cpyblkoff %u "
1173 "blksize %u\n", 1170 "blksize %u\n",