summaryrefslogtreecommitdiffstats
path: root/generic/tclZipfs.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-01-08 14:45:53 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-01-08 14:45:53 (GMT)
commit0872562c806e950919a612ff0ff16e975a1a0b59 (patch)
treeccb49aa02e7d86522ac545c8f5ce836b89e0aa5d /generic/tclZipfs.c
parent7a36f112165d055e0093e8d87fd3637306b721e3 (diff)
parentf09dcac7855bb4d75a3ca3b44b9d5ce188260bff (diff)
downloadtcl-0872562c806e950919a612ff0ff16e975a1a0b59.zip
tcl-0872562c806e950919a612ff0ff16e975a1a0b59.tar.gz
tcl-0872562c806e950919a612ff0ff16e975a1a0b59.tar.bz2
TIP #592 implememtation: Stop support for Windows XP, Server 2003, Vista, Server 2008
Diffstat (limited to 'generic/tclZipfs.c')
-rw-r--r--generic/tclZipfs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/generic/tclZipfs.c b/generic/tclZipfs.c
index e84b490..572fcd5 100644
--- a/generic/tclZipfs.c
+++ b/generic/tclZipfs.c
@@ -228,7 +228,7 @@ typedef struct ZipFile {
typedef struct ZipEntry {
char *name; /* The full pathname of the virtual file */
ZipFile *zipFilePtr; /* The ZIP file holding this virtual file */
- Tcl_WideInt offset; /* Data offset into memory mapped ZIP file */
+ long long offset; /* Data offset into memory mapped ZIP file */
int numBytes; /* Uncompressed size of the virtual file */
int numCompressedBytes; /* Compressed size of the virtual file */
int compressMethod; /* Compress method */
@@ -336,7 +336,7 @@ static int ZipChannelRead(void *instanceData, char *buf,
static int ZipChannelSeek(void *instanceData, long offset,
int mode, int *errloc);
#endif
-static Tcl_WideInt ZipChannelWideSeek(void *instanceData, Tcl_WideInt offset,
+static long long ZipChannelWideSeek(void *instanceData, long long offset,
int mode, int *errloc);
static void ZipChannelWatchChannel(void *instanceData,
int mask);
@@ -2058,7 +2058,7 @@ ZipAddFile(
const char *zpath;
int crc, flush, zpathlen;
size_t nbyte, nbytecompr, len, olen, align = 0;
- Tcl_WideInt pos[3];
+ long long pos[3];
int mtime = 0, isNew, compMeth;
unsigned long keys[3], keys0[3];
char obuf[4096];
@@ -2412,7 +2412,7 @@ ZipFSMkZipOrImgObjCmd(
Tcl_Channel out;
int pwlen = 0, count, ret = TCL_ERROR, lobjc;
size_t len, slen = 0, i = 0;
- Tcl_WideInt pos[3];
+ long long pos[3];
Tcl_Obj **lobjv, *list = NULL;
ZipEntry *z;
Tcl_HashEntry *hPtr;
@@ -3444,10 +3444,10 @@ ZipChannelWrite(
*-------------------------------------------------------------------------
*/
-static Tcl_WideInt
+static long long
ZipChannelWideSeek(
void *instanceData,
- Tcl_WideInt offset,
+ long long offset,
int mode,
int *errloc)
{