made bzip2 smaller than zlib mode !!!

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1241 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
justin1014 2002-10-01 01:57:14 +00:00
parent d14d52c461
commit 77cb319b8c
9 changed files with 38 additions and 569 deletions

View file

@ -64,7 +64,7 @@
#include <stdlib.h>
#include "bzlib.h"
#include "bzlib.h"
/*-- General stuff. --*/
@ -123,28 +123,6 @@ typedef unsigned short UInt16;
/*-- Stuff for randomising repetitive blocks. --*/
extern Int16 BZ2_rNums[512];
#define BZ_RAND_DECLS \
Int32 rNToGo; \
Int32 rTPos
#define BZ_RAND_INIT_MASK \
s->rNToGo = s->rTPos = 0
#define BZ_RAND_MASK (!(s->rNToGo-1))
#define BZ_RAND_UPD_MASK \
if (s->rNToGo == 0) { \
s->rNToGo = BZ2_rNums[s->rTPos]; \
if (++s->rTPos == 512) s->rTPos = 0; \
} \
s->rNToGo--;
/*-- Stuff for doing CRCs. --*/
//extern UInt32 BZ2_crc32Table[256];
@ -226,7 +204,6 @@ typedef
/* run-length-encoding of the input */
UInt32 state_in_ch;
Int32 state_in_len;
BZ_RAND_DECLS;
/* input and output limits and current posns */
Int32 nblock;
@ -357,8 +334,6 @@ typedef
/* for doing the final run-length decoding */
UChar state_out_ch;
Int32 state_out_len;
Int32 blockRandomised;
BZ_RAND_DECLS;
/* the buffer for bit stream reading */
UInt32 bsBuff;