History log of /external/toybox/toys/pending/xzcat.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0c2509957b6291fb136eca4a5c278466045ce31d 26-Jul-2013 Isaac Dunham <idunham@lavabit.com> This removes xz_mode.
Mostly outdated comments and unused function parameters/struct members.
/external/toybox/toys/pending/xzcat.c
39af4ae3e61d352c3faa7d1b87e6ac6fdb69add1 18-Jul-2013 Isaac Dunham <idunham@lavabit.com> make xzcat use loopfiles(), thereby allowing regular usage.
/external/toybox/toys/pending/xzcat.c
9641a3c6c5447c76f56cefd1844a4e545c015822 18-Jul-2013 Isaac Dunham <idunham@lavabit.com> xzcat: remove XZ_(PREALLOC|SINGLE), inline xz_dec_bcj_create

Because we only use XZ_DYNALLOC, there's a bunch of dead code.
This patch removes the #ifdef's and if()s associated with support for
multiple modes.
single_call was only used to store the mode; it is no longer needed.
A little bit of reorganization was needed to reduce the number of prototypes.
Documentation associated with dead code was dropped.

There are still some relics of multiple modes in the continued presence
of "XZ_DYNALLOC" and xz_mode.

Additionally, I inlined xz_dec_bcj_create; it was called once.

This loses about 125 lines, mostly comments.
/external/toybox/toys/pending/xzcat.c
c810f9f80b9db62de09b6cf4c6ca770eed72ce53 06-Jul-2013 Isaac Dunham <idunham@lavabit.com> This inlines CRC64, and nothing more.
The functions involved were called only once.
/external/toybox/toys/pending/xzcat.c
18993e2f3af291eea7a175547862d057b7d83708 13-Apr-2013 Rob Landley <rob@landley.net> Convert tabs to spaces.
/external/toybox/toys/pending/xzcat.c
4ffface11f7857683ddb1f935fb05809821458ab 13-Apr-2013 Isaac Dunham <idunham@lavabit.com> xzcat: more cleanup and some shrinking.

-drop __always_inline (c. 1.5k of binary size),
-remove the xz_dec_bcj_end and memzero macros
(memeq is left because of negative returns),
-disable XZ_DEC_SINGLE and XZ_DEC_PREALLOC, since we aren't using them.
(160 bytes)
-Merge xz_dec_lzma2_end into xz_dec_end
-Move xz_crc32 to where it's defined.
(That does not seem to be duplicated elsewhere in toybox.)
/external/toybox/toys/pending/xzcat.c
1cabcc2e9a75fc8ba0c49e888907e3e310cfcd41 11-Apr-2013 Rob Landley <rob@landley.net> More xzcat cleanup.
/external/toybox/toys/pending/xzcat.c
052491266f02585c7c990100cb7457e56755c336 11-Apr-2013 Isaac Dunham <idunham@lavabit.com> More of same.
Actually, it's not quite the same:
-use crc_init(xz_crc32_table,1) -- I guessed on this one based on a match between magic constants, then tested it. First try was wrong, but this works.
(This is the sole difference in terms of actual _code_, as opposed to cleaning up defines and the like--here, it adds 48 bytes to final size if xzcat is the only toy, but drops 32 bytes if bzcat is also enabled...)
-Move some crc64 code to where the comments are. This puts them near the area where they're used.
-Remove some relics of separate files (we had half a dozen "this file is in the public domain" notices, a duplicate include, and used extern declarations for functions in the samefile)
/external/toybox/toys/pending/xzcat.c
9bd7a1696e7060e51ec0d0aaef477eaf85aaf216 10-Apr-2013 Rob Landley <rob@landley.net> Some xzcat cleanup by Isaac Dunham.
/external/toybox/toys/pending/xzcat.c
971d57ec4a9e14527e7582a5723d9634182d3fa7 16-Mar-2013 Rob Landley <rob@landley.net> Isaac Dunham took the public domain xz-embedded code and made an xzcat. I glued all his files together into one big one and threw it in pending. It needs something between cleanup and a complete rewrite.
/external/toybox/toys/pending/xzcat.c