Instant saving of 0.5K - use of stdcall calling convention to
reduce code overhead associated with managing the stack git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@694 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
7a2cf3e5b8
commit
34db30b2ce
17 changed files with 154 additions and 118 deletions
|
@ -32,7 +32,7 @@ struct internal_state {
|
|||
};
|
||||
|
||||
|
||||
int inflateReset(z_streamp z)
|
||||
int ZEXPORT inflateReset(z_streamp z)
|
||||
{
|
||||
if (z == Z_NULL || z->state == Z_NULL)
|
||||
return Z_STREAM_ERROR;
|
||||
|
@ -42,7 +42,7 @@ int inflateReset(z_streamp z)
|
|||
}
|
||||
|
||||
|
||||
int inflateInit(z_streamp z)
|
||||
int ZEXPORT inflateInit(z_streamp z)
|
||||
{
|
||||
int inflate_blocks_getssize(void);
|
||||
void inflate_blocks_init(z_streamp z,inflate_blocks_statef *s);
|
||||
|
@ -57,7 +57,7 @@ int inflateInit(z_streamp z)
|
|||
}
|
||||
|
||||
|
||||
int inflate(z_streamp z)
|
||||
int ZEXPORT inflate(z_streamp z)
|
||||
{
|
||||
return inflate_blocks(&z->state->blocks, z, Z_OK);
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
Note: this version of zlib has been hacked up quite a bit in order to reduce
|
||||
the size of the EXE header and to remove what we didn't need.
|
||||
Note: this version of zlib has been hacked up quite a bit in order to reduce
|
||||
the size of the EXE header and to remove what we didn't need.
|
||||
For the complete real thing, go to:
|
||||
|
||||
http://www.info-zip.org/pub/infozip/zlib/
|
||||
|
@ -115,7 +115,7 @@ ZEXTERN int ZEXPORT deflate OF((z_streamp strm, int flush));
|
|||
ZEXTERN int ZEXPORT deflateEnd OF((z_streamp strm));
|
||||
ZEXTERN int ZEXPORT inflateInit OF((z_streamp strm));
|
||||
|
||||
int inflate(z_streamp z);
|
||||
int ZEXPORT inflate(z_streamp z);
|
||||
ZEXTERN int ZEXPORT inflateEnd OF((z_streamp strm));
|
||||
ZEXTERN int ZEXPORT deflateInit2 OF((z_streamp strm,
|
||||
int level,
|
||||
|
@ -126,7 +126,7 @@ ZEXTERN int ZEXPORT deflateInit2 OF((z_streamp strm,
|
|||
|
||||
|
||||
ZEXTERN int ZEXPORT deflateReset OF((z_streamp strm));
|
||||
int inflateReset(z_streamp z);
|
||||
int ZEXPORT inflateReset(z_streamp z);
|
||||
|
||||
|
||||
/* various hacks, don't look :) */
|
||||
|
@ -147,8 +147,6 @@ ZEXTERN int ZEXPORT inflateInit2_ OF((z_streamp strm, int windowBits,
|
|||
#define deflateInit(strm, level) \
|
||||
deflateInit_((strm), (level), "", sizeof(z_stream))
|
||||
|
||||
extern int inflateInit(z_streamp z);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue