From f8ec619e4eb299b41bef5973a581042105652af1 Mon Sep 17 00:00:00 2001 From: justin1014 Date: Mon, 30 Sep 2002 16:59:41 +0000 Subject: [PATCH] 52 bytes off of zlib git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1227 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/zlib/INFBLOCK.C | 8 ++++---- Source/zlib/INFLATE.C | 5 ----- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/Source/zlib/INFBLOCK.C b/Source/zlib/INFBLOCK.C index 778e1a8f..87856f10 100644 --- a/Source/zlib/INFBLOCK.C +++ b/Source/zlib/INFBLOCK.C @@ -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 diff --git a/Source/zlib/INFLATE.C b/Source/zlib/INFLATE.C index 15856120..b1c8d21f 100644 --- a/Source/zlib/INFLATE.C +++ b/Source/zlib/INFLATE.C @@ -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