diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-09-02 05:33:58 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-09-02 05:33:58 +0000 |
commit | d29a42b35943690789e89e16cb17fd03b07f93c8 (patch) | |
tree | 461d3c72a71bcedcbd25d6daf790a110cb111196 /cpukit/zlib/inflate.c | |
parent | 2008-09-01 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-d29a42b35943690789e89e16cb17fd03b07f93c8.tar.bz2 |
Stop using old-style function definitions.
Diffstat (limited to 'cpukit/zlib/inflate.c')
-rw-r--r-- | cpukit/zlib/inflate.c | 86 |
1 files changed, 43 insertions, 43 deletions
diff --git a/cpukit/zlib/inflate.c b/cpukit/zlib/inflate.c index 792fdee8e9..64be1df918 100644 --- a/cpukit/zlib/inflate.c +++ b/cpukit/zlib/inflate.c @@ -100,8 +100,8 @@ local int updatewindow OF((z_streamp strm, unsigned out)); local unsigned syncsearch OF((unsigned FAR *have, unsigned char FAR *buf, unsigned len)); -int ZEXPORT inflateReset(strm) -z_streamp strm; +int ZEXPORT inflateReset( + z_streamp strm) { struct inflate_state FAR *state; @@ -125,10 +125,10 @@ z_streamp strm; return Z_OK; } -int ZEXPORT inflatePrime(strm, bits, value) -z_streamp strm; -int bits; -int value; +int ZEXPORT inflatePrime( + z_streamp strm, + int bits, + int value) { struct inflate_state FAR *state; @@ -141,11 +141,11 @@ int value; return Z_OK; } -int ZEXPORT inflateInit2_(strm, windowBits, version, stream_size) -z_streamp strm; -int windowBits; -const char *version; -int stream_size; +int ZEXPORT inflateInit2_( + z_streamp strm, + int windowBits, + const char *version, + int stream_size) { struct inflate_state FAR *state; @@ -184,10 +184,10 @@ int stream_size; return inflateReset(strm); } -int ZEXPORT inflateInit_(strm, version, stream_size) -z_streamp strm; -const char *version; -int stream_size; +int ZEXPORT inflateInit_( + z_streamp strm, + const char *version, + int stream_size) { return inflateInit2_(strm, DEF_WBITS, version, stream_size); } @@ -202,8 +202,8 @@ int stream_size; used for threaded applications, since the rewriting of the tables and virgin may not be thread-safe. */ -local void fixedtables(state) -struct inflate_state FAR *state; +local void fixedtables( + struct inflate_state FAR *state) { #ifdef BUILDFIXED static int virgin = 1; @@ -320,9 +320,9 @@ void makefixed() output will fall in the output data, making match copies simpler and faster. The advantage may be dependent on the size of the processor's data caches. */ -local int updatewindow(strm, out) -z_streamp strm; -unsigned out; +local int updatewindow( + z_streamp strm, + unsigned out) { struct inflate_state FAR *state; unsigned copy, dist; @@ -551,9 +551,9 @@ unsigned out; will return Z_BUF_ERROR if it has not reached the end of the stream. */ -int ZEXPORT inflate(strm, flush) -z_streamp strm; -int flush; +int ZEXPORT inflate( + z_streamp strm, + int flush) { struct inflate_state FAR *state; unsigned char FAR *next; /* next input */ @@ -1152,8 +1152,8 @@ int flush; return ret; } -int ZEXPORT inflateEnd(strm) -z_streamp strm; +int ZEXPORT inflateEnd( + z_streamp strm) { struct inflate_state FAR *state; if (strm == Z_NULL || strm->state == Z_NULL || strm->zfree == (free_func)0) @@ -1166,10 +1166,10 @@ z_streamp strm; return Z_OK; } -int ZEXPORT inflateSetDictionary(strm, dictionary, dictLength) -z_streamp strm; -const Bytef *dictionary; -uInt dictLength; +int ZEXPORT inflateSetDictionary( + z_streamp strm, + const Bytef *dictionary, + uInt dictLength) { struct inflate_state FAR *state; unsigned long id; @@ -1208,9 +1208,9 @@ uInt dictLength; return Z_OK; } -int ZEXPORT inflateGetHeader(strm, head) -z_streamp strm; -gz_headerp head; +int ZEXPORT inflateGetHeader( + z_streamp strm, + gz_headerp head) { struct inflate_state FAR *state; @@ -1236,10 +1236,10 @@ gz_headerp head; called again with more data and the *have state. *have is initialized to zero for the first call. */ -local unsigned syncsearch(have, buf, len) -unsigned FAR *have; -unsigned char FAR *buf; -unsigned len; +local unsigned syncsearch( + unsigned FAR *have, + unsigned char FAR *buf, + unsigned len) { unsigned got; unsigned next; @@ -1259,8 +1259,8 @@ unsigned len; return next; } -int ZEXPORT inflateSync(strm) -z_streamp strm; +int ZEXPORT inflateSync( + z_streamp strm) { unsigned len; /* number of bytes to look at or looked at */ unsigned long in, out; /* temporary to save total_in and total_out */ @@ -1310,8 +1310,8 @@ z_streamp strm; block. When decompressing, PPP checks that at the end of input packet, inflate is waiting for these length bytes. */ -int ZEXPORT inflateSyncPoint(strm) -z_streamp strm; +int ZEXPORT inflateSyncPoint( + z_streamp strm) { struct inflate_state FAR *state; @@ -1320,9 +1320,9 @@ z_streamp strm; return state->mode == STORED && state->bits == 0; } -int ZEXPORT inflateCopy(dest, source) -z_streamp dest; -z_streamp source; +int ZEXPORT inflateCopy( + z_streamp dest, + z_streamp source) { struct inflate_state FAR *state; struct inflate_state FAR *copy; |