Changeset 432 for cafu/trunk
- Timestamp:
- 11/26/11 01:01:20 (6 months ago)
- Location:
- cafu/trunk/ExtLibs/minizip
- Files:
-
- 7 modified
Legend:
- Unmodified
- Added
- Removed
-
cafu/trunk/ExtLibs/minizip/ioapi.c
r2 r432 30 30 #endif 31 31 32 voidpf ZCALLBACK fopen_file_func OF((32 voidpf ZCALLBACK fopen_file_func ( 33 33 voidpf opaque, 34 34 const char* filename, 35 int mode) );35 int mode); 36 36 37 uLong ZCALLBACK fread_file_func OF((37 uLong ZCALLBACK fread_file_func ( 38 38 voidpf opaque, 39 39 voidpf stream, 40 40 void* buf, 41 uLong size) );41 uLong size); 42 42 43 uLong ZCALLBACK fwrite_file_func OF((43 uLong ZCALLBACK fwrite_file_func ( 44 44 voidpf opaque, 45 45 voidpf stream, 46 46 const void* buf, 47 uLong size) );47 uLong size); 48 48 49 long ZCALLBACK ftell_file_func OF((49 long ZCALLBACK ftell_file_func ( 50 50 voidpf opaque, 51 voidpf stream) );51 voidpf stream); 52 52 53 long ZCALLBACK fseek_file_func OF((53 long ZCALLBACK fseek_file_func ( 54 54 voidpf opaque, 55 55 voidpf stream, 56 56 uLong offset, 57 int origin) );57 int origin); 58 58 59 int ZCALLBACK fclose_file_func OF((59 int ZCALLBACK fclose_file_func ( 60 60 voidpf opaque, 61 voidpf stream) );61 voidpf stream); 62 62 63 int ZCALLBACK ferror_file_func OF((63 int ZCALLBACK ferror_file_func ( 64 64 voidpf opaque, 65 voidpf stream) );65 voidpf stream); 66 66 67 67 -
cafu/trunk/ExtLibs/minizip/iowin32.c
r2 r432 22 22 #endif 23 23 24 voidpf ZCALLBACK win32_open_file_func OF((24 voidpf ZCALLBACK win32_open_file_func ( 25 25 voidpf opaque, 26 26 const char* filename, 27 int mode) );28 29 uLong ZCALLBACK win32_read_file_func OF((27 int mode); 28 29 uLong ZCALLBACK win32_read_file_func ( 30 30 voidpf opaque, 31 31 voidpf stream, 32 32 void* buf, 33 uLong size) );34 35 uLong ZCALLBACK win32_write_file_func OF((33 uLong size); 34 35 uLong ZCALLBACK win32_write_file_func ( 36 36 voidpf opaque, 37 37 voidpf stream, 38 38 const void* buf, 39 uLong size) );40 41 long ZCALLBACK win32_tell_file_func OF((42 voidpf opaque, 43 voidpf stream) );44 45 long ZCALLBACK win32_seek_file_func OF((39 uLong size); 40 41 long ZCALLBACK win32_tell_file_func ( 42 voidpf opaque, 43 voidpf stream); 44 45 long ZCALLBACK win32_seek_file_func ( 46 46 voidpf opaque, 47 47 voidpf stream, 48 48 uLong offset, 49 int origin) );50 51 int ZCALLBACK win32_close_file_func OF((52 voidpf opaque, 53 voidpf stream) );54 55 int ZCALLBACK win32_error_file_func OF((56 voidpf opaque, 57 voidpf stream) );49 int origin); 50 51 int ZCALLBACK win32_close_file_func ( 52 voidpf opaque, 53 voidpf stream); 54 55 int ZCALLBACK win32_error_file_func ( 56 voidpf opaque, 57 voidpf stream); 58 58 59 59 typedef struct -
cafu/trunk/ExtLibs/minizip/iowin32.h
r2 r432 15 15 #endif 16 16 17 void fill_win32_filefunc OF((zlib_filefunc_def* pzlib_filefunc_def));17 void fill_win32_filefunc (zlib_filefunc_def* pzlib_filefunc_def); 18 18 19 19 #ifdef __cplusplus -
cafu/trunk/ExtLibs/minizip/unzip.c
r2 r432 164 164 165 165 166 local int unzlocal_getByte OF((166 local int unzlocal_getByte ( 167 167 const zlib_filefunc_def* pzlib_filefunc_def, 168 168 voidpf filestream, 169 int *pi) );169 int *pi); 170 170 171 171 local int unzlocal_getByte(pzlib_filefunc_def,filestream,pi) … … 194 194 Reads a long in LSB order from the given gz_stream. Sets 195 195 */ 196 local int unzlocal_getShort OF((196 local int unzlocal_getShort ( 197 197 const zlib_filefunc_def* pzlib_filefunc_def, 198 198 voidpf filestream, 199 uLong *pX) );199 uLong *pX); 200 200 201 201 local int unzlocal_getShort (pzlib_filefunc_def,filestream,pX) … … 222 222 } 223 223 224 local int unzlocal_getLong OF((224 local int unzlocal_getLong ( 225 225 const zlib_filefunc_def* pzlib_filefunc_def, 226 226 voidpf filestream, 227 uLong *pX) );227 uLong *pX); 228 228 229 229 local int unzlocal_getLong (pzlib_filefunc_def,filestream,pX) … … 325 325 the global comment) 326 326 */ 327 local uLong unzlocal_SearchCentralDir OF((327 local uLong unzlocal_SearchCentralDir ( 328 328 const zlib_filefunc_def* pzlib_filefunc_def, 329 voidpf filestream) );329 voidpf filestream); 330 330 331 331 local uLong unzlocal_SearchCentralDir(pzlib_filefunc_def,filestream) … … 564 564 Get Info about the current file in the zipfile, with internal only info 565 565 */ 566 local int unzlocal_GetCurrentFileInfoInternal OF((unzFile file,567 unz_file_info *pfile_info,568 unz_file_info_internal569 *pfile_info_internal,570 char *szFileName,571 uLong fileNameBufferSize,572 void *extraField,573 uLong extraFieldBufferSize,574 char *szComment,575 uLong commentBufferSize));566 local int unzlocal_GetCurrentFileInfoInternal (unzFile file, 567 unz_file_info *pfile_info, 568 unz_file_info_internal 569 *pfile_info_internal, 570 char *szFileName, 571 uLong fileNameBufferSize, 572 void *extraField, 573 uLong extraFieldBufferSize, 574 char *szComment, 575 uLong commentBufferSize); 576 576 577 577 local int unzlocal_GetCurrentFileInfoInternal (file, -
cafu/trunk/ExtLibs/minizip/unzip.h
r2 r432 133 133 134 134 135 extern unzFile ZEXPORT unzOpen OF((const char *path));135 extern unzFile ZEXPORT unzOpen (const char *path); 136 136 /* 137 137 Open a Zip file. path contain the full pathname (by example, … … 144 144 */ 145 145 146 extern unzFile ZEXPORT unzOpen2 OF((const char *path,147 zlib_filefunc_def* pzlib_filefunc_def));146 extern unzFile ZEXPORT unzOpen2 (const char *path, 147 zlib_filefunc_def* pzlib_filefunc_def); 148 148 /* 149 149 Open a Zip file, like unzOpen, but provide a set of file low level API … … 151 151 */ 152 152 153 extern int ZEXPORT unzClose OF((unzFile file));153 extern int ZEXPORT unzClose (unzFile file); 154 154 /* 155 155 Close a ZipFile opened with unzipOpen. … … 158 158 return UNZ_OK if there is no problem. */ 159 159 160 extern int ZEXPORT unzGetGlobalInfo OF((unzFile file,161 unz_global_info *pglobal_info));160 extern int ZEXPORT unzGetGlobalInfo (unzFile file, 161 unz_global_info *pglobal_info); 162 162 /* 163 163 Write info about the ZipFile in the *pglobal_info structure. … … 166 166 167 167 168 extern int ZEXPORT unzGetGlobalComment OF((unzFile file,169 char *szComment,170 uLong uSizeBuf));168 extern int ZEXPORT unzGetGlobalComment (unzFile file, 169 char *szComment, 170 uLong uSizeBuf); 171 171 /* 172 172 Get the global comment string of the ZipFile, in the szComment buffer. … … 179 179 /* Unzip package allow you browse the directory of the zipfile */ 180 180 181 extern int ZEXPORT unzGoToFirstFile OF((unzFile file));181 extern int ZEXPORT unzGoToFirstFile (unzFile file); 182 182 /* 183 183 Set the current file of the zipfile to the first file. … … 185 185 */ 186 186 187 extern int ZEXPORT unzGoToNextFile OF((unzFile file));187 extern int ZEXPORT unzGoToNextFile (unzFile file); 188 188 /* 189 189 Set the current file of the zipfile to the next file. … … 192 192 */ 193 193 194 extern int ZEXPORT unzLocateFile OF((unzFile file,194 extern int ZEXPORT unzLocateFile (unzFile file, 195 195 const char *szFileName, 196 int iCaseSensitivity) );196 int iCaseSensitivity); 197 197 /* 198 198 Try locate the file szFileName in the zipfile. … … 224 224 /* ****************************************** */ 225 225 226 extern int ZEXPORT unzGetCurrentFileInfo OF((unzFile file,226 extern int ZEXPORT unzGetCurrentFileInfo (unzFile file, 227 227 unz_file_info *pfile_info, 228 228 char *szFileName, … … 231 231 uLong extraFieldBufferSize, 232 232 char *szComment, 233 uLong commentBufferSize) );233 uLong commentBufferSize); 234 234 /* 235 235 Get Info about the current file … … 250 250 */ 251 251 252 extern int ZEXPORT unzOpenCurrentFile OF((unzFile file));252 extern int ZEXPORT unzOpenCurrentFile (unzFile file); 253 253 /* 254 254 Open for reading data the current file in the zipfile. … … 256 256 */ 257 257 258 extern int ZEXPORT unzOpenCurrentFilePassword OF((unzFile file,259 const char* password));258 extern int ZEXPORT unzOpenCurrentFilePassword (unzFile file, 259 const char* password); 260 260 /* 261 261 Open for reading data the current file in the zipfile. … … 264 264 */ 265 265 266 extern int ZEXPORT unzOpenCurrentFile2 OF((unzFile file,267 int* method,268 int* level,269 int raw));266 extern int ZEXPORT unzOpenCurrentFile2 (unzFile file, 267 int* method, 268 int* level, 269 int raw); 270 270 /* 271 271 Same than unzOpenCurrentFile, but open for read raw the file (not uncompress) … … 277 277 */ 278 278 279 extern int ZEXPORT unzOpenCurrentFile3 OF((unzFile file,280 int* method,281 int* level,282 int raw,283 const char* password));279 extern int ZEXPORT unzOpenCurrentFile3 (unzFile file, 280 int* method, 281 int* level, 282 int raw, 283 const char* password); 284 284 /* 285 285 Same than unzOpenCurrentFile, but open for read raw the file (not uncompress) … … 292 292 293 293 294 extern int ZEXPORT unzCloseCurrentFile OF((unzFile file));294 extern int ZEXPORT unzCloseCurrentFile (unzFile file); 295 295 /* 296 296 Close the file in zip opened with unzOpenCurrentFile … … 298 298 */ 299 299 300 extern int ZEXPORT unzReadCurrentFile OF((unzFile file,300 extern int ZEXPORT unzReadCurrentFile (unzFile file, 301 301 voidp buf, 302 unsigned len) );302 unsigned len); 303 303 /* 304 304 Read bytes from the current file (opened by unzOpenCurrentFile) … … 312 312 */ 313 313 314 extern z_off_t ZEXPORT unztell OF((unzFile file));314 extern z_off_t ZEXPORT unztell (unzFile file); 315 315 /* 316 316 Give the current position in uncompressed data 317 317 */ 318 318 319 extern int ZEXPORT unzeof OF((unzFile file));319 extern int ZEXPORT unzeof (unzFile file); 320 320 /* 321 321 return 1 if the end of file was reached, 0 elsewhere 322 322 */ 323 323 324 extern int ZEXPORT unzGetLocalExtrafield OF((unzFile file,325 voidp buf,326 unsigned len));324 extern int ZEXPORT unzGetLocalExtrafield (unzFile file, 325 voidp buf, 326 unsigned len); 327 327 /* 328 328 Read extra field from the current file (opened by unzOpenCurrentFile) -
cafu/trunk/ExtLibs/minizip/zip.c
r2 r432 262 262 */ 263 263 264 local int ziplocal_putValue OF((const zlib_filefunc_def* pzlib_filefunc_def,265 voidpf filestream, uLong x, int nbByte));264 local int ziplocal_putValue (const zlib_filefunc_def* pzlib_filefunc_def, 265 voidpf filestream, uLong x, int nbByte)); 266 266 local int ziplocal_putValue (pzlib_filefunc_def, filestream, x, nbByte) 267 267 const zlib_filefunc_def* pzlib_filefunc_def; … … 291 291 } 292 292 293 local void ziplocal_putValue_inmemory OF((void* dest, uLong x, int nbByte));293 local void ziplocal_putValue_inmemory (void* dest, uLong x, int nbByte); 294 294 local void ziplocal_putValue_inmemory (dest, x, nbByte) 295 295 void* dest; … … 333 333 /****************************************************************************/ 334 334 335 local int ziplocal_getByte OF((335 local int ziplocal_getByte ( 336 336 const zlib_filefunc_def* pzlib_filefunc_def, 337 337 voidpf filestream, 338 int *pi) );338 int *pi); 339 339 340 340 local int ziplocal_getByte(pzlib_filefunc_def,filestream,pi) … … 363 363 Reads a long in LSB order from the given gz_stream. Sets 364 364 */ 365 local int ziplocal_getShort OF((365 local int ziplocal_getShort ( 366 366 const zlib_filefunc_def* pzlib_filefunc_def, 367 367 voidpf filestream, 368 uLong *pX) );368 uLong *pX); 369 369 370 370 local int ziplocal_getShort (pzlib_filefunc_def,filestream,pX) … … 391 391 } 392 392 393 local int ziplocal_getLong OF((393 local int ziplocal_getLong ( 394 394 const zlib_filefunc_def* pzlib_filefunc_def, 395 395 voidpf filestream, 396 uLong *pX) );396 uLong *pX); 397 397 398 398 local int ziplocal_getLong (pzlib_filefunc_def,filestream,pX) … … 434 434 the global comment) 435 435 */ 436 local uLong ziplocal_SearchCentralDir OF((436 local uLong ziplocal_SearchCentralDir ( 437 437 const zlib_filefunc_def* pzlib_filefunc_def, 438 voidpf filestream) );438 voidpf filestream); 439 439 440 440 local uLong ziplocal_SearchCentralDir(pzlib_filefunc_def,filestream) -
cafu/trunk/ExtLibs/minizip/zip.h
r2 r432 112 112 #define APPEND_STATUS_ADDINZIP (2) 113 113 114 extern zipFile ZEXPORT zipOpen OF((const char *pathname, int append));114 extern zipFile ZEXPORT zipOpen (const char *pathname, int append); 115 115 /* 116 116 Create a zipfile. … … 132 132 */ 133 133 134 extern zipFile ZEXPORT zipOpen2 OF((const char *pathname,135 int append,136 zipcharpc* globalcomment,137 zlib_filefunc_def* pzlib_filefunc_def));138 139 extern int ZEXPORT zipOpenNewFileInZip OF((zipFile file,134 extern zipFile ZEXPORT zipOpen2 (const char *pathname, 135 int append, 136 zipcharpc* globalcomment, 137 zlib_filefunc_def* pzlib_filefunc_def); 138 139 extern int ZEXPORT zipOpenNewFileInZip (zipFile file, 140 140 const char* filename, 141 141 const zip_fileinfo* zipfi, … … 146 146 const char* comment, 147 147 int method, 148 int level) );148 int level); 149 149 /* 150 150 Open a file in the ZIP for writing. … … 161 161 162 162 163 extern int ZEXPORT zipOpenNewFileInZip2 OF((zipFile file,164 const char* filename,165 const zip_fileinfo* zipfi,166 const void* extrafield_local,167 uInt size_extrafield_local,168 const void* extrafield_global,169 uInt size_extrafield_global,170 const char* comment,171 int method,172 int level,173 int raw));163 extern int ZEXPORT zipOpenNewFileInZip2 (zipFile file, 164 const char* filename, 165 const zip_fileinfo* zipfi, 166 const void* extrafield_local, 167 uInt size_extrafield_local, 168 const void* extrafield_global, 169 uInt size_extrafield_global, 170 const char* comment, 171 int method, 172 int level, 173 int raw); 174 174 175 175 /* … … 177 177 */ 178 178 179 extern int ZEXPORT zipOpenNewFileInZip3 OF((zipFile file,180 const char* filename,181 const zip_fileinfo* zipfi,182 const void* extrafield_local,183 uInt size_extrafield_local,184 const void* extrafield_global,185 uInt size_extrafield_global,186 const char* comment,187 int method,188 int level,189 int raw,190 int windowBits,191 int memLevel,192 int strategy,193 const char* password,194 uLong crcForCtypting));179 extern int ZEXPORT zipOpenNewFileInZip3 (zipFile file, 180 const char* filename, 181 const zip_fileinfo* zipfi, 182 const void* extrafield_local, 183 uInt size_extrafield_local, 184 const void* extrafield_global, 185 uInt size_extrafield_global, 186 const char* comment, 187 int method, 188 int level, 189 int raw, 190 int windowBits, 191 int memLevel, 192 int strategy, 193 const char* password, 194 uLong crcForCtypting); 195 195 196 196 /* … … 202 202 203 203 204 extern int ZEXPORT zipWriteInFileInZip OF((zipFile file,204 extern int ZEXPORT zipWriteInFileInZip (zipFile file, 205 205 const void* buf, 206 unsigned len) );206 unsigned len); 207 207 /* 208 208 Write data in the zipfile 209 209 */ 210 210 211 extern int ZEXPORT zipCloseFileInZip OF((zipFile file));211 extern int ZEXPORT zipCloseFileInZip (zipFile file); 212 212 /* 213 213 Close the current file in the zipfile 214 214 */ 215 215 216 extern int ZEXPORT zipCloseFileInZipRaw OF((zipFile file,217 uLong uncompressed_size,218 uLong crc32));216 extern int ZEXPORT zipCloseFileInZipRaw (zipFile file, 217 uLong uncompressed_size, 218 uLong crc32); 219 219 /* 220 220 Close the current file in the zipfile, for fiel opened with … … 223 223 */ 224 224 225 extern int ZEXPORT zipClose OF((zipFile file,226 const char* global_comment) );225 extern int ZEXPORT zipClose (zipFile file, 226 const char* global_comment); 227 227 /* 228 228 Close the zipfile
