From d53a579899b00bc27ca5d36376fa4ec47fe2a611 Mon Sep 17 00:00:00 2001 From: PatriceJiang <397136899@qq.com> Date: Fri, 18 Oct 2019 03:55:40 +0800 Subject: [PATCH] update macro --- unzip/unzip.cpp | 70 ++++++++++++++++++++++++------------------------- unzip/unzip.h | 70 ++++++++++++++++++++++++------------------------- 2 files changed, 70 insertions(+), 70 deletions(-) diff --git a/unzip/unzip.cpp b/unzip/unzip.cpp index 402b9ebc2..3d1ec04d0 100644 --- a/unzip/unzip.cpp +++ b/unzip/unzip.cpp @@ -500,7 +500,7 @@ static unzFile unzOpenInternal(const void *path, zlib_filefunc64_32_def *pzlib_f return (unzFile)s; } -extern unzFile ZEXPORT unzOpen2(const char *path, zlib_filefunc_def *pzlib_filefunc32_def) +ZEXTERN unzFile ZEXPORT unzOpen2(const char *path, zlib_filefunc_def *pzlib_filefunc32_def) { if (pzlib_filefunc32_def != NULL) { @@ -511,7 +511,7 @@ extern unzFile ZEXPORT unzOpen2(const char *path, zlib_filefunc_def *pzlib_filef return unzOpenInternal(path, NULL); } -extern unzFile ZEXPORT unzOpen2_64(const void *path, zlib_filefunc64_def *pzlib_filefunc_def) +ZEXTERN unzFile ZEXPORT unzOpen2_64(const void *path, zlib_filefunc64_def *pzlib_filefunc_def) { if (pzlib_filefunc_def != NULL) { @@ -524,17 +524,17 @@ extern unzFile ZEXPORT unzOpen2_64(const void *path, zlib_filefunc64_def *pzlib_ return unzOpenInternal(path, NULL); } -extern unzFile ZEXPORT unzOpen(const char *path) +ZEXTERN unzFile ZEXPORT unzOpen(const char *path) { return unzOpenInternal(path, NULL); } -extern unzFile ZEXPORT unzOpen64(const void *path) +ZEXTERN unzFile ZEXPORT unzOpen64(const void *path) { return unzOpenInternal(path, NULL); } -extern int ZEXPORT unzClose(unzFile file) +ZEXTERN int ZEXPORT unzClose(unzFile file) { unz64_internal *s; if (file == NULL) @@ -598,7 +598,7 @@ static int unzGoToNextDisk(unzFile file) return UNZ_OK; } -extern int ZEXPORT unzGetGlobalInfo(unzFile file, unz_global_info* pglobal_info32) +ZEXTERN int ZEXPORT unzGetGlobalInfo(unzFile file, unz_global_info* pglobal_info32) { unz64_internal *s = NULL; if (file == NULL) @@ -611,7 +611,7 @@ extern int ZEXPORT unzGetGlobalInfo(unzFile file, unz_global_info* pglobal_info3 return UNZ_OK; } -extern int ZEXPORT unzGetGlobalInfo64(unzFile file, unz_global_info64 *pglobal_info) +ZEXTERN int ZEXPORT unzGetGlobalInfo64(unzFile file, unz_global_info64 *pglobal_info) { unz64_internal *s = NULL; if (file == NULL) @@ -621,7 +621,7 @@ extern int ZEXPORT unzGetGlobalInfo64(unzFile file, unz_global_info64 *pglobal_i return UNZ_OK; } -extern int ZEXPORT unzGetGlobalComment(unzFile file, char *comment, uint16_t comment_size) +ZEXTERN int ZEXPORT unzGetGlobalComment(unzFile file, char *comment, uint16_t comment_size) { unz64_internal *s = NULL; uint16_t bytes_to_read = comment_size; @@ -897,7 +897,7 @@ static int unzGetCurrentFileInfoInternal(unzFile file, unz_file_info64 *pfile_in return err; } -extern int ZEXPORT unzGetCurrentFileInfo(unzFile file, unz_file_info *pfile_info, char *filename, +ZEXTERN int ZEXPORT unzGetCurrentFileInfo(unzFile file, unz_file_info *pfile_info, char *filename, uint16_t filename_size, void *extrafield, uint16_t extrafield_size, char *comment, uint16_t comment_size) { unz_file_info64 file_info64; @@ -929,7 +929,7 @@ extern int ZEXPORT unzGetCurrentFileInfo(unzFile file, unz_file_info *pfile_info return err; } -extern int ZEXPORT unzGetCurrentFileInfo64(unzFile file, unz_file_info64 * pfile_info, char *filename, +ZEXTERN int ZEXPORT unzGetCurrentFileInfo64(unzFile file, unz_file_info64 * pfile_info, char *filename, uint16_t filename_size, void *extrafield, uint16_t extrafield_size, char *comment, uint16_t comment_size) { return unzGetCurrentFileInfoInternal(file, pfile_info, NULL, filename, filename_size, @@ -1034,7 +1034,7 @@ static int unzCheckCurrentFileCoherencyHeader(unz64_internal *s, uint32_t *psize Open for reading data the current file in the zipfile. If there is no error and the file is opened, the return value is UNZ_OK. */ -extern int ZEXPORT unzOpenCurrentFile3(unzFile file, int *method, int *level, int raw, const char *password) +ZEXTERN int ZEXPORT unzOpenCurrentFile3(unzFile file, int *method, int *level, int raw, const char *password) { unz64_internal *s = NULL; file_in_zip64_read_info_s *pfile_in_zip_read_info = NULL; @@ -1267,17 +1267,17 @@ extern int ZEXPORT unzOpenCurrentFile3(unzFile file, int *method, int *level, in return UNZ_OK; } -extern int ZEXPORT unzOpenCurrentFile(unzFile file) +ZEXTERN int ZEXPORT unzOpenCurrentFile(unzFile file) { return unzOpenCurrentFile3(file, NULL, NULL, 0, NULL); } -extern int ZEXPORT unzOpenCurrentFilePassword(unzFile file, const char *password) +ZEXTERN int ZEXPORT unzOpenCurrentFilePassword(unzFile file, const char *password) { return unzOpenCurrentFile3(file, NULL, NULL, 0, password); } -extern int ZEXPORT unzOpenCurrentFile2(unzFile file, int *method, int *level, int raw) +ZEXTERN int ZEXPORT unzOpenCurrentFile2(unzFile file, int *method, int *level, int raw) { return unzOpenCurrentFile3(file, method, level, raw, NULL); } @@ -1289,7 +1289,7 @@ extern int ZEXPORT unzOpenCurrentFile2(unzFile file, int *method, int *level, in return the number of byte copied if some bytes are copied return 0 if the end of file was reached return <0 with error code if there is an error (UNZ_ERRNO for IO error, or zLib error for uncompress error) */ -extern int ZEXPORT unzReadCurrentFile(unzFile file, voidp buf, uint32_t len) +ZEXTERN int ZEXPORT unzReadCurrentFile(unzFile file, voidp buf, uint32_t len) { unz64_internal *s = NULL; uint32_t read = 0; @@ -1564,7 +1564,7 @@ extern int ZEXPORT unzReadCurrentFile(unzFile file, voidp buf, uint32_t len) return err; } -extern int ZEXPORT unzGetLocalExtrafield(unzFile file, voidp buf, uint32_t len) +ZEXTERN int ZEXPORT unzGetLocalExtrafield(unzFile file, voidp buf, uint32_t len) { unz64_internal *s = NULL; uint64_t size_to_read = 0; @@ -1600,7 +1600,7 @@ extern int ZEXPORT unzGetLocalExtrafield(unzFile file, voidp buf, uint32_t len) return (int)read_now; } -extern int ZEXPORT unzCloseCurrentFile(unzFile file) +ZEXTERN int ZEXPORT unzCloseCurrentFile(unzFile file) { unz64_internal *s = NULL; file_in_zip64_read_info_s *pfile_in_zip_read_info = NULL; @@ -1665,7 +1665,7 @@ extern int ZEXPORT unzCloseCurrentFile(unzFile file) return err; } -extern int ZEXPORT unzGoToFirstFile2(unzFile file, unz_file_info64 *pfile_info, char *filename, +ZEXTERN int ZEXPORT unzGoToFirstFile2(unzFile file, unz_file_info64 *pfile_info, char *filename, uint16_t filename_size, void *extrafield, uint16_t extrafield_size, char *comment, uint16_t comment_size) { unz64_internal *s = NULL; @@ -1691,12 +1691,12 @@ extern int ZEXPORT unzGoToFirstFile2(unzFile file, unz_file_info64 *pfile_info, return err; } -extern int ZEXPORT unzGoToFirstFile(unzFile file) +ZEXTERN int ZEXPORT unzGoToFirstFile(unzFile file) { return unzGoToFirstFile2(file, NULL, NULL, 0, NULL, 0, NULL, 0); } -extern int ZEXPORT unzGoToNextFile2(unzFile file, unz_file_info64 *pfile_info, char *filename, +ZEXTERN int ZEXPORT unzGoToNextFile2(unzFile file, unz_file_info64 *pfile_info, char *filename, uint16_t filename_size, void *extrafield, uint16_t extrafield_size, char *comment, uint16_t comment_size) { unz64_internal *s = NULL; @@ -1728,12 +1728,12 @@ extern int ZEXPORT unzGoToNextFile2(unzFile file, unz_file_info64 *pfile_info, c return err; } -extern int ZEXPORT unzGoToNextFile(unzFile file) +ZEXTERN int ZEXPORT unzGoToNextFile(unzFile file) { return unzGoToNextFile2(file, NULL, NULL, 0, NULL, 0, NULL, 0); } -extern int ZEXPORT unzLocateFile(unzFile file, const char *filename, unzFileNameComparer filename_compare_func) +ZEXTERN int ZEXPORT unzLocateFile(unzFile file, const char *filename, unzFileNameComparer filename_compare_func) { unz64_internal *s = NULL; unz_file_info64 cur_file_info_saved; @@ -1778,7 +1778,7 @@ extern int ZEXPORT unzLocateFile(unzFile file, const char *filename, unzFileName return err; } -extern int ZEXPORT unzGetFilePos(unzFile file, unz_file_pos *file_pos) +ZEXTERN int ZEXPORT unzGetFilePos(unzFile file, unz_file_pos *file_pos) { unz64_file_pos file_pos64; int err = unzGetFilePos64(file, &file_pos64); @@ -1790,7 +1790,7 @@ extern int ZEXPORT unzGetFilePos(unzFile file, unz_file_pos *file_pos) return err; } -extern int ZEXPORT unzGoToFilePos(unzFile file, unz_file_pos *file_pos) +ZEXTERN int ZEXPORT unzGoToFilePos(unzFile file, unz_file_pos *file_pos) { unz64_file_pos file_pos64; if (file_pos == NULL) @@ -1800,7 +1800,7 @@ extern int ZEXPORT unzGoToFilePos(unzFile file, unz_file_pos *file_pos) return unzGoToFilePos64(file, &file_pos64); } -extern int ZEXPORT unzGetFilePos64(unzFile file, unz64_file_pos *file_pos) +ZEXTERN int ZEXPORT unzGetFilePos64(unzFile file, unz64_file_pos *file_pos) { unz64_internal *s = NULL; @@ -1815,7 +1815,7 @@ extern int ZEXPORT unzGetFilePos64(unzFile file, unz64_file_pos *file_pos) return UNZ_OK; } -extern int ZEXPORT unzGoToFilePos64(unzFile file, const unz64_file_pos *file_pos) +ZEXTERN int ZEXPORT unzGoToFilePos64(unzFile file, const unz64_file_pos *file_pos) { unz64_internal *s = NULL; int err = UNZ_OK; @@ -1835,7 +1835,7 @@ extern int ZEXPORT unzGoToFilePos64(unzFile file, const unz64_file_pos *file_pos return err; } -extern int32_t ZEXPORT unzGetOffset(unzFile file) +ZEXTERN int32_t ZEXPORT unzGetOffset(unzFile file) { uint64_t offset64 = 0; @@ -1845,7 +1845,7 @@ extern int32_t ZEXPORT unzGetOffset(unzFile file) return (int32_t)offset64; } -extern int64_t ZEXPORT unzGetOffset64(unzFile file) +ZEXTERN int64_t ZEXPORT unzGetOffset64(unzFile file) { unz64_internal *s = NULL; @@ -1862,12 +1862,12 @@ extern int64_t ZEXPORT unzGetOffset64(unzFile file) return s->pos_in_central_dir; } -extern int ZEXPORT unzSetOffset(unzFile file, uint32_t pos) +ZEXTERN int ZEXPORT unzSetOffset(unzFile file, uint32_t pos) { return unzSetOffset64(file, pos); } -extern int ZEXPORT unzSetOffset64(unzFile file, uint64_t pos) +ZEXTERN int ZEXPORT unzSetOffset64(unzFile file, uint64_t pos) { unz64_internal *s = NULL; int err = UNZ_OK; @@ -1884,7 +1884,7 @@ extern int ZEXPORT unzSetOffset64(unzFile file, uint64_t pos) return err; } -extern int32_t ZEXPORT unzTell(unzFile file) +ZEXTERN int32_t ZEXPORT unzTell(unzFile file) { unz64_internal *s = NULL; if (file == NULL) @@ -1895,7 +1895,7 @@ extern int32_t ZEXPORT unzTell(unzFile file) return (int32_t)s->pfile_in_zip_read->stream.total_out; } -extern int64_t ZEXPORT unzTell64(unzFile file) +ZEXTERN int64_t ZEXPORT unzTell64(unzFile file) { unz64_internal *s = NULL; if (file == NULL) @@ -1906,12 +1906,12 @@ extern int64_t ZEXPORT unzTell64(unzFile file) return s->pfile_in_zip_read->total_out_64; } -extern int ZEXPORT unzSeek(unzFile file, uint32_t offset, int origin) +ZEXTERN int ZEXPORT unzSeek(unzFile file, uint32_t offset, int origin) { return unzSeek64(file, offset, origin); } -extern int ZEXPORT unzSeek64(unzFile file, uint64_t offset, int origin) +ZEXTERN int ZEXPORT unzSeek64(unzFile file, uint64_t offset, int origin) { unz64_internal *s = NULL; uint64_t stream_pos_begin = 0; @@ -1974,7 +1974,7 @@ extern int ZEXPORT unzSeek64(unzFile file, uint64_t offset, int origin) return UNZ_OK; } -extern int ZEXPORT unzEndOfFile(unzFile file) +ZEXTERN int ZEXPORT unzEndOfFile(unzFile file) { unz64_internal *s = NULL; if (file == NULL) diff --git a/unzip/unzip.h b/unzip/unzip.h index 56f40c9c5..560aa8152 100644 --- a/unzip/unzip.h +++ b/unzip/unzip.h @@ -117,8 +117,8 @@ typedef struct unz_file_info_s /***************************************************************************/ /* Opening and close a zip file */ -extern unzFile ZEXPORT unzOpen(const char *path); -extern unzFile ZEXPORT unzOpen64(const void *path); +ZEXTERN unzFile ZEXPORT unzOpen(const char *path); +ZEXTERN unzFile ZEXPORT unzOpen64(const void *path); /* Open a Zip file. path should contain the full path (by example, on a Windows XP computer @@ -130,24 +130,24 @@ extern unzFile ZEXPORT unzOpen64(const void *path); open64_file_func callback. Under Windows, if UNICODE is defined, using fill_fopen64_filefunc, the path is a pointer to a wide unicode string (LPCTSTR is LPCWSTR), so const char *does not describe the reality */ -extern unzFile ZEXPORT unzOpen2(const char *path, zlib_filefunc_def *pzlib_filefunc_def); +ZEXTERN unzFile ZEXPORT unzOpen2(const char *path, zlib_filefunc_def *pzlib_filefunc_def); /* Open a Zip file, like unzOpen, but provide a set of file low level API for read/write operations */ -extern unzFile ZEXPORT unzOpen2_64(const void *path, zlib_filefunc64_def *pzlib_filefunc_def); +ZEXTERN unzFile ZEXPORT unzOpen2_64(const void *path, zlib_filefunc64_def *pzlib_filefunc_def); /* Open a Zip file, like unz64Open, but provide a set of file low level API for read/write 64-bit operations */ -extern int ZEXPORT unzClose(unzFile file); +ZEXTERN int ZEXPORT unzClose(unzFile file); /* Close a ZipFile opened with unzOpen. If there is files inside the .Zip opened with unzOpenCurrentFile, these files MUST be closed with unzipCloseCurrentFile before call unzipClose. return UNZ_OK if there is no error */ -extern int ZEXPORT unzGetGlobalInfo(unzFile file, unz_global_info *pglobal_info); -extern int ZEXPORT unzGetGlobalInfo64(unzFile file, unz_global_info64 *pglobal_info); +ZEXTERN int ZEXPORT unzGetGlobalInfo(unzFile file, unz_global_info *pglobal_info); +ZEXTERN int ZEXPORT unzGetGlobalInfo64(unzFile file, unz_global_info64 *pglobal_info); /* Write info about the ZipFile in the *pglobal_info structure. return UNZ_OK if no error */ -extern int ZEXPORT unzGetGlobalComment(unzFile file, char *comment, uint16_t comment_size); +ZEXTERN int ZEXPORT unzGetGlobalComment(unzFile file, char *comment, uint16_t comment_size); /* Get the global comment string of the ZipFile, in the comment buffer. uSizeBuf is the size of the szComment buffer. @@ -157,28 +157,28 @@ extern int ZEXPORT unzGetGlobalComment(unzFile file, char *comment, uint16_t com /* Reading the content of the current zipfile, you can open it, read data from it, and close it (you can close it before reading all the file) */ -extern int ZEXPORT unzOpenCurrentFile(unzFile file); +ZEXTERN int ZEXPORT unzOpenCurrentFile(unzFile file); /* Open for reading data the current file in the zipfile. return UNZ_OK if no error */ -extern int ZEXPORT unzOpenCurrentFilePassword(unzFile file, const char *password); +ZEXTERN int ZEXPORT unzOpenCurrentFilePassword(unzFile file, const char *password); /* Open for reading data the current file in the zipfile. password is a crypting password return UNZ_OK if no error */ -extern int ZEXPORT unzOpenCurrentFile2(unzFile file, int *method, int *level, int raw); +ZEXTERN int ZEXPORT unzOpenCurrentFile2(unzFile file, int *method, int *level, int raw); /* Same as unzOpenCurrentFile, but open for read raw the file (not uncompress) if raw==1 *method will receive method of compression, *level will receive level of compression NOTE: you can set level parameter as NULL (if you did not want known level, but you CANNOT set method parameter as NULL */ -extern int ZEXPORT unzOpenCurrentFile3(unzFile file, int *method, int *level, int raw, const char *password); +ZEXTERN int ZEXPORT unzOpenCurrentFile3(unzFile file, int *method, int *level, int raw, const char *password); /* Same as unzOpenCurrentFile, but takes extra parameter password for encrypted files */ -extern int ZEXPORT unzReadCurrentFile(unzFile file, voidp buf, uint32_t len); +ZEXTERN int ZEXPORT unzReadCurrentFile(unzFile file, voidp buf, uint32_t len); /* Read bytes from the current file (opened by unzOpenCurrentFile) buf contain buffer where data must be copied len the size of buf. @@ -187,9 +187,9 @@ extern int ZEXPORT unzReadCurrentFile(unzFile file, voidp buf, uint32_t len); return 0 if the end of file was reached return <0 with error code if there is an error (UNZ_ERRNO for IO error, or zLib error for uncompress error) */ -extern int ZEXPORT unzGetCurrentFileInfo(unzFile file, unz_file_info *pfile_info, char *filename, +ZEXTERN int ZEXPORT unzGetCurrentFileInfo(unzFile file, unz_file_info *pfile_info, char *filename, uint16_t filename_size, void *extrafield, uint16_t extrafield_size, char *comment, uint16_t comment_size); -extern int ZEXPORT unzGetCurrentFileInfo64(unzFile file, unz_file_info64 *pfile_info, char *filename, +ZEXTERN int ZEXPORT unzGetCurrentFileInfo64(unzFile file, unz_file_info64 *pfile_info, char *filename, uint16_t filename_size, void *extrafield, uint16_t extrafield_size, char *comment, uint16_t comment_size); /* Get Info about the current file @@ -201,7 +201,7 @@ extern int ZEXPORT unzGetCurrentFileInfo64(unzFile file, unz_file_info64 *pfile_ comment if != NULL, the comment string of the file will be copied in to comment_size is the size of the comment buffer */ -extern int ZEXPORT unzGetLocalExtrafield(unzFile file, voidp buf, uint32_t len); +ZEXTERN int ZEXPORT unzGetLocalExtrafield(unzFile file, voidp buf, uint32_t len); /* Read extra field from the current file (opened by unzOpenCurrentFile) This is the local-header version of the extra field (sometimes, there is more info in the local-header version than in the central-header) @@ -211,7 +211,7 @@ extern int ZEXPORT unzGetLocalExtrafield(unzFile file, voidp buf, uint32_t len); return number of bytes copied in buf, or (if <0) the error code */ -extern int ZEXPORT unzCloseCurrentFile(unzFile file); +ZEXTERN int ZEXPORT unzCloseCurrentFile(unzFile file); /* Close the file in zip opened with unzOpenCurrentFile return UNZ_CRCERROR if all the file was read but the CRC is not good */ @@ -224,25 +224,25 @@ typedef int (*unzIteratorFunction)(unzFile file); typedef int (*unzIteratorFunction2)(unzFile file, unz_file_info64 *pfile_info, char *filename, uint16_t filename_size, void *extrafield, uint16_t extrafield_size, char *comment, uint16_t comment_size); -extern int ZEXPORT unzGoToFirstFile(unzFile file); +ZEXTERN int ZEXPORT unzGoToFirstFile(unzFile file); /* Set the current file of the zipfile to the first file. return UNZ_OK if no error */ -extern int ZEXPORT unzGoToFirstFile2(unzFile file, unz_file_info64 *pfile_info, char *filename, +ZEXTERN int ZEXPORT unzGoToFirstFile2(unzFile file, unz_file_info64 *pfile_info, char *filename, uint16_t filename_size, void *extrafield, uint16_t extrafield_size, char *comment, uint16_t comment_size); /* Set the current file of the zipfile to the first file and retrieves the current info on success. Not as seek intensive as unzGoToFirstFile + unzGetCurrentFileInfo. return UNZ_OK if no error */ -extern int ZEXPORT unzGoToNextFile(unzFile file); +ZEXTERN int ZEXPORT unzGoToNextFile(unzFile file); /* Set the current file of the zipfile to the next file. return UNZ_OK if no error return UNZ_END_OF_LIST_OF_FILE if the actual file was the latest */ -extern int ZEXPORT unzGoToNextFile2(unzFile file, unz_file_info64 *pfile_info, char *filename, +ZEXTERN int ZEXPORT unzGoToNextFile2(unzFile file, unz_file_info64 *pfile_info, char *filename, uint16_t filename_size, void *extrafield, uint16_t extrafield_size, char *comment, uint16_t comment_size); /* Set the current file of the zipfile to the next file and retrieves the current info on success. Does less seeking around than unzGotoNextFile + unzGetCurrentFileInfo. @@ -250,7 +250,7 @@ extern int ZEXPORT unzGoToNextFile2(unzFile file, unz_file_info64 *pfile_info, c return UNZ_OK if no error return UNZ_END_OF_LIST_OF_FILE if the actual file was the latest */ -extern int ZEXPORT unzLocateFile(unzFile file, const char *filename, unzFileNameComparer filename_compare_func); +ZEXTERN int ZEXPORT unzLocateFile(unzFile file, const char *filename, unzFileNameComparer filename_compare_func); /* Try locate the file szFileName in the zipfile. For custom filename comparison pass in comparison function. return UNZ_OK if the file is found (it becomes the current file) @@ -265,8 +265,8 @@ typedef struct unz_file_pos_s uint32_t num_of_file; /* # of file */ } unz_file_pos; -extern int ZEXPORT unzGetFilePos(unzFile file, unz_file_pos *file_pos); -extern int ZEXPORT unzGoToFilePos(unzFile file, unz_file_pos *file_pos); +ZEXTERN int ZEXPORT unzGetFilePos(unzFile file, unz_file_pos *file_pos); +ZEXTERN int ZEXPORT unzGoToFilePos(unzFile file, unz_file_pos *file_pos); typedef struct unz64_file_pos_s { @@ -274,26 +274,26 @@ typedef struct unz64_file_pos_s uint64_t num_of_file; /* # of file */ } unz64_file_pos; -extern int ZEXPORT unzGetFilePos64(unzFile file, unz64_file_pos *file_pos); -extern int ZEXPORT unzGoToFilePos64(unzFile file, const unz64_file_pos *file_pos); +ZEXTERN int ZEXPORT unzGetFilePos64(unzFile file, unz64_file_pos *file_pos); +ZEXTERN int ZEXPORT unzGoToFilePos64(unzFile file, const unz64_file_pos *file_pos); -extern int32_t ZEXPORT unzGetOffset(unzFile file); -extern int64_t ZEXPORT unzGetOffset64(unzFile file); +ZEXTERN int32_t ZEXPORT unzGetOffset(unzFile file); +ZEXTERN int64_t ZEXPORT unzGetOffset64(unzFile file); /* Get the current file offset */ -extern int ZEXPORT unzSetOffset(unzFile file, uint32_t pos); -extern int ZEXPORT unzSetOffset64(unzFile file, uint64_t pos); +ZEXTERN int ZEXPORT unzSetOffset(unzFile file, uint32_t pos); +ZEXTERN int ZEXPORT unzSetOffset64(unzFile file, uint64_t pos); /* Set the current file offset */ -extern int32_t ZEXPORT unzTell(unzFile file); -extern int64_t ZEXPORT unzTell64(unzFile file); +ZEXTERN int32_t ZEXPORT unzTell(unzFile file); +ZEXTERN int64_t ZEXPORT unzTell64(unzFile file); /* return current position in uncompressed data */ -extern int ZEXPORT unzSeek(unzFile file, uint32_t offset, int origin); -extern int ZEXPORT unzSeek64(unzFile file, uint64_t offset, int origin); +ZEXTERN int ZEXPORT unzSeek(unzFile file, uint32_t offset, int origin); +ZEXTERN int ZEXPORT unzSeek64(unzFile file, uint64_t offset, int origin); /* Seek within the uncompressed data if compression method is storage */ -extern int ZEXPORT unzEndOfFile(unzFile file); +ZEXTERN int ZEXPORT unzEndOfFile(unzFile file); /* return 1 if the end of file was reached, 0 elsewhere */ /***************************************************************************/