aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/xzcat.c
AgeCommit message (Collapse)Author
2020-04-16Weed-whack a few warnings out of pending so allyesconfig is less noisy.Rob Landley
2017-05-23Add minof/maxof macros that autodetect type. Make xzcat use them.Rob Landley
2013-07-26This removes xz_mode.Isaac Dunham
Mostly outdated comments and unused function parameters/struct members.
2013-07-17make xzcat use loopfiles(), thereby allowing regular usage.Isaac Dunham
2013-07-17xzcat: remove XZ_(PREALLOC|SINGLE), inline xz_dec_bcj_createIsaac Dunham
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.
2013-07-06This inlines CRC64, and nothing more.Isaac Dunham
The functions involved were called only once.
2013-04-12Convert tabs to spaces.Rob Landley
2013-04-12xzcat: more cleanup and some shrinking.Isaac Dunham
-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.)
2013-04-11More xzcat cleanup.Rob Landley
2013-04-11More of same.Isaac Dunham
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)
2013-04-10Some xzcat cleanup by Isaac Dunham.Rob Landley
2013-03-15Isaac Dunham took the public domain xz-embedded code and made an xzcat. I ↵Rob Landley
glued all his files together into one big one and threw it in pending. It needs something between cleanup and a complete rewrite.