aboutsummaryrefslogtreecommitdiff
path: root/contrib/minizip/ioapi.h
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2023-04-15 11:16:17 -0700
committerMark Adler <madler@alumni.caltech.edu>2023-04-15 22:56:37 -0700
commitbf2578be2d0566dc3ee47655d56b62063fe6bae6 (patch)
treebcd69242c3cda836d7f146d44008be4f1b99fe56 /contrib/minizip/ioapi.h
parentc4aa356742e03af6670c043905cd2c96f515ad72 (diff)
downloadzlib-bf2578be2d0566dc3ee47655d56b62063fe6bae6.tar.gz
zlib-bf2578be2d0566dc3ee47655d56b62063fe6bae6.tar.bz2
zlib-bf2578be2d0566dc3ee47655d56b62063fe6bae6.zip
Remove K&R function definitions from contrib/minizip.
Diffstat (limited to 'contrib/minizip/ioapi.h')
-rw-r--r--contrib/minizip/ioapi.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/contrib/minizip/ioapi.h b/contrib/minizip/ioapi.h
index ae9ca7e..f6cc81b 100644
--- a/contrib/minizip/ioapi.h
+++ b/contrib/minizip/ioapi.h
@@ -134,14 +134,14 @@ extern "C" {
134 134
135 135
136 136
137typedef voidpf (ZCALLBACK *open_file_func) OF((voidpf opaque, const char* filename, int mode)); 137typedef voidpf (ZCALLBACK *open_file_func) (voidpf opaque, const char* filename, int mode);
138typedef uLong (ZCALLBACK *read_file_func) OF((voidpf opaque, voidpf stream, void* buf, uLong size)); 138typedef uLong (ZCALLBACK *read_file_func) (voidpf opaque, voidpf stream, void* buf, uLong size);
139typedef uLong (ZCALLBACK *write_file_func) OF((voidpf opaque, voidpf stream, const void* buf, uLong size)); 139typedef uLong (ZCALLBACK *write_file_func) (voidpf opaque, voidpf stream, const void* buf, uLong size);
140typedef int (ZCALLBACK *close_file_func) OF((voidpf opaque, voidpf stream)); 140typedef int (ZCALLBACK *close_file_func) (voidpf opaque, voidpf stream);
141typedef int (ZCALLBACK *testerror_file_func) OF((voidpf opaque, voidpf stream)); 141typedef int (ZCALLBACK *testerror_file_func) (voidpf opaque, voidpf stream);
142 142
143typedef long (ZCALLBACK *tell_file_func) OF((voidpf opaque, voidpf stream)); 143typedef long (ZCALLBACK *tell_file_func) (voidpf opaque, voidpf stream);
144typedef long (ZCALLBACK *seek_file_func) OF((voidpf opaque, voidpf stream, uLong offset, int origin)); 144typedef long (ZCALLBACK *seek_file_func) (voidpf opaque, voidpf stream, uLong offset, int origin);
145 145
146 146
147/* here is the "old" 32 bits structure structure */ 147/* here is the "old" 32 bits structure structure */
@@ -157,9 +157,9 @@ typedef struct zlib_filefunc_def_s
157 voidpf opaque; 157 voidpf opaque;
158} zlib_filefunc_def; 158} zlib_filefunc_def;
159 159
160typedef ZPOS64_T (ZCALLBACK *tell64_file_func) OF((voidpf opaque, voidpf stream)); 160typedef ZPOS64_T (ZCALLBACK *tell64_file_func) (voidpf opaque, voidpf stream);
161typedef long (ZCALLBACK *seek64_file_func) OF((voidpf opaque, voidpf stream, ZPOS64_T offset, int origin)); 161typedef long (ZCALLBACK *seek64_file_func) (voidpf opaque, voidpf stream, ZPOS64_T offset, int origin);
162typedef voidpf (ZCALLBACK *open64_file_func) OF((voidpf opaque, const void* filename, int mode)); 162typedef voidpf (ZCALLBACK *open64_file_func) (voidpf opaque, const void* filename, int mode);
163 163
164typedef struct zlib_filefunc64_def_s 164typedef struct zlib_filefunc64_def_s
165{ 165{
@@ -173,8 +173,8 @@ typedef struct zlib_filefunc64_def_s
173 voidpf opaque; 173 voidpf opaque;
174} zlib_filefunc64_def; 174} zlib_filefunc64_def;
175 175
176void fill_fopen64_filefunc OF((zlib_filefunc64_def* pzlib_filefunc_def)); 176void fill_fopen64_filefunc(zlib_filefunc64_def* pzlib_filefunc_def);
177void fill_fopen_filefunc OF((zlib_filefunc_def* pzlib_filefunc_def)); 177void fill_fopen_filefunc(zlib_filefunc_def* pzlib_filefunc_def);
178 178
179/* now internal definition, only for zip.c and unzip.h */ 179/* now internal definition, only for zip.c and unzip.h */
180typedef struct zlib_filefunc64_32_def_s 180typedef struct zlib_filefunc64_32_def_s
@@ -193,11 +193,11 @@ typedef struct zlib_filefunc64_32_def_s
193#define ZCLOSE64(filefunc,filestream) ((*((filefunc).zfile_func64.zclose_file)) ((filefunc).zfile_func64.opaque,filestream)) 193#define ZCLOSE64(filefunc,filestream) ((*((filefunc).zfile_func64.zclose_file)) ((filefunc).zfile_func64.opaque,filestream))
194#define ZERROR64(filefunc,filestream) ((*((filefunc).zfile_func64.zerror_file)) ((filefunc).zfile_func64.opaque,filestream)) 194#define ZERROR64(filefunc,filestream) ((*((filefunc).zfile_func64.zerror_file)) ((filefunc).zfile_func64.opaque,filestream))
195 195
196voidpf call_zopen64 OF((const zlib_filefunc64_32_def* pfilefunc,const void*filename,int mode)); 196voidpf call_zopen64(const zlib_filefunc64_32_def* pfilefunc,const void*filename,int mode);
197long call_zseek64 OF((const zlib_filefunc64_32_def* pfilefunc,voidpf filestream, ZPOS64_T offset, int origin)); 197long call_zseek64(const zlib_filefunc64_32_def* pfilefunc,voidpf filestream, ZPOS64_T offset, int origin);
198ZPOS64_T call_ztell64 OF((const zlib_filefunc64_32_def* pfilefunc,voidpf filestream)); 198ZPOS64_T call_ztell64(const zlib_filefunc64_32_def* pfilefunc,voidpf filestream);
199 199
200void fill_zlib_filefunc64_32_def_from_filefunc32(zlib_filefunc64_32_def* p_filefunc64_32,const zlib_filefunc_def* p_filefunc32); 200void fill_zlib_filefunc64_32_def_from_filefunc32(zlib_filefunc64_32_def* p_filefunc64_32,const zlib_filefunc_def* p_filefunc32);
201 201
202#define ZOPEN64(filefunc,filename,mode) (call_zopen64((&(filefunc)),(filename),(mode))) 202#define ZOPEN64(filefunc,filename,mode) (call_zopen64((&(filefunc)),(filename),(mode)))
203#define ZTELL64(filefunc,filestream) (call_ztell64((&(filefunc)),(filestream))) 203#define ZTELL64(filefunc,filestream) (call_ztell64((&(filefunc)),(filestream)))