2002-08-02 10:01:35 +00:00
|
|
|
#include "../exehead/config.h"
|
|
|
|
#ifdef NSIS_COMPRESS_USE_ZLIB
|
|
|
|
/* inflate.c -- zlib interface to inflate modules
|
|
|
|
* Copyright (C) 1995-1998 Mark Adler
|
2002-08-16 21:00:03 +00:00
|
|
|
* For conditions of distribution and use, see copyright notice in zlib.h
|
2002-08-02 10:01:35 +00:00
|
|
|
|
|
|
|
* this has been HEAVILY modified for NSIS use, and is no longer compatible
|
|
|
|
* with the stock zlib.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "zutil.h"
|
|
|
|
#include "infblock.h"
|
2002-09-27 05:17:56 +00:00
|
|
|
#include "inftrees.h"
|
|
|
|
#include "infcodes.h"
|
|
|
|
#include "infutil.h"
|
2002-08-02 10:01:35 +00:00
|
|
|
|
2002-10-01 06:36:17 +00:00
|
|
|
void inflateInit(z_streamp z)
|
2002-08-02 10:01:35 +00:00
|
|
|
{
|
2002-09-30 17:39:10 +00:00
|
|
|
z->blocks.end = z->blocks.window + (1 << DEF_WBITS);
|
|
|
|
z->blocks.mode = TYPE;
|
2002-08-02 10:01:35 +00:00
|
|
|
|
2002-09-30 17:39:10 +00:00
|
|
|
inflateReset(z);
|
2002-08-02 10:01:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|