cut around 30 bytes of code off of zlib mode (room for more tho)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1226 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
d85513f1c3
commit
49ff03bf0f
5 changed files with 39 additions and 11 deletions
|
@ -50,13 +50,26 @@ inflate_blocks_statef *s;
|
|||
z_streamp z;
|
||||
int r;
|
||||
{
|
||||
uInt t; /* temporary storage */
|
||||
uLong b; /* bit buffer */
|
||||
uInt k; /* bits in bit buffer */
|
||||
Bytef *p; /* input data pointer */
|
||||
uInt n; /* bytes available there */
|
||||
Bytef *q; /* output window write pointer */
|
||||
uInt m; /* bytes to end of window or read pointer */
|
||||
|
||||
// lousy two bytes saved by doing this
|
||||
struct
|
||||
{
|
||||
uInt t; /* temporary storage */
|
||||
uLong b; /* bit buffer */
|
||||
uInt k; /* bits in bit buffer */
|
||||
Bytef *p; /* input data pointer */
|
||||
uInt n; /* bytes available there */
|
||||
Bytef *q; /* output window write pointer */
|
||||
uInt m; /* bytes to end of window or read pointer */
|
||||
} _state;
|
||||
|
||||
#define t _state.t
|
||||
#define b _state.b
|
||||
#define k _state.k
|
||||
#define p _state.p
|
||||
#define n _state.n
|
||||
#define q _state.q
|
||||
#define m _state.m
|
||||
|
||||
/* copy input/output information to locals (UPDATE macro restores) */
|
||||
LOAD
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue