1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00
xz-archive/src/liblzma/common
Lasse Collin 418d64a32e Fix a design error in liblzma API.
Originally the idea was that using LZMA_FULL_FLUSH
with Stream encoder would read the filter chain
from the same array that was used to intialize the
Stream encoder. Since most apps wouldn't use
LZMA_FULL_FLUSH, most apps wouldn't need to keep
the filter chain available after initializing the
Stream encoder. However, due to my mistake, it
actually required keeping the array always available.

Since setting the new filter chain via the array
used at initialization time is not a nice way to do
it for a couple of reasons, this commit ditches it
and introduces lzma_filters_update(). This new function
replaces also the "persistent" flag used by LZMA2
(and to-be-designed Subblock filter), which was also
an ugly thing to do.

Thanks to Alexey Tourbin for reminding me about the problem
that Stream encoder used to require keeping the filter
chain allocated.
2009-11-14 18:59:19 +02:00
..
alone_decoder.c Fixed a crash in liblzma. 2009-04-28 23:08:32 +03:00
alone_decoder.h Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
alone_encoder.c Use a tuklib module for integer handling. 2009-10-04 22:57:12 +03:00
auto_decoder.c Fixed a crash in liblzma. 2009-04-28 23:08:32 +03:00
block_buffer_decoder.c Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
block_buffer_encoder.c Make the raw value of the Check field available to applications 2009-05-26 14:48:48 +03:00
block_decoder.c Make the raw value of the Check field available to applications 2009-05-26 14:48:48 +03:00
block_decoder.h Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
block_encoder.c Fix a design error in liblzma API. 2009-11-14 18:59:19 +02:00
block_encoder.h Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
block_header_decoder.c Use a tuklib module for integer handling. 2009-10-04 22:57:12 +03:00
block_header_encoder.c Use a tuklib module for integer handling. 2009-10-04 22:57:12 +03:00
block_util.c Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
bsr.h Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
chunk_size.c Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
common.c Fix a design error in liblzma API. 2009-11-14 18:59:19 +02:00
common.h Fix a design error in liblzma API. 2009-11-14 18:59:19 +02:00
easy_buffer_encoder.c Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
easy_decoder_memusage.c Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
easy_encoder.c Fix a design error in liblzma API. 2009-11-14 18:59:19 +02:00
easy_encoder_memusage.c Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
easy_preset.c Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
easy_preset.h Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
filter_buffer_decoder.c Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
filter_buffer_encoder.c Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
filter_common.c Fix a design error in liblzma API. 2009-11-14 18:59:19 +02:00
filter_common.h Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
filter_decoder.c Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
filter_decoder.h Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
filter_encoder.c Fix a design error in liblzma API. 2009-11-14 18:59:19 +02:00
filter_encoder.h Fix a design error in liblzma API. 2009-11-14 18:59:19 +02:00
filter_flags_decoder.c Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
filter_flags_encoder.c Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
index.c Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
index.h Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
index_decoder.c Fixed a crash in liblzma. 2009-04-28 23:08:32 +03:00
index_encoder.c Fixed a crash in liblzma. 2009-04-28 23:08:32 +03:00
index_encoder.h Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
index_hash.c Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
Makefile.inc Build system fixes 2009-06-30 17:09:57 +03:00
stream_buffer_decoder.c Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
stream_buffer_encoder.c Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
stream_decoder.c Fix a couple of warnings. 2009-09-11 09:25:09 +03:00
stream_decoder.h Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
stream_encoder.c Fix a design error in liblzma API. 2009-11-14 18:59:19 +02:00
stream_encoder.h Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
stream_flags_common.c Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
stream_flags_common.h Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
stream_flags_decoder.c Use a tuklib module for integer handling. 2009-10-04 22:57:12 +03:00
stream_flags_encoder.c Use a tuklib module for integer handling. 2009-10-04 22:57:12 +03:00
vli_decoder.c Fix incorrect use of "restrict". 2009-09-15 21:07:23 +03:00
vli_encoder.c Fix incorrect use of "restrict". 2009-09-15 21:07:23 +03:00
vli_size.c Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00