diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-04-07 17:23:32 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-04-07 17:23:32 (GMT) |
commit | 63962ead8b355c4c93d5e442ab0a26005e1b863f (patch) | |
tree | c38e1a43019260d8c13223b0bab64424c575dfcb /libpng/inflate.c | |
parent | de20cde3d47c58a69c25afe75e4c476d61dbe631 (diff) | |
download | Doxygen-63962ead8b355c4c93d5e442ab0a26005e1b863f.zip Doxygen-63962ead8b355c4c93d5e442ab0a26005e1b863f.tar.gz Doxygen-63962ead8b355c4c93d5e442ab0a26005e1b863f.tar.bz2 |
Release-1.2.15-20020407
Diffstat (limited to 'libpng/inflate.c')
-rw-r--r-- | libpng/inflate.c | 34 |
1 files changed, 9 insertions, 25 deletions
diff --git a/libpng/inflate.c b/libpng/inflate.c index 32e9b8d..5425855 100644 --- a/libpng/inflate.c +++ b/libpng/inflate.c @@ -1,5 +1,5 @@ /* inflate.c -- zlib interface to inflate modules - * Copyright (C) 1995-1998 Mark Adler + * Copyright (C) 1995-2002 Mark Adler * For conditions of distribution and use, see copyright notice in zlib.h */ @@ -50,8 +50,7 @@ struct internal_state { }; -int ZEXPORT inflateReset(z) -z_streamp z; +int ZEXPORT inflateReset(z_streamp z) { if (z == Z_NULL || z->state == Z_NULL) return Z_STREAM_ERROR; @@ -64,8 +63,7 @@ z_streamp z; } -int ZEXPORT inflateEnd(z) -z_streamp z; +int ZEXPORT inflateEnd(z_streamp z) { if (z == Z_NULL || z->state == Z_NULL || z->zfree == Z_NULL) return Z_STREAM_ERROR; @@ -78,11 +76,7 @@ z_streamp z; } -int ZEXPORT inflateInit2_(z, w, version, stream_size) -z_streamp z; -int w; -const char *version; -int stream_size; +int ZEXPORT inflateInit2_(z_streamp z, int w, const char *version, int stream_size) { if (version == Z_NULL || version[0] != ZLIB_VERSION[0] || stream_size != sizeof(z_stream)) @@ -135,10 +129,7 @@ int stream_size; } -int ZEXPORT inflateInit_(z, version, stream_size) -z_streamp z; -const char *version; -int stream_size; +int ZEXPORT inflateInit_(z_streamp z, const char *version, int stream_size) { return inflateInit2_(z, DEF_WBITS, version, stream_size); } @@ -147,9 +138,7 @@ int stream_size; #define NEEDBYTE {if(z->avail_in==0)return r;r=f;} #define NEXTBYTE (z->avail_in--,z->total_in++,*z->next_in++) -int ZEXPORT inflate(z, f) -z_streamp z; -int f; +int ZEXPORT inflate(z_streamp z, int f) { int r; uInt b; @@ -275,10 +264,7 @@ int f; } -int ZEXPORT inflateSetDictionary(z, dictionary, dictLength) -z_streamp z; -const Bytef *dictionary; -uInt dictLength; +int ZEXPORT inflateSetDictionary(z_streamp z, const Bytef *dictionary, uInt dictLength) { uInt length = dictLength; @@ -299,8 +285,7 @@ uInt dictLength; } -int ZEXPORT inflateSync(z) -z_streamp z; +int ZEXPORT inflateSync(z_streamp z) { uInt n; /* number of bytes to look at */ Bytef *p; /* pointer to bytes */ @@ -357,8 +342,7 @@ z_streamp z; * decompressing, PPP checks that at the end of input packet, inflate is * waiting for these length bytes. */ -int ZEXPORT inflateSyncPoint(z) -z_streamp z; +int ZEXPORT inflateSyncPoint(z_streamp z) { if (z == Z_NULL || z->state == Z_NULL || z->state->blocks == Z_NULL) return Z_STREAM_ERROR; |