version 1.14, 2003/07/17 20:17:02 |
version 1.15, 2003/11/14 22:29:53 |
|
|
} |
} |
s->z_crc = crc32(s->z_crc, start, |
s->z_crc = crc32(s->z_crc, start, |
(uInt)(s->z_stream.next_out - start)); |
(uInt)(s->z_stream.next_out - start)); |
|
len -= s->z_stream.avail_out; |
|
|
return (int)(len - s->z_stream.avail_out); |
/* If at EOF, check for another appended file. */ |
|
if (s->z_eof) { |
|
int ocrc = s->z_crc; |
|
s->z_crc = crc32(0L, Z_NULL, 0); |
|
s->z_eof = 0; |
|
if (get_header(s, NULL, 0) != 0 || |
|
inflateEnd(&s->z_stream) != Z_OK || |
|
inflateInit2(&s->z_stream, -MAX_WBITS) != Z_OK) { |
|
s->z_eof = 1; |
|
s->z_crc = ocrc; |
|
} |
|
} |
|
|
|
return (len); |
} |
} |
|
|
int |
int |