made bzip2 mode slightly smaller by making reinit stuff not necessary
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1245 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
ed3a8ba913
commit
6a5694d64a
1 changed files with 3 additions and 3 deletions
|
@ -11,12 +11,12 @@
|
|||
|
||||
#ifdef NSIS_COMPRESS_USE_BZIP2
|
||||
#include "../bzip2/bzlib.h"
|
||||
static char bz2_needreinit;
|
||||
|
||||
#define z_stream DState
|
||||
#define inflateInit(x) { if (BZ2_bzDecompressInit(x)<0) return _LANG_INVALIDCRC; }
|
||||
#define inflateInit(x) BZ2_bzDecompressInit(x)
|
||||
#define inflateReset(x) BZ2_bzDecompressInit(x)
|
||||
|
||||
#define inflate(x) BZ2_bzDecompress(x)
|
||||
#define inflateReset(x) { if (bz2_needreinit) { inflateInit(x); } else bz2_needreinit++; }
|
||||
#define Z_OK BZ_OK
|
||||
#define Z_STREAM_END BZ_STREAM_END
|
||||
#endif//NSIS_COMPRESS_USE_BZIP2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue