52 bytes off of zlib
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1227 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
49ff03bf0f
commit
f8ec619e4e
2 changed files with 4 additions and 9 deletions
|
@ -45,11 +45,9 @@ void inflate_blocks_init(z_streamp z,inflate_blocks_statef *s)
|
|||
inflate_blocks_reset(s, z, Z_NULL);
|
||||
}
|
||||
|
||||
int inflate_blocks(s, z, r)
|
||||
inflate_blocks_statef *s;
|
||||
z_streamp z;
|
||||
int r;
|
||||
int inflate(z_streamp z)
|
||||
{
|
||||
inflate_blocks_statef *s=&z->state->blocks;
|
||||
|
||||
// lousy two bytes saved by doing this
|
||||
struct
|
||||
|
@ -63,6 +61,8 @@ int r;
|
|||
uInt m; /* bytes to end of window or read pointer */
|
||||
} _state;
|
||||
|
||||
int r=Z_OK;
|
||||
|
||||
#define t _state.t
|
||||
#define b _state.b
|
||||
#define k _state.k
|
||||
|
|
|
@ -42,9 +42,4 @@ int ZEXPORT inflateInit(z_streamp z)
|
|||
}
|
||||
|
||||
|
||||
int ZEXPORT inflate(z_streamp z)
|
||||
{
|
||||
return inflate_blocks(&z->state->blocks, z, Z_OK);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue