diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2023-04-14 01:42:03 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2023-04-15 21:17:31 -0700 |
commit | e9d5486e6635141f589e110fd789648aa08e9544 (patch) | |
tree | a78b9ccd92b05af7cd5776b688d9c3eb3a81a40a /zlib.h | |
parent | 5799c14c8526bf1aaa130c021982f831d155b46d (diff) | |
download | zlib-e9d5486e6635141f589e110fd789648aa08e9544.tar.gz zlib-e9d5486e6635141f589e110fd789648aa08e9544.tar.bz2 zlib-e9d5486e6635141f589e110fd789648aa08e9544.zip |
Remove K&R function definitions from zlib.
C2X has removed K&R definitions from the C function syntax.
Though the standard has not yet been approved, some high-profile
compilers are now issuing warnings when such definitions are
encountered.
Diffstat (limited to 'zlib.h')
-rw-r--r-- | zlib.h | 348 |
1 files changed, 174 insertions, 174 deletions
@@ -78,8 +78,8 @@ extern "C" { | |||
78 | even in the case of corrupted input. | 78 | even in the case of corrupted input. |
79 | */ | 79 | */ |
80 | 80 | ||
81 | typedef voidpf (*alloc_func) OF((voidpf opaque, uInt items, uInt size)); | 81 | typedef voidpf (*alloc_func)(voidpf opaque, uInt items, uInt size); |
82 | typedef void (*free_func) OF((voidpf opaque, voidpf address)); | 82 | typedef void (*free_func)(voidpf opaque, voidpf address); |
83 | 83 | ||
84 | struct internal_state; | 84 | struct internal_state; |
85 | 85 | ||
@@ -217,7 +217,7 @@ typedef gz_header FAR *gz_headerp; | |||
217 | 217 | ||
218 | /* basic functions */ | 218 | /* basic functions */ |
219 | 219 | ||
220 | ZEXTERN const char * ZEXPORT zlibVersion OF((void)); | 220 | ZEXTERN const char * ZEXPORT zlibVersion(void); |
221 | /* The application can compare zlibVersion and ZLIB_VERSION for consistency. | 221 | /* The application can compare zlibVersion and ZLIB_VERSION for consistency. |
222 | If the first character differs, the library code actually used is not | 222 | If the first character differs, the library code actually used is not |
223 | compatible with the zlib.h header file used by the application. This check | 223 | compatible with the zlib.h header file used by the application. This check |
@@ -225,7 +225,7 @@ ZEXTERN const char * ZEXPORT zlibVersion OF((void)); | |||
225 | */ | 225 | */ |
226 | 226 | ||
227 | /* | 227 | /* |
228 | ZEXTERN int ZEXPORT deflateInit OF((z_streamp strm, int level)); | 228 | ZEXTERN int ZEXPORT deflateInit(z_streamp strm, int level); |
229 | 229 | ||
230 | Initializes the internal stream state for compression. The fields | 230 | Initializes the internal stream state for compression. The fields |
231 | zalloc, zfree and opaque must be initialized before by the caller. If | 231 | zalloc, zfree and opaque must be initialized before by the caller. If |
@@ -247,7 +247,7 @@ ZEXTERN int ZEXPORT deflateInit OF((z_streamp strm, int level)); | |||
247 | */ | 247 | */ |
248 | 248 | ||
249 | 249 | ||
250 | ZEXTERN int ZEXPORT deflate OF((z_streamp strm, int flush)); | 250 | ZEXTERN int ZEXPORT deflate(z_streamp strm, int flush); |
251 | /* | 251 | /* |
252 | deflate compresses as much data as possible, and stops when the input | 252 | deflate compresses as much data as possible, and stops when the input |
253 | buffer becomes empty or the output buffer becomes full. It may introduce | 253 | buffer becomes empty or the output buffer becomes full. It may introduce |
@@ -360,7 +360,7 @@ ZEXTERN int ZEXPORT deflate OF((z_streamp strm, int flush)); | |||
360 | */ | 360 | */ |
361 | 361 | ||
362 | 362 | ||
363 | ZEXTERN int ZEXPORT deflateEnd OF((z_streamp strm)); | 363 | ZEXTERN int ZEXPORT deflateEnd(z_streamp strm); |
364 | /* | 364 | /* |
365 | All dynamically allocated data structures for this stream are freed. | 365 | All dynamically allocated data structures for this stream are freed. |
366 | This function discards any unprocessed input and does not flush any pending | 366 | This function discards any unprocessed input and does not flush any pending |
@@ -375,7 +375,7 @@ ZEXTERN int ZEXPORT deflateEnd OF((z_streamp strm)); | |||
375 | 375 | ||
376 | 376 | ||
377 | /* | 377 | /* |
378 | ZEXTERN int ZEXPORT inflateInit OF((z_streamp strm)); | 378 | ZEXTERN int ZEXPORT inflateInit(z_streamp strm); |
379 | 379 | ||
380 | Initializes the internal stream state for decompression. The fields | 380 | Initializes the internal stream state for decompression. The fields |
381 | next_in, avail_in, zalloc, zfree and opaque must be initialized before by | 381 | next_in, avail_in, zalloc, zfree and opaque must be initialized before by |
@@ -397,7 +397,7 @@ ZEXTERN int ZEXPORT inflateInit OF((z_streamp strm)); | |||
397 | */ | 397 | */ |
398 | 398 | ||
399 | 399 | ||
400 | ZEXTERN int ZEXPORT inflate OF((z_streamp strm, int flush)); | 400 | ZEXTERN int ZEXPORT inflate(z_streamp strm, int flush); |
401 | /* | 401 | /* |
402 | inflate decompresses as much data as possible, and stops when the input | 402 | inflate decompresses as much data as possible, and stops when the input |
403 | buffer becomes empty or the output buffer becomes full. It may introduce | 403 | buffer becomes empty or the output buffer becomes full. It may introduce |
@@ -517,7 +517,7 @@ ZEXTERN int ZEXPORT inflate OF((z_streamp strm, int flush)); | |||
517 | */ | 517 | */ |
518 | 518 | ||
519 | 519 | ||
520 | ZEXTERN int ZEXPORT inflateEnd OF((z_streamp strm)); | 520 | ZEXTERN int ZEXPORT inflateEnd(z_streamp strm); |
521 | /* | 521 | /* |
522 | All dynamically allocated data structures for this stream are freed. | 522 | All dynamically allocated data structures for this stream are freed. |
523 | This function discards any unprocessed input and does not flush any pending | 523 | This function discards any unprocessed input and does not flush any pending |
@@ -535,12 +535,12 @@ ZEXTERN int ZEXPORT inflateEnd OF((z_streamp strm)); | |||
535 | */ | 535 | */ |
536 | 536 | ||
537 | /* | 537 | /* |
538 | ZEXTERN int ZEXPORT deflateInit2 OF((z_streamp strm, | 538 | ZEXTERN int ZEXPORT deflateInit2(z_streamp strm, |
539 | int level, | 539 | int level, |
540 | int method, | 540 | int method, |
541 | int windowBits, | 541 | int windowBits, |
542 | int memLevel, | 542 | int memLevel, |
543 | int strategy)); | 543 | int strategy); |
544 | 544 | ||
545 | This is another version of deflateInit with more compression options. The | 545 | This is another version of deflateInit with more compression options. The |
546 | fields zalloc, zfree and opaque must be initialized before by the caller. | 546 | fields zalloc, zfree and opaque must be initialized before by the caller. |
@@ -607,9 +607,9 @@ ZEXTERN int ZEXPORT deflateInit2 OF((z_streamp strm, | |||
607 | compression: this will be done by deflate(). | 607 | compression: this will be done by deflate(). |
608 | */ | 608 | */ |
609 | 609 | ||
610 | ZEXTERN int ZEXPORT deflateSetDictionary OF((z_streamp strm, | 610 | ZEXTERN int ZEXPORT deflateSetDictionary(z_streamp strm, |
611 | const Bytef *dictionary, | 611 | const Bytef *dictionary, |
612 | uInt dictLength)); | 612 | uInt dictLength); |
613 | /* | 613 | /* |
614 | Initializes the compression dictionary from the given byte sequence | 614 | Initializes the compression dictionary from the given byte sequence |
615 | without producing any compressed output. When using the zlib format, this | 615 | without producing any compressed output. When using the zlib format, this |
@@ -651,9 +651,9 @@ ZEXTERN int ZEXPORT deflateSetDictionary OF((z_streamp strm, | |||
651 | not perform any compression: this will be done by deflate(). | 651 | not perform any compression: this will be done by deflate(). |
652 | */ | 652 | */ |
653 | 653 | ||
654 | ZEXTERN int ZEXPORT deflateGetDictionary OF((z_streamp strm, | 654 | ZEXTERN int ZEXPORT deflateGetDictionary(z_streamp strm, |
655 | Bytef *dictionary, | 655 | Bytef *dictionary, |
656 | uInt *dictLength)); | 656 | uInt *dictLength); |
657 | /* | 657 | /* |
658 | Returns the sliding dictionary being maintained by deflate. dictLength is | 658 | Returns the sliding dictionary being maintained by deflate. dictLength is |
659 | set to the number of bytes in the dictionary, and that many bytes are copied | 659 | set to the number of bytes in the dictionary, and that many bytes are copied |
@@ -673,8 +673,8 @@ ZEXTERN int ZEXPORT deflateGetDictionary OF((z_streamp strm, | |||
673 | stream state is inconsistent. | 673 | stream state is inconsistent. |
674 | */ | 674 | */ |
675 | 675 | ||
676 | ZEXTERN int ZEXPORT deflateCopy OF((z_streamp dest, | 676 | ZEXTERN int ZEXPORT deflateCopy(z_streamp dest, |
677 | z_streamp source)); | 677 | z_streamp source); |
678 | /* | 678 | /* |
679 | Sets the destination stream as a complete copy of the source stream. | 679 | Sets the destination stream as a complete copy of the source stream. |
680 | 680 | ||
@@ -691,7 +691,7 @@ ZEXTERN int ZEXPORT deflateCopy OF((z_streamp dest, | |||
691 | destination. | 691 | destination. |
692 | */ | 692 | */ |
693 | 693 | ||
694 | ZEXTERN int ZEXPORT deflateReset OF((z_streamp strm)); | 694 | ZEXTERN int ZEXPORT deflateReset(z_streamp strm); |
695 | /* | 695 | /* |
696 | This function is equivalent to deflateEnd followed by deflateInit, but | 696 | This function is equivalent to deflateEnd followed by deflateInit, but |
697 | does not free and reallocate the internal compression state. The stream | 697 | does not free and reallocate the internal compression state. The stream |
@@ -702,9 +702,9 @@ ZEXTERN int ZEXPORT deflateReset OF((z_streamp strm)); | |||
702 | stream state was inconsistent (such as zalloc or state being Z_NULL). | 702 | stream state was inconsistent (such as zalloc or state being Z_NULL). |
703 | */ | 703 | */ |
704 | 704 | ||
705 | ZEXTERN int ZEXPORT deflateParams OF((z_streamp strm, | 705 | ZEXTERN int ZEXPORT deflateParams(z_streamp strm, |
706 | int level, | 706 | int level, |
707 | int strategy)); | 707 | int strategy); |
708 | /* | 708 | /* |
709 | Dynamically update the compression level and compression strategy. The | 709 | Dynamically update the compression level and compression strategy. The |
710 | interpretation of level and strategy is as in deflateInit2(). This can be | 710 | interpretation of level and strategy is as in deflateInit2(). This can be |
@@ -740,11 +740,11 @@ ZEXTERN int ZEXPORT deflateParams OF((z_streamp strm, | |||
740 | retried with more output space. | 740 | retried with more output space. |
741 | */ | 741 | */ |
742 | 742 | ||
743 | ZEXTERN int ZEXPORT deflateTune OF((z_streamp strm, | 743 | ZEXTERN int ZEXPORT deflateTune(z_streamp strm, |
744 | int good_length, | 744 | int good_length, |
745 | int max_lazy, | 745 | int max_lazy, |
746 | int nice_length, | 746 | int nice_length, |
747 | int max_chain)); | 747 | int max_chain); |
748 | /* | 748 | /* |
749 | Fine tune deflate's internal compression parameters. This should only be | 749 | Fine tune deflate's internal compression parameters. This should only be |
750 | used by someone who understands the algorithm used by zlib's deflate for | 750 | used by someone who understands the algorithm used by zlib's deflate for |
@@ -757,8 +757,8 @@ ZEXTERN int ZEXPORT deflateTune OF((z_streamp strm, | |||
757 | returns Z_OK on success, or Z_STREAM_ERROR for an invalid deflate stream. | 757 | returns Z_OK on success, or Z_STREAM_ERROR for an invalid deflate stream. |
758 | */ | 758 | */ |
759 | 759 | ||
760 | ZEXTERN uLong ZEXPORT deflateBound OF((z_streamp strm, | 760 | ZEXTERN uLong ZEXPORT deflateBound(z_streamp strm, |
761 | uLong sourceLen)); | 761 | uLong sourceLen); |
762 | /* | 762 | /* |
763 | deflateBound() returns an upper bound on the compressed size after | 763 | deflateBound() returns an upper bound on the compressed size after |
764 | deflation of sourceLen bytes. It must be called after deflateInit() or | 764 | deflation of sourceLen bytes. It must be called after deflateInit() or |
@@ -772,9 +772,9 @@ ZEXTERN uLong ZEXPORT deflateBound OF((z_streamp strm, | |||
772 | than Z_FINISH or Z_NO_FLUSH are used. | 772 | than Z_FINISH or Z_NO_FLUSH are used. |
773 | */ | 773 | */ |
774 | 774 | ||
775 | ZEXTERN int ZEXPORT deflatePending OF((z_streamp strm, | 775 | ZEXTERN int ZEXPORT deflatePending(z_streamp strm, |
776 | unsigned *pending, | 776 | unsigned *pending, |
777 | int *bits)); | 777 | int *bits); |
778 | /* | 778 | /* |
779 | deflatePending() returns the number of bytes and bits of output that have | 779 | deflatePending() returns the number of bytes and bits of output that have |
780 | been generated, but not yet provided in the available output. The bytes not | 780 | been generated, but not yet provided in the available output. The bytes not |
@@ -787,9 +787,9 @@ ZEXTERN int ZEXPORT deflatePending OF((z_streamp strm, | |||
787 | stream state was inconsistent. | 787 | stream state was inconsistent. |
788 | */ | 788 | */ |
789 | 789 | ||
790 | ZEXTERN int ZEXPORT deflatePrime OF((z_streamp strm, | 790 | ZEXTERN int ZEXPORT deflatePrime(z_streamp strm, |
791 | int bits, | 791 | int bits, |
792 | int value)); | 792 | int value); |
793 | /* | 793 | /* |
794 | deflatePrime() inserts bits in the deflate output stream. The intent | 794 | deflatePrime() inserts bits in the deflate output stream. The intent |
795 | is that this function is used to start off the deflate output with the bits | 795 | is that this function is used to start off the deflate output with the bits |
@@ -804,8 +804,8 @@ ZEXTERN int ZEXPORT deflatePrime OF((z_streamp strm, | |||
804 | source stream state was inconsistent. | 804 | source stream state was inconsistent. |
805 | */ | 805 | */ |
806 | 806 | ||
807 | ZEXTERN int ZEXPORT deflateSetHeader OF((z_streamp strm, | 807 | ZEXTERN int ZEXPORT deflateSetHeader(z_streamp strm, |
808 | gz_headerp head)); | 808 | gz_headerp head); |
809 | /* | 809 | /* |
810 | deflateSetHeader() provides gzip header information for when a gzip | 810 | deflateSetHeader() provides gzip header information for when a gzip |
811 | stream is requested by deflateInit2(). deflateSetHeader() may be called | 811 | stream is requested by deflateInit2(). deflateSetHeader() may be called |
@@ -829,8 +829,8 @@ ZEXTERN int ZEXPORT deflateSetHeader OF((z_streamp strm, | |||
829 | */ | 829 | */ |
830 | 830 | ||
831 | /* | 831 | /* |
832 | ZEXTERN int ZEXPORT inflateInit2 OF((z_streamp strm, | 832 | ZEXTERN int ZEXPORT inflateInit2(z_streamp strm, |
833 | int windowBits)); | 833 | int windowBits); |
834 | 834 | ||
835 | This is another version of inflateInit with an extra parameter. The | 835 | This is another version of inflateInit with an extra parameter. The |
836 | fields next_in, avail_in, zalloc, zfree and opaque must be initialized | 836 | fields next_in, avail_in, zalloc, zfree and opaque must be initialized |
@@ -883,9 +883,9 @@ ZEXTERN int ZEXPORT inflateInit2 OF((z_streamp strm, | |||
883 | deferred until inflate() is called. | 883 | deferred until inflate() is called. |
884 | */ | 884 | */ |
885 | 885 | ||
886 | ZEXTERN int ZEXPORT inflateSetDictionary OF((z_streamp strm, | 886 | ZEXTERN int ZEXPORT inflateSetDictionary(z_streamp strm, |
887 | const Bytef *dictionary, | 887 | const Bytef *dictionary, |
888 | uInt dictLength)); | 888 | uInt dictLength); |
889 | /* | 889 | /* |
890 | Initializes the decompression dictionary from the given uncompressed byte | 890 | Initializes the decompression dictionary from the given uncompressed byte |
891 | sequence. This function must be called immediately after a call of inflate, | 891 | sequence. This function must be called immediately after a call of inflate, |
@@ -906,9 +906,9 @@ ZEXTERN int ZEXPORT inflateSetDictionary OF((z_streamp strm, | |||
906 | inflate(). | 906 | inflate(). |
907 | */ | 907 | */ |
908 | 908 | ||
909 | ZEXTERN int ZEXPORT inflateGetDictionary OF((z_streamp strm, | 909 | ZEXTERN int ZEXPORT inflateGetDictionary(z_streamp strm, |
910 | Bytef *dictionary, | 910 | Bytef *dictionary, |
911 | uInt *dictLength)); | 911 | uInt *dictLength); |
912 | /* | 912 | /* |
913 | Returns the sliding dictionary being maintained by inflate. dictLength is | 913 | Returns the sliding dictionary being maintained by inflate. dictLength is |
914 | set to the number of bytes in the dictionary, and that many bytes are copied | 914 | set to the number of bytes in the dictionary, and that many bytes are copied |
@@ -921,7 +921,7 @@ ZEXTERN int ZEXPORT inflateGetDictionary OF((z_streamp strm, | |||
921 | stream state is inconsistent. | 921 | stream state is inconsistent. |
922 | */ | 922 | */ |
923 | 923 | ||
924 | ZEXTERN int ZEXPORT inflateSync OF((z_streamp strm)); | 924 | ZEXTERN int ZEXPORT inflateSync(z_streamp strm); |
925 | /* | 925 | /* |
926 | Skips invalid compressed data until a possible full flush point (see above | 926 | Skips invalid compressed data until a possible full flush point (see above |
927 | for the description of deflate with Z_FULL_FLUSH) can be found, or until all | 927 | for the description of deflate with Z_FULL_FLUSH) can be found, or until all |
@@ -940,8 +940,8 @@ ZEXTERN int ZEXPORT inflateSync OF((z_streamp strm)); | |||
940 | input each time, until success or end of the input data. | 940 | input each time, until success or end of the input data. |
941 | */ | 941 | */ |
942 | 942 | ||
943 | ZEXTERN int ZEXPORT inflateCopy OF((z_streamp dest, | 943 | ZEXTERN int ZEXPORT inflateCopy(z_streamp dest, |
944 | z_streamp source)); | 944 | z_streamp source); |
945 | /* | 945 | /* |
946 | Sets the destination stream as a complete copy of the source stream. | 946 | Sets the destination stream as a complete copy of the source stream. |
947 | 947 | ||
@@ -956,7 +956,7 @@ ZEXTERN int ZEXPORT inflateCopy OF((z_streamp dest, | |||
956 | destination. | 956 | destination. |
957 | */ | 957 | */ |
958 | 958 | ||
959 | ZEXTERN int ZEXPORT inflateReset OF((z_streamp strm)); | 959 | ZEXTERN int ZEXPORT inflateReset(z_streamp strm); |
960 | /* | 960 | /* |
961 | This function is equivalent to inflateEnd followed by inflateInit, | 961 | This function is equivalent to inflateEnd followed by inflateInit, |
962 | but does not free and reallocate the internal decompression state. The | 962 | but does not free and reallocate the internal decompression state. The |
@@ -966,8 +966,8 @@ ZEXTERN int ZEXPORT inflateReset OF((z_streamp strm)); | |||
966 | stream state was inconsistent (such as zalloc or state being Z_NULL). | 966 | stream state was inconsistent (such as zalloc or state being Z_NULL). |
967 | */ | 967 | */ |
968 | 968 | ||
969 | ZEXTERN int ZEXPORT inflateReset2 OF((z_streamp strm, | 969 | ZEXTERN int ZEXPORT inflateReset2(z_streamp strm, |
970 | int windowBits)); | 970 | int windowBits); |
971 | /* | 971 | /* |
972 | This function is the same as inflateReset, but it also permits changing | 972 | This function is the same as inflateReset, but it also permits changing |
973 | the wrap and window size requests. The windowBits parameter is interpreted | 973 | the wrap and window size requests. The windowBits parameter is interpreted |
@@ -980,9 +980,9 @@ ZEXTERN int ZEXPORT inflateReset2 OF((z_streamp strm, | |||
980 | the windowBits parameter is invalid. | 980 | the windowBits parameter is invalid. |
981 | */ | 981 | */ |
982 | 982 | ||
983 | ZEXTERN int ZEXPORT inflatePrime OF((z_streamp strm, | 983 | ZEXTERN int ZEXPORT inflatePrime(z_streamp strm, |
984 | int bits, | 984 | int bits, |
985 | int value)); | 985 | int value); |
986 | /* | 986 | /* |
987 | This function inserts bits in the inflate input stream. The intent is | 987 | This function inserts bits in the inflate input stream. The intent is |
988 | that this function is used to start inflating at a bit position in the | 988 | that this function is used to start inflating at a bit position in the |
@@ -1001,7 +1001,7 @@ ZEXTERN int ZEXPORT inflatePrime OF((z_streamp strm, | |||
1001 | stream state was inconsistent. | 1001 | stream state was inconsistent. |
1002 | */ | 1002 | */ |
1003 | 1003 | ||
1004 | ZEXTERN long ZEXPORT inflateMark OF((z_streamp strm)); | 1004 | ZEXTERN long ZEXPORT inflateMark(z_streamp strm); |
1005 | /* | 1005 | /* |
1006 | This function returns two values, one in the lower 16 bits of the return | 1006 | This function returns two values, one in the lower 16 bits of the return |
1007 | value, and the other in the remaining upper bits, obtained by shifting the | 1007 | value, and the other in the remaining upper bits, obtained by shifting the |
@@ -1029,8 +1029,8 @@ ZEXTERN long ZEXPORT inflateMark OF((z_streamp strm)); | |||
1029 | source stream state was inconsistent. | 1029 | source stream state was inconsistent. |
1030 | */ | 1030 | */ |
1031 | 1031 | ||
1032 | ZEXTERN int ZEXPORT inflateGetHeader OF((z_streamp strm, | 1032 | ZEXTERN int ZEXPORT inflateGetHeader(z_streamp strm, |
1033 | gz_headerp head)); | 1033 | gz_headerp head); |
1034 | /* | 1034 | /* |
1035 | inflateGetHeader() requests that gzip header information be stored in the | 1035 | inflateGetHeader() requests that gzip header information be stored in the |
1036 | provided gz_header structure. inflateGetHeader() may be called after | 1036 | provided gz_header structure. inflateGetHeader() may be called after |
@@ -1070,8 +1070,8 @@ ZEXTERN int ZEXPORT inflateGetHeader OF((z_streamp strm, | |||
1070 | */ | 1070 | */ |
1071 | 1071 | ||
1072 | /* | 1072 | /* |
1073 | ZEXTERN int ZEXPORT inflateBackInit OF((z_streamp strm, int windowBits, | 1073 | ZEXTERN int ZEXPORT inflateBackInit(z_streamp strm, int windowBits, |
1074 | unsigned char FAR *window)); | 1074 | unsigned char FAR *window); |
1075 | 1075 | ||
1076 | Initialize the internal stream state for decompression using inflateBack() | 1076 | Initialize the internal stream state for decompression using inflateBack() |
1077 | calls. The fields zalloc, zfree and opaque in strm must be initialized | 1077 | calls. The fields zalloc, zfree and opaque in strm must be initialized |
@@ -1091,13 +1091,13 @@ ZEXTERN int ZEXPORT inflateBackInit OF((z_streamp strm, int windowBits, | |||
1091 | the version of the header file. | 1091 | the version of the header file. |
1092 | */ | 1092 | */ |
1093 | 1093 | ||
1094 | typedef unsigned (*in_func) OF((void FAR *, | 1094 | typedef unsigned (*in_func)(void FAR *, |
1095 | z_const unsigned char FAR * FAR *)); | 1095 | z_const unsigned char FAR * FAR *); |
1096 | typedef int (*out_func) OF((void FAR *, unsigned char FAR *, unsigned)); | 1096 | typedef int (*out_func)(void FAR *, unsigned char FAR *, unsigned); |
1097 | 1097 | ||
1098 | ZEXTERN int ZEXPORT inflateBack OF((z_streamp strm, | 1098 | ZEXTERN int ZEXPORT inflateBack(z_streamp strm, |
1099 | in_func in, void FAR *in_desc, | 1099 | in_func in, void FAR *in_desc, |
1100 | out_func out, void FAR *out_desc)); | 1100 | out_func out, void FAR *out_desc); |
1101 | /* | 1101 | /* |
1102 | inflateBack() does a raw inflate with a single call using a call-back | 1102 | inflateBack() does a raw inflate with a single call using a call-back |
1103 | interface for input and output. This is potentially more efficient than | 1103 | interface for input and output. This is potentially more efficient than |
@@ -1165,7 +1165,7 @@ ZEXTERN int ZEXPORT inflateBack OF((z_streamp strm, | |||
1165 | cannot return Z_OK. | 1165 | cannot return Z_OK. |
1166 | */ | 1166 | */ |
1167 | 1167 | ||
1168 | ZEXTERN int ZEXPORT inflateBackEnd OF((z_streamp strm)); | 1168 | ZEXTERN int ZEXPORT inflateBackEnd(z_streamp strm); |
1169 | /* | 1169 | /* |
1170 | All memory allocated by inflateBackInit() is freed. | 1170 | All memory allocated by inflateBackInit() is freed. |
1171 | 1171 | ||
@@ -1173,7 +1173,7 @@ ZEXTERN int ZEXPORT inflateBackEnd OF((z_streamp strm)); | |||
1173 | state was inconsistent. | 1173 | state was inconsistent. |
1174 | */ | 1174 | */ |
1175 | 1175 | ||
1176 | ZEXTERN uLong ZEXPORT zlibCompileFlags OF((void)); | 1176 | ZEXTERN uLong ZEXPORT zlibCompileFlags(void); |
1177 | /* Return flags indicating compile-time options. | 1177 | /* Return flags indicating compile-time options. |
1178 | 1178 | ||
1179 | Type sizes, two bits each, 00 = 16 bits, 01 = 32, 10 = 64, 11 = other: | 1179 | Type sizes, two bits each, 00 = 16 bits, 01 = 32, 10 = 64, 11 = other: |
@@ -1226,8 +1226,8 @@ ZEXTERN uLong ZEXPORT zlibCompileFlags OF((void)); | |||
1226 | you need special options. | 1226 | you need special options. |
1227 | */ | 1227 | */ |
1228 | 1228 | ||
1229 | ZEXTERN int ZEXPORT compress OF((Bytef *dest, uLongf *destLen, | 1229 | ZEXTERN int ZEXPORT compress(Bytef *dest, uLongf *destLen, |
1230 | const Bytef *source, uLong sourceLen)); | 1230 | const Bytef *source, uLong sourceLen); |
1231 | /* | 1231 | /* |
1232 | Compresses the source buffer into the destination buffer. sourceLen is | 1232 | Compresses the source buffer into the destination buffer. sourceLen is |
1233 | the byte length of the source buffer. Upon entry, destLen is the total size | 1233 | the byte length of the source buffer. Upon entry, destLen is the total size |
@@ -1241,9 +1241,9 @@ ZEXTERN int ZEXPORT compress OF((Bytef *dest, uLongf *destLen, | |||
1241 | buffer. | 1241 | buffer. |
1242 | */ | 1242 | */ |
1243 | 1243 | ||
1244 | ZEXTERN int ZEXPORT compress2 OF((Bytef *dest, uLongf *destLen, | 1244 | ZEXTERN int ZEXPORT compress2(Bytef *dest, uLongf *destLen, |
1245 | const Bytef *source, uLong sourceLen, | 1245 | const Bytef *source, uLong sourceLen, |
1246 | int level)); | 1246 | int level); |
1247 | /* | 1247 | /* |
1248 | Compresses the source buffer into the destination buffer. The level | 1248 | Compresses the source buffer into the destination buffer. The level |
1249 | parameter has the same meaning as in deflateInit. sourceLen is the byte | 1249 | parameter has the same meaning as in deflateInit. sourceLen is the byte |
@@ -1257,15 +1257,15 @@ ZEXTERN int ZEXPORT compress2 OF((Bytef *dest, uLongf *destLen, | |||
1257 | Z_STREAM_ERROR if the level parameter is invalid. | 1257 | Z_STREAM_ERROR if the level parameter is invalid. |
1258 | */ | 1258 | */ |
1259 | 1259 | ||
1260 | ZEXTERN uLong ZEXPORT compressBound OF((uLong sourceLen)); | 1260 | ZEXTERN uLong ZEXPORT compressBound(uLong sourceLen); |
1261 | /* | 1261 | /* |
1262 | compressBound() returns an upper bound on the compressed size after | 1262 | compressBound() returns an upper bound on the compressed size after |
1263 | compress() or compress2() on sourceLen bytes. It would be used before a | 1263 | compress() or compress2() on sourceLen bytes. It would be used before a |
1264 | compress() or compress2() call to allocate the destination buffer. | 1264 | compress() or compress2() call to allocate the destination buffer. |
1265 | */ | 1265 | */ |
1266 | 1266 | ||
1267 | ZEXTERN int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen, | 1267 | ZEXTERN int ZEXPORT uncompress(Bytef *dest, uLongf *destLen, |
1268 | const Bytef *source, uLong sourceLen)); | 1268 | const Bytef *source, uLong sourceLen); |
1269 | /* | 1269 | /* |
1270 | Decompresses the source buffer into the destination buffer. sourceLen is | 1270 | Decompresses the source buffer into the destination buffer. sourceLen is |
1271 | the byte length of the source buffer. Upon entry, destLen is the total size | 1271 | the byte length of the source buffer. Upon entry, destLen is the total size |
@@ -1282,8 +1282,8 @@ ZEXTERN int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen, | |||
1282 | buffer with the uncompressed data up to that point. | 1282 | buffer with the uncompressed data up to that point. |
1283 | */ | 1283 | */ |
1284 | 1284 | ||
1285 | ZEXTERN int ZEXPORT uncompress2 OF((Bytef *dest, uLongf *destLen, | 1285 | ZEXTERN int ZEXPORT uncompress2(Bytef *dest, uLongf *destLen, |
1286 | const Bytef *source, uLong *sourceLen)); | 1286 | const Bytef *source, uLong *sourceLen); |
1287 | /* | 1287 | /* |
1288 | Same as uncompress, except that sourceLen is a pointer, where the | 1288 | Same as uncompress, except that sourceLen is a pointer, where the |
1289 | length of the source is *sourceLen. On return, *sourceLen is the number of | 1289 | length of the source is *sourceLen. On return, *sourceLen is the number of |
@@ -1302,7 +1302,7 @@ ZEXTERN int ZEXPORT uncompress2 OF((Bytef *dest, uLongf *destLen, | |||
1302 | typedef struct gzFile_s *gzFile; /* semi-opaque gzip file descriptor */ | 1302 | typedef struct gzFile_s *gzFile; /* semi-opaque gzip file descriptor */ |
1303 | 1303 | ||
1304 | /* | 1304 | /* |
1305 | ZEXTERN gzFile ZEXPORT gzopen OF((const char *path, const char *mode)); | 1305 | ZEXTERN gzFile ZEXPORT gzopen(const char *path, const char *mode); |
1306 | 1306 | ||
1307 | Open the gzip (.gz) file at path for reading and decompressing, or | 1307 | Open the gzip (.gz) file at path for reading and decompressing, or |
1308 | compressing and writing. The mode parameter is as in fopen ("rb" or "wb") | 1308 | compressing and writing. The mode parameter is as in fopen ("rb" or "wb") |
@@ -1339,7 +1339,7 @@ ZEXTERN gzFile ZEXPORT gzopen OF((const char *path, const char *mode)); | |||
1339 | file could not be opened. | 1339 | file could not be opened. |
1340 | */ | 1340 | */ |
1341 | 1341 | ||
1342 | ZEXTERN gzFile ZEXPORT gzdopen OF((int fd, const char *mode)); | 1342 | ZEXTERN gzFile ZEXPORT gzdopen(int fd, const char *mode); |
1343 | /* | 1343 | /* |
1344 | Associate a gzFile with the file descriptor fd. File descriptors are | 1344 | Associate a gzFile with the file descriptor fd. File descriptors are |
1345 | obtained from calls like open, dup, creat, pipe or fileno (if the file has | 1345 | obtained from calls like open, dup, creat, pipe or fileno (if the file has |
@@ -1362,7 +1362,7 @@ ZEXTERN gzFile ZEXPORT gzdopen OF((int fd, const char *mode)); | |||
1362 | will not detect if fd is invalid (unless fd is -1). | 1362 | will not detect if fd is invalid (unless fd is -1). |
1363 | */ | 1363 | */ |
1364 | 1364 | ||
1365 | ZEXTERN int ZEXPORT gzbuffer OF((gzFile file, unsigned size)); | 1365 | ZEXTERN int ZEXPORT gzbuffer(gzFile file, unsigned size); |
1366 | /* | 1366 | /* |
1367 | Set the internal buffer size used by this library's functions for file to | 1367 | Set the internal buffer size used by this library's functions for file to |
1368 | size. The default buffer size is 8192 bytes. This function must be called | 1368 | size. The default buffer size is 8192 bytes. This function must be called |
@@ -1378,7 +1378,7 @@ ZEXTERN int ZEXPORT gzbuffer OF((gzFile file, unsigned size)); | |||
1378 | too late. | 1378 | too late. |
1379 | */ | 1379 | */ |
1380 | 1380 | ||
1381 | ZEXTERN int ZEXPORT gzsetparams OF((gzFile file, int level, int strategy)); | 1381 | ZEXTERN int ZEXPORT gzsetparams(gzFile file, int level, int strategy); |
1382 | /* | 1382 | /* |
1383 | Dynamically update the compression level and strategy for file. See the | 1383 | Dynamically update the compression level and strategy for file. See the |
1384 | description of deflateInit2 for the meaning of these parameters. Previously | 1384 | description of deflateInit2 for the meaning of these parameters. Previously |
@@ -1389,7 +1389,7 @@ ZEXTERN int ZEXPORT gzsetparams OF((gzFile file, int level, int strategy)); | |||
1389 | or Z_MEM_ERROR if there is a memory allocation error. | 1389 | or Z_MEM_ERROR if there is a memory allocation error. |
1390 | */ | 1390 | */ |
1391 | 1391 | ||
1392 | ZEXTERN int ZEXPORT gzread OF((gzFile file, voidp buf, unsigned len)); | 1392 | ZEXTERN int ZEXPORT gzread(gzFile file, voidp buf, unsigned len); |
1393 | /* | 1393 | /* |
1394 | Read and decompress up to len uncompressed bytes from file into buf. If | 1394 | Read and decompress up to len uncompressed bytes from file into buf. If |
1395 | the input file is not in gzip format, gzread copies the given number of | 1395 | the input file is not in gzip format, gzread copies the given number of |
@@ -1419,8 +1419,8 @@ ZEXTERN int ZEXPORT gzread OF((gzFile file, voidp buf, unsigned len)); | |||
1419 | Z_STREAM_ERROR. | 1419 | Z_STREAM_ERROR. |
1420 | */ | 1420 | */ |
1421 | 1421 | ||
1422 | ZEXTERN z_size_t ZEXPORT gzfread OF((voidp buf, z_size_t size, z_size_t nitems, | 1422 | ZEXTERN z_size_t ZEXPORT gzfread(voidp buf, z_size_t size, z_size_t nitems, |
1423 | gzFile file)); | 1423 | gzFile file); |
1424 | /* | 1424 | /* |
1425 | Read and decompress up to nitems items of size size from file into buf, | 1425 | Read and decompress up to nitems items of size size from file into buf, |
1426 | otherwise operating as gzread() does. This duplicates the interface of | 1426 | otherwise operating as gzread() does. This duplicates the interface of |
@@ -1445,14 +1445,14 @@ ZEXTERN z_size_t ZEXPORT gzfread OF((voidp buf, z_size_t size, z_size_t nitems, | |||
1445 | file, resetting and retrying on end-of-file, when size is not 1. | 1445 | file, resetting and retrying on end-of-file, when size is not 1. |
1446 | */ | 1446 | */ |
1447 | 1447 | ||
1448 | ZEXTERN int ZEXPORT gzwrite OF((gzFile file, voidpc buf, unsigned len)); | 1448 | ZEXTERN int ZEXPORT gzwrite(gzFile file, voidpc buf, unsigned len); |
1449 | /* | 1449 | /* |
1450 | Compress and write the len uncompressed bytes at buf to file. gzwrite | 1450 | Compress and write the len uncompressed bytes at buf to file. gzwrite |
1451 | returns the number of uncompressed bytes written or 0 in case of error. | 1451 | returns the number of uncompressed bytes written or 0 in case of error. |
1452 | */ | 1452 | */ |
1453 | 1453 | ||
1454 | ZEXTERN z_size_t ZEXPORT gzfwrite OF((voidpc buf, z_size_t size, | 1454 | ZEXTERN z_size_t ZEXPORT gzfwrite(voidpc buf, z_size_t size, |
1455 | z_size_t nitems, gzFile file)); | 1455 | z_size_t nitems, gzFile file); |
1456 | /* | 1456 | /* |
1457 | Compress and write nitems items of size size from buf to file, duplicating | 1457 | Compress and write nitems items of size size from buf to file, duplicating |
1458 | the interface of stdio's fwrite(), with size_t request and return types. If | 1458 | the interface of stdio's fwrite(), with size_t request and return types. If |
@@ -1465,7 +1465,7 @@ ZEXTERN z_size_t ZEXPORT gzfwrite OF((voidpc buf, z_size_t size, | |||
1465 | is returned, and the error state is set to Z_STREAM_ERROR. | 1465 | is returned, and the error state is set to Z_STREAM_ERROR. |
1466 | */ | 1466 | */ |
1467 | 1467 | ||
1468 | ZEXTERN int ZEXPORTVA gzprintf Z_ARG((gzFile file, const char *format, ...)); | 1468 | ZEXTERN int ZEXPORTVA gzprintf(gzFile file, const char *format, ...); |
1469 | /* | 1469 | /* |
1470 | Convert, format, compress, and write the arguments (...) to file under | 1470 | Convert, format, compress, and write the arguments (...) to file under |
1471 | control of the string format, as in fprintf. gzprintf returns the number of | 1471 | control of the string format, as in fprintf. gzprintf returns the number of |
@@ -1480,7 +1480,7 @@ ZEXTERN int ZEXPORTVA gzprintf Z_ARG((gzFile file, const char *format, ...)); | |||
1480 | This can be determined using zlibCompileFlags(). | 1480 | This can be determined using zlibCompileFlags(). |
1481 | */ | 1481 | */ |
1482 | 1482 | ||
1483 | ZEXTERN int ZEXPORT gzputs OF((gzFile file, const char *s)); | 1483 | ZEXTERN int ZEXPORT gzputs(gzFile file, const char *s); |
1484 | /* | 1484 | /* |
1485 | Compress and write the given null-terminated string s to file, excluding | 1485 | Compress and write the given null-terminated string s to file, excluding |
1486 | the terminating null character. | 1486 | the terminating null character. |
@@ -1488,7 +1488,7 @@ ZEXTERN int ZEXPORT gzputs OF((gzFile file, const char *s)); | |||
1488 | gzputs returns the number of characters written, or -1 in case of error. | 1488 | gzputs returns the number of characters written, or -1 in case of error. |
1489 | */ | 1489 | */ |
1490 | 1490 | ||
1491 | ZEXTERN char * ZEXPORT gzgets OF((gzFile file, char *buf, int len)); | 1491 | ZEXTERN char * ZEXPORT gzgets(gzFile file, char *buf, int len); |
1492 | /* | 1492 | /* |
1493 | Read and decompress bytes from file into buf, until len-1 characters are | 1493 | Read and decompress bytes from file into buf, until len-1 characters are |
1494 | read, or until a newline character is read and transferred to buf, or an | 1494 | read, or until a newline character is read and transferred to buf, or an |
@@ -1502,13 +1502,13 @@ ZEXTERN char * ZEXPORT gzgets OF((gzFile file, char *buf, int len)); | |||
1502 | buf are indeterminate. | 1502 | buf are indeterminate. |
1503 | */ | 1503 | */ |
1504 | 1504 | ||
1505 | ZEXTERN int ZEXPORT gzputc OF((gzFile file, int c)); | 1505 | ZEXTERN int ZEXPORT gzputc(gzFile file, int c); |
1506 | /* | 1506 | /* |
1507 | Compress and write c, converted to an unsigned char, into file. gzputc | 1507 | Compress and write c, converted to an unsigned char, into file. gzputc |
1508 | returns the value that was written, or -1 in case of error. | 1508 | returns the value that was written, or -1 in case of error. |
1509 | */ | 1509 | */ |
1510 | 1510 | ||
1511 | ZEXTERN int ZEXPORT gzgetc OF((gzFile file)); | 1511 | ZEXTERN int ZEXPORT gzgetc(gzFile file); |
1512 | /* | 1512 | /* |
1513 | Read and decompress one byte from file. gzgetc returns this byte or -1 | 1513 | Read and decompress one byte from file. gzgetc returns this byte or -1 |
1514 | in case of end of file or error. This is implemented as a macro for speed. | 1514 | in case of end of file or error. This is implemented as a macro for speed. |
@@ -1517,7 +1517,7 @@ ZEXTERN int ZEXPORT gzgetc OF((gzFile file)); | |||
1517 | points to has been clobbered or not. | 1517 | points to has been clobbered or not. |
1518 | */ | 1518 | */ |
1519 | 1519 | ||
1520 | ZEXTERN int ZEXPORT gzungetc OF((int c, gzFile file)); | 1520 | ZEXTERN int ZEXPORT gzungetc(int c, gzFile file); |
1521 | /* | 1521 | /* |
1522 | Push c back onto the stream for file to be read as the first character on | 1522 | Push c back onto the stream for file to be read as the first character on |
1523 | the next read. At least one character of push-back is always allowed. | 1523 | the next read. At least one character of push-back is always allowed. |
@@ -1529,7 +1529,7 @@ ZEXTERN int ZEXPORT gzungetc OF((int c, gzFile file)); | |||
1529 | gzseek() or gzrewind(). | 1529 | gzseek() or gzrewind(). |
1530 | */ | 1530 | */ |
1531 | 1531 | ||
1532 | ZEXTERN int ZEXPORT gzflush OF((gzFile file, int flush)); | 1532 | ZEXTERN int ZEXPORT gzflush(gzFile file, int flush); |
1533 | /* | 1533 | /* |
1534 | Flush all pending output to file. The parameter flush is as in the | 1534 | Flush all pending output to file. The parameter flush is as in the |
1535 | deflate() function. The return value is the zlib error number (see function | 1535 | deflate() function. The return value is the zlib error number (see function |
@@ -1545,8 +1545,8 @@ ZEXTERN int ZEXPORT gzflush OF((gzFile file, int flush)); | |||
1545 | */ | 1545 | */ |
1546 | 1546 | ||
1547 | /* | 1547 | /* |
1548 | ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile file, | 1548 | ZEXTERN z_off_t ZEXPORT gzseek(gzFile file, |
1549 | z_off_t offset, int whence)); | 1549 | z_off_t offset, int whence); |
1550 | 1550 | ||
1551 | Set the starting position to offset relative to whence for the next gzread | 1551 | Set the starting position to offset relative to whence for the next gzread |
1552 | or gzwrite on file. The offset represents a number of bytes in the | 1552 | or gzwrite on file. The offset represents a number of bytes in the |
@@ -1564,7 +1564,7 @@ ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile file, | |||
1564 | would be before the current position. | 1564 | would be before the current position. |
1565 | */ | 1565 | */ |
1566 | 1566 | ||
1567 | ZEXTERN int ZEXPORT gzrewind OF((gzFile file)); | 1567 | ZEXTERN int ZEXPORT gzrewind(gzFile file); |
1568 | /* | 1568 | /* |
1569 | Rewind file. This function is supported only for reading. | 1569 | Rewind file. This function is supported only for reading. |
1570 | 1570 | ||
@@ -1572,7 +1572,7 @@ ZEXTERN int ZEXPORT gzrewind OF((gzFile file)); | |||
1572 | */ | 1572 | */ |
1573 | 1573 | ||
1574 | /* | 1574 | /* |
1575 | ZEXTERN z_off_t ZEXPORT gztell OF((gzFile file)); | 1575 | ZEXTERN z_off_t ZEXPORT gztell(gzFile file); |
1576 | 1576 | ||
1577 | Return the starting position for the next gzread or gzwrite on file. | 1577 | Return the starting position for the next gzread or gzwrite on file. |
1578 | This position represents a number of bytes in the uncompressed data stream, | 1578 | This position represents a number of bytes in the uncompressed data stream, |
@@ -1583,7 +1583,7 @@ ZEXTERN z_off_t ZEXPORT gztell OF((gzFile file)); | |||
1583 | */ | 1583 | */ |
1584 | 1584 | ||
1585 | /* | 1585 | /* |
1586 | ZEXTERN z_off_t ZEXPORT gzoffset OF((gzFile file)); | 1586 | ZEXTERN z_off_t ZEXPORT gzoffset(gzFile file); |
1587 | 1587 | ||
1588 | Return the current compressed (actual) read or write offset of file. This | 1588 | Return the current compressed (actual) read or write offset of file. This |
1589 | offset includes the count of bytes that precede the gzip stream, for example | 1589 | offset includes the count of bytes that precede the gzip stream, for example |
@@ -1592,7 +1592,7 @@ ZEXTERN z_off_t ZEXPORT gzoffset OF((gzFile file)); | |||
1592 | be used for a progress indicator. On error, gzoffset() returns -1. | 1592 | be used for a progress indicator. On error, gzoffset() returns -1. |
1593 | */ | 1593 | */ |
1594 | 1594 | ||
1595 | ZEXTERN int ZEXPORT gzeof OF((gzFile file)); | 1595 | ZEXTERN int ZEXPORT gzeof(gzFile file); |
1596 | /* | 1596 | /* |
1597 | Return true (1) if the end-of-file indicator for file has been set while | 1597 | Return true (1) if the end-of-file indicator for file has been set while |
1598 | reading, false (0) otherwise. Note that the end-of-file indicator is set | 1598 | reading, false (0) otherwise. Note that the end-of-file indicator is set |
@@ -1607,7 +1607,7 @@ ZEXTERN int ZEXPORT gzeof OF((gzFile file)); | |||
1607 | has grown since the previous end of file was detected. | 1607 | has grown since the previous end of file was detected. |
1608 | */ | 1608 | */ |
1609 | 1609 | ||
1610 | ZEXTERN int ZEXPORT gzdirect OF((gzFile file)); | 1610 | ZEXTERN int ZEXPORT gzdirect(gzFile file); |
1611 | /* | 1611 | /* |
1612 | Return true (1) if file is being copied directly while reading, or false | 1612 | Return true (1) if file is being copied directly while reading, or false |
1613 | (0) if file is a gzip stream being decompressed. | 1613 | (0) if file is a gzip stream being decompressed. |
@@ -1628,7 +1628,7 @@ ZEXTERN int ZEXPORT gzdirect OF((gzFile file)); | |||
1628 | gzip file reading and decompression, which may not be desired.) | 1628 | gzip file reading and decompression, which may not be desired.) |
1629 | */ | 1629 | */ |
1630 | 1630 | ||
1631 | ZEXTERN int ZEXPORT gzclose OF((gzFile file)); | 1631 | ZEXTERN int ZEXPORT gzclose(gzFile file); |
1632 | /* | 1632 | /* |
1633 | Flush all pending output for file, if necessary, close file and | 1633 | Flush all pending output for file, if necessary, close file and |
1634 | deallocate the (de)compression state. Note that once file is closed, you | 1634 | deallocate the (de)compression state. Note that once file is closed, you |
@@ -1641,8 +1641,8 @@ ZEXTERN int ZEXPORT gzclose OF((gzFile file)); | |||
1641 | last read ended in the middle of a gzip stream, or Z_OK on success. | 1641 | last read ended in the middle of a gzip stream, or Z_OK on success. |
1642 | */ | 1642 | */ |
1643 | 1643 | ||
1644 | ZEXTERN int ZEXPORT gzclose_r OF((gzFile file)); | 1644 | ZEXTERN int ZEXPORT gzclose_r(gzFile file); |
1645 | ZEXTERN int ZEXPORT gzclose_w OF((gzFile file)); | 1645 | ZEXTERN int ZEXPORT gzclose_w(gzFile file); |
1646 | /* | 1646 | /* |
1647 | Same as gzclose(), but gzclose_r() is only for use when reading, and | 1647 | Same as gzclose(), but gzclose_r() is only for use when reading, and |
1648 | gzclose_w() is only for use when writing or appending. The advantage to | 1648 | gzclose_w() is only for use when writing or appending. The advantage to |
@@ -1653,7 +1653,7 @@ ZEXTERN int ZEXPORT gzclose_w OF((gzFile file)); | |||
1653 | zlib library. | 1653 | zlib library. |
1654 | */ | 1654 | */ |
1655 | 1655 | ||
1656 | ZEXTERN const char * ZEXPORT gzerror OF((gzFile file, int *errnum)); | 1656 | ZEXTERN const char * ZEXPORT gzerror(gzFile file, int *errnum); |
1657 | /* | 1657 | /* |
1658 | Return the error message for the last error which occurred on file. | 1658 | Return the error message for the last error which occurred on file. |
1659 | errnum is set to zlib error number. If an error occurred in the file system | 1659 | errnum is set to zlib error number. If an error occurred in the file system |
@@ -1669,7 +1669,7 @@ ZEXTERN const char * ZEXPORT gzerror OF((gzFile file, int *errnum)); | |||
1669 | functions above that do not distinguish those cases in their return values. | 1669 | functions above that do not distinguish those cases in their return values. |
1670 | */ | 1670 | */ |
1671 | 1671 | ||
1672 | ZEXTERN void ZEXPORT gzclearerr OF((gzFile file)); | 1672 | ZEXTERN void ZEXPORT gzclearerr(gzFile file); |
1673 | /* | 1673 | /* |
1674 | Clear the error and end-of-file flags for file. This is analogous to the | 1674 | Clear the error and end-of-file flags for file. This is analogous to the |
1675 | clearerr() function in stdio. This is useful for continuing to read a gzip | 1675 | clearerr() function in stdio. This is useful for continuing to read a gzip |
@@ -1686,7 +1686,7 @@ ZEXTERN void ZEXPORT gzclearerr OF((gzFile file)); | |||
1686 | library. | 1686 | library. |
1687 | */ | 1687 | */ |
1688 | 1688 | ||
1689 | ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len)); | 1689 | ZEXTERN uLong ZEXPORT adler32(uLong adler, const Bytef *buf, uInt len); |
1690 | /* | 1690 | /* |
1691 | Update a running Adler-32 checksum with the bytes buf[0..len-1] and | 1691 | Update a running Adler-32 checksum with the bytes buf[0..len-1] and |
1692 | return the updated checksum. An Adler-32 value is in the range of a 32-bit | 1692 | return the updated checksum. An Adler-32 value is in the range of a 32-bit |
@@ -1706,15 +1706,15 @@ ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len)); | |||
1706 | if (adler != original_adler) error(); | 1706 | if (adler != original_adler) error(); |
1707 | */ | 1707 | */ |
1708 | 1708 | ||
1709 | ZEXTERN uLong ZEXPORT adler32_z OF((uLong adler, const Bytef *buf, | 1709 | ZEXTERN uLong ZEXPORT adler32_z(uLong adler, const Bytef *buf, |
1710 | z_size_t len)); | 1710 | z_size_t len); |
1711 | /* | 1711 | /* |
1712 | Same as adler32(), but with a size_t length. | 1712 | Same as adler32(), but with a size_t length. |
1713 | */ | 1713 | */ |
1714 | 1714 | ||
1715 | /* | 1715 | /* |
1716 | ZEXTERN uLong ZEXPORT adler32_combine OF((uLong adler1, uLong adler2, | 1716 | ZEXTERN uLong ZEXPORT adler32_combine(uLong adler1, uLong adler2, |
1717 | z_off_t len2)); | 1717 | z_off_t len2); |
1718 | 1718 | ||
1719 | Combine two Adler-32 checksums into one. For two sequences of bytes, seq1 | 1719 | Combine two Adler-32 checksums into one. For two sequences of bytes, seq1 |
1720 | and seq2 with lengths len1 and len2, Adler-32 checksums were calculated for | 1720 | and seq2 with lengths len1 and len2, Adler-32 checksums were calculated for |
@@ -1724,7 +1724,7 @@ ZEXTERN uLong ZEXPORT adler32_combine OF((uLong adler1, uLong adler2, | |||
1724 | negative, the result has no meaning or utility. | 1724 | negative, the result has no meaning or utility. |
1725 | */ | 1725 | */ |
1726 | 1726 | ||
1727 | ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len)); | 1727 | ZEXTERN uLong ZEXPORT crc32(uLong crc, const Bytef *buf, uInt len); |
1728 | /* | 1728 | /* |
1729 | Update a running CRC-32 with the bytes buf[0..len-1] and return the | 1729 | Update a running CRC-32 with the bytes buf[0..len-1] and return the |
1730 | updated CRC-32. A CRC-32 value is in the range of a 32-bit unsigned integer. | 1730 | updated CRC-32. A CRC-32 value is in the range of a 32-bit unsigned integer. |
@@ -1742,14 +1742,14 @@ ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len)); | |||
1742 | if (crc != original_crc) error(); | 1742 | if (crc != original_crc) error(); |
1743 | */ | 1743 | */ |
1744 | 1744 | ||
1745 | ZEXTERN uLong ZEXPORT crc32_z OF((uLong crc, const Bytef *buf, | 1745 | ZEXTERN uLong ZEXPORT crc32_z(uLong crc, const Bytef *buf, |
1746 | z_size_t len)); | 1746 | z_size_t len); |
1747 | /* | 1747 | /* |
1748 | Same as crc32(), but with a size_t length. | 1748 | Same as crc32(), but with a size_t length. |
1749 | */ | 1749 | */ |
1750 | 1750 | ||
1751 | /* | 1751 | /* |
1752 | ZEXTERN uLong ZEXPORT crc32_combine OF((uLong crc1, uLong crc2, z_off_t len2)); | 1752 | ZEXTERN uLong ZEXPORT crc32_combine(uLong crc1, uLong crc2, z_off_t len2); |
1753 | 1753 | ||
1754 | Combine two CRC-32 check values into one. For two sequences of bytes, | 1754 | Combine two CRC-32 check values into one. For two sequences of bytes, |
1755 | seq1 and seq2 with lengths len1 and len2, CRC-32 check values were | 1755 | seq1 and seq2 with lengths len1 and len2, CRC-32 check values were |
@@ -1759,13 +1759,13 @@ ZEXTERN uLong ZEXPORT crc32_combine OF((uLong crc1, uLong crc2, z_off_t len2)); | |||
1759 | */ | 1759 | */ |
1760 | 1760 | ||
1761 | /* | 1761 | /* |
1762 | ZEXTERN uLong ZEXPORT crc32_combine_gen OF((z_off_t len2)); | 1762 | ZEXTERN uLong ZEXPORT crc32_combine_gen(z_off_t len2); |
1763 | 1763 | ||
1764 | Return the operator corresponding to length len2, to be used with | 1764 | Return the operator corresponding to length len2, to be used with |
1765 | crc32_combine_op(). | 1765 | crc32_combine_op(). |
1766 | */ | 1766 | */ |
1767 | 1767 | ||
1768 | ZEXTERN uLong ZEXPORT crc32_combine_op OF((uLong crc1, uLong crc2, uLong op)); | 1768 | ZEXTERN uLong ZEXPORT crc32_combine_op(uLong crc1, uLong crc2, uLong op); |
1769 | /* | 1769 | /* |
1770 | Give the same result as crc32_combine(), using op in place of len2. op is | 1770 | Give the same result as crc32_combine(), using op in place of len2. op is |
1771 | is generated from len2 by crc32_combine_gen(). This will be faster than | 1771 | is generated from len2 by crc32_combine_gen(). This will be faster than |
@@ -1778,20 +1778,20 @@ ZEXTERN uLong ZEXPORT crc32_combine_op OF((uLong crc1, uLong crc2, uLong op)); | |||
1778 | /* deflateInit and inflateInit are macros to allow checking the zlib version | 1778 | /* deflateInit and inflateInit are macros to allow checking the zlib version |
1779 | * and the compiler's view of z_stream: | 1779 | * and the compiler's view of z_stream: |
1780 | */ | 1780 | */ |
1781 | ZEXTERN int ZEXPORT deflateInit_ OF((z_streamp strm, int level, | 1781 | ZEXTERN int ZEXPORT deflateInit_(z_streamp strm, int level, |
1782 | const char *version, int stream_size)); | 1782 | const char *version, int stream_size); |
1783 | ZEXTERN int ZEXPORT inflateInit_ OF((z_streamp strm, | 1783 | ZEXTERN int ZEXPORT inflateInit_(z_streamp strm, |
1784 | const char *version, int stream_size)); | 1784 | const char *version, int stream_size); |
1785 | ZEXTERN int ZEXPORT deflateInit2_ OF((z_streamp strm, int level, int method, | 1785 | ZEXTERN int ZEXPORT deflateInit2_(z_streamp strm, int level, int method, |
1786 | int windowBits, int memLevel, | 1786 | int windowBits, int memLevel, |
1787 | int strategy, const char *version, | 1787 | int strategy, const char *version, |
1788 | int stream_size)); | 1788 | int stream_size); |
1789 | ZEXTERN int ZEXPORT inflateInit2_ OF((z_streamp strm, int windowBits, | 1789 | ZEXTERN int ZEXPORT inflateInit2_(z_streamp strm, int windowBits, |
1790 | const char *version, int stream_size)); | 1790 | const char *version, int stream_size); |
1791 | ZEXTERN int ZEXPORT inflateBackInit_ OF((z_streamp strm, int windowBits, | 1791 | ZEXTERN int ZEXPORT inflateBackInit_(z_streamp strm, int windowBits, |
1792 | unsigned char FAR *window, | 1792 | unsigned char FAR *window, |
1793 | const char *version, | 1793 | const char *version, |
1794 | int stream_size)); | 1794 | int stream_size); |
1795 | #ifdef Z_PREFIX_SET | 1795 | #ifdef Z_PREFIX_SET |
1796 | # define z_deflateInit(strm, level) \ | 1796 | # define z_deflateInit(strm, level) \ |
1797 | deflateInit_((strm), (level), ZLIB_VERSION, (int)sizeof(z_stream)) | 1797 | deflateInit_((strm), (level), ZLIB_VERSION, (int)sizeof(z_stream)) |
@@ -1836,7 +1836,7 @@ struct gzFile_s { | |||
1836 | unsigned char *next; | 1836 | unsigned char *next; |
1837 | z_off64_t pos; | 1837 | z_off64_t pos; |
1838 | }; | 1838 | }; |
1839 | ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */ | 1839 | ZEXTERN int ZEXPORT gzgetc_(gzFile file); /* backward compatibility */ |
1840 | #ifdef Z_PREFIX_SET | 1840 | #ifdef Z_PREFIX_SET |
1841 | # undef z_gzgetc | 1841 | # undef z_gzgetc |
1842 | # define z_gzgetc(g) \ | 1842 | # define z_gzgetc(g) \ |
@@ -1853,13 +1853,13 @@ ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */ | |||
1853 | * without large file support, _LFS64_LARGEFILE must also be true | 1853 | * without large file support, _LFS64_LARGEFILE must also be true |
1854 | */ | 1854 | */ |
1855 | #ifdef Z_LARGE64 | 1855 | #ifdef Z_LARGE64 |
1856 | ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); | 1856 | ZEXTERN gzFile ZEXPORT gzopen64(const char *, const char *); |
1857 | ZEXTERN z_off64_t ZEXPORT gzseek64 OF((gzFile, z_off64_t, int)); | 1857 | ZEXTERN z_off64_t ZEXPORT gzseek64(gzFile, z_off64_t, int); |
1858 | ZEXTERN z_off64_t ZEXPORT gztell64 OF((gzFile)); | 1858 | ZEXTERN z_off64_t ZEXPORT gztell64(gzFile); |
1859 | ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile)); | 1859 | ZEXTERN z_off64_t ZEXPORT gzoffset64(gzFile); |
1860 | ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off64_t)); | 1860 | ZEXTERN uLong ZEXPORT adler32_combine64(uLong, uLong, z_off64_t); |
1861 | ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off64_t)); | 1861 | ZEXTERN uLong ZEXPORT crc32_combine64(uLong, uLong, z_off64_t); |
1862 | ZEXTERN uLong ZEXPORT crc32_combine_gen64 OF((z_off64_t)); | 1862 | ZEXTERN uLong ZEXPORT crc32_combine_gen64(z_off64_t); |
1863 | #endif | 1863 | #endif |
1864 | 1864 | ||
1865 | #if !defined(ZLIB_INTERNAL) && defined(Z_WANT64) | 1865 | #if !defined(ZLIB_INTERNAL) && defined(Z_WANT64) |
@@ -1881,50 +1881,50 @@ ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */ | |||
1881 | # define crc32_combine_gen crc32_combine_gen64 | 1881 | # define crc32_combine_gen crc32_combine_gen64 |
1882 | # endif | 1882 | # endif |
1883 | # ifndef Z_LARGE64 | 1883 | # ifndef Z_LARGE64 |
1884 | ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); | 1884 | ZEXTERN gzFile ZEXPORT gzopen64(const char *, const char *); |
1885 | ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, z_off_t, int)); | 1885 | ZEXTERN z_off_t ZEXPORT gzseek64(gzFile, z_off_t, int); |
1886 | ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile)); | 1886 | ZEXTERN z_off_t ZEXPORT gztell64(gzFile); |
1887 | ZEXTERN z_off_t ZEXPORT gzoffset64 OF((gzFile)); | 1887 | ZEXTERN z_off_t ZEXPORT gzoffset64(gzFile); |
1888 | ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t)); | 1888 | ZEXTERN uLong ZEXPORT adler32_combine64(uLong, uLong, z_off_t); |
1889 | ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t)); | 1889 | ZEXTERN uLong ZEXPORT crc32_combine64(uLong, uLong, z_off_t); |
1890 | ZEXTERN uLong ZEXPORT crc32_combine_gen64 OF((z_off_t)); | 1890 | ZEXTERN uLong ZEXPORT crc32_combine_gen64(z_off_t); |
1891 | # endif | 1891 | # endif |
1892 | #else | 1892 | #else |
1893 | ZEXTERN gzFile ZEXPORT gzopen OF((const char *, const char *)); | 1893 | ZEXTERN gzFile ZEXPORT gzopen(const char *, const char *); |
1894 | ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile, z_off_t, int)); | 1894 | ZEXTERN z_off_t ZEXPORT gzseek(gzFile, z_off_t, int); |
1895 | ZEXTERN z_off_t ZEXPORT gztell OF((gzFile)); | 1895 | ZEXTERN z_off_t ZEXPORT gztell(gzFile); |
1896 | ZEXTERN z_off_t ZEXPORT gzoffset OF((gzFile)); | 1896 | ZEXTERN z_off_t ZEXPORT gzoffset(gzFile); |
1897 | ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t)); | 1897 | ZEXTERN uLong ZEXPORT adler32_combine(uLong, uLong, z_off_t); |
1898 | ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t)); | 1898 | ZEXTERN uLong ZEXPORT crc32_combine(uLong, uLong, z_off_t); |
1899 | ZEXTERN uLong ZEXPORT crc32_combine_gen OF((z_off_t)); | 1899 | ZEXTERN uLong ZEXPORT crc32_combine_gen(z_off_t); |
1900 | #endif | 1900 | #endif |
1901 | 1901 | ||
1902 | #else /* Z_SOLO */ | 1902 | #else /* Z_SOLO */ |
1903 | 1903 | ||
1904 | ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t)); | 1904 | ZEXTERN uLong ZEXPORT adler32_combine(uLong, uLong, z_off_t); |
1905 | ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t)); | 1905 | ZEXTERN uLong ZEXPORT crc32_combine(uLong, uLong, z_off_t); |
1906 | ZEXTERN uLong ZEXPORT crc32_combine_gen OF((z_off_t)); | 1906 | ZEXTERN uLong ZEXPORT crc32_combine_gen(z_off_t); |
1907 | 1907 | ||
1908 | #endif /* !Z_SOLO */ | 1908 | #endif /* !Z_SOLO */ |
1909 | 1909 | ||
1910 | /* undocumented functions */ | 1910 | /* undocumented functions */ |
1911 | ZEXTERN const char * ZEXPORT zError OF((int)); | 1911 | ZEXTERN const char * ZEXPORT zError(int); |
1912 | ZEXTERN int ZEXPORT inflateSyncPoint OF((z_streamp)); | 1912 | ZEXTERN int ZEXPORT inflateSyncPoint(z_streamp); |
1913 | ZEXTERN const z_crc_t FAR * ZEXPORT get_crc_table OF((void)); | 1913 | ZEXTERN const z_crc_t FAR * ZEXPORT get_crc_table(void); |
1914 | ZEXTERN int ZEXPORT inflateUndermine OF((z_streamp, int)); | 1914 | ZEXTERN int ZEXPORT inflateUndermine(z_streamp, int); |
1915 | ZEXTERN int ZEXPORT inflateValidate OF((z_streamp, int)); | 1915 | ZEXTERN int ZEXPORT inflateValidate(z_streamp, int); |
1916 | ZEXTERN unsigned long ZEXPORT inflateCodesUsed OF((z_streamp)); | 1916 | ZEXTERN unsigned long ZEXPORT inflateCodesUsed(z_streamp); |
1917 | ZEXTERN int ZEXPORT inflateResetKeep OF((z_streamp)); | 1917 | ZEXTERN int ZEXPORT inflateResetKeep(z_streamp); |
1918 | ZEXTERN int ZEXPORT deflateResetKeep OF((z_streamp)); | 1918 | ZEXTERN int ZEXPORT deflateResetKeep(z_streamp); |
1919 | #if defined(_WIN32) && !defined(Z_SOLO) | 1919 | #if defined(_WIN32) && !defined(Z_SOLO) |
1920 | ZEXTERN gzFile ZEXPORT gzopen_w OF((const wchar_t *path, | 1920 | ZEXTERN gzFile ZEXPORT gzopen_w(const wchar_t *path, |
1921 | const char *mode)); | 1921 | const char *mode); |
1922 | #endif | 1922 | #endif |
1923 | #if defined(STDC) || defined(Z_HAVE_STDARG_H) | 1923 | #if defined(STDC) || defined(Z_HAVE_STDARG_H) |
1924 | # ifndef Z_SOLO | 1924 | # ifndef Z_SOLO |
1925 | ZEXTERN int ZEXPORTVA gzvprintf Z_ARG((gzFile file, | 1925 | ZEXTERN int ZEXPORTVA gzvprintf(gzFile file, |
1926 | const char *format, | 1926 | const char *format, |
1927 | va_list va)); | 1927 | va_list va); |
1928 | # endif | 1928 | # endif |
1929 | #endif | 1929 | #endif |
1930 | 1930 | ||