summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/3rdparty/zlib/gzio.c
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/src/3rdparty/zlib/gzio.c')
-rw-r--r--tqtinterface/qt4/src/3rdparty/zlib/gzio.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tqtinterface/qt4/src/3rdparty/zlib/gzio.c b/tqtinterface/qt4/src/3rdparty/zlib/gzio.c
index 4b56f31..03a4cc6 100644
--- a/tqtinterface/qt4/src/3rdparty/zlib/gzio.c
+++ b/tqtinterface/qt4/src/3rdparty/zlib/gzio.c
@@ -63,7 +63,7 @@ typedef struct gz_stream {
uLong crc; /* crc32 of uncompressed data */
char *msg; /* error message */
char *path; /* path name for debugging only */
- int transtqparent; /* 1 if input file is not a .gz file */
+ int transparent; /* 1 if input file is not a .gz file */
char mode; /* 'w' or 'r' */
z_off_t start; /* start of compressed data in file (header skipped) */
z_off_t in; /* bytes into deflate or inflate */
@@ -122,7 +122,7 @@ local gzFile gz_open (path, mode, fd)
s->back = EOF;
s->crc = crc32(0L, Z_NULL, 0);
s->msg = NULL;
- s->transtqparent = 0;
+ s->transparent = 0;
s->path = (char*)ALLOC(strlen(path)+1);
if (s->path == NULL) {
@@ -278,7 +278,7 @@ local int get_byte(s)
/* ===========================================================================
Check the gzip header of a gz_stream opened for reading. Set the stream
- mode to transtqparent if the gzip magic header is not present; set s->err
+ mode to transparent if the gzip magic header is not present; set s->err
to Z_DATA_ERROR if the magic header is present but the rest of the header
is incorrect.
IN assertion: the stream s has already been created sucessfully;
@@ -305,7 +305,7 @@ local void check_header(s)
s->stream.avail_in += len;
s->stream.next_in = s->inbuf;
if (s->stream.avail_in < 2) {
- s->transtqparent = s->stream.avail_in;
+ s->transparent = s->stream.avail_in;
return;
}
}
@@ -313,7 +313,7 @@ local void check_header(s)
/* Peek ahead to check the gzip magic header */
if (s->stream.next_in[0] != gz_magic[0] ||
s->stream.next_in[1] != gz_magic[1]) {
- s->transtqparent = 1;
+ s->transparent = 1;
return;
}
s->stream.avail_in -= 2;
@@ -423,7 +423,7 @@ int TQ_ZEXPORT gzread (file, buf, len)
while (s->stream.avail_out != 0) {
- if (s->transtqparent) {
+ if (s->transparent) {
/* Copy first the lookahead bytes: */
uInt n = s->stream.avail_in;
if (n > s->stream.avail_out) n = s->stream.avail_out;
@@ -811,7 +811,7 @@ z_off_t ZEXPORT gzseek (file, offset, whence)
}
if (offset < 0) return -1L;
- if (s->transtqparent) {
+ if (s->transparent) {
/* map to fseek */
s->back = EOF;
s->stream.avail_in = 0;
@@ -867,7 +867,7 @@ int ZEXPORT gzrewind (file)
s->stream.avail_in = 0;
s->stream.next_in = s->inbuf;
s->crc = crc32(0L, Z_NULL, 0);
- if (!s->transtqparent) (void)inflateReset(&s->stream);
+ if (!s->transparent) (void)inflateReset(&s->stream);
s->in = 0;
s->out = 0;
return fseek(s->file, s->start, SEEK_SET);