#define tab_prefix prev /* hash link (see deflate.c) */
#define head (prev+WSIZE) /* hash head (see deflate.c) */
-static long bytes_in; /* number of input bytes */
-
-#define isize bytes_in
-/* for compatibility with old zip sources (to be cleaned) */
-
-typedef int file_t; /* Do not use stdio */
+static long isize; /* number of input bytes */
#define NO_FILE (-1) /* in memory compression */
static ulg flush_block(char *buf, ulg stored_len, int eof);
/* from bits.c */
-static void bi_init(file_t zipfile);
+static void bi_init(int zipfile);
static void send_bits(int value, int length);
static unsigned bi_reverse(unsigned value, int length);
static void bi_windup(void);
#ifdef DEBUG
insize = 0;
#endif
- bytes_in = 0L;
+ isize = 0L;
}
/* ===========================================================================
* Local data used by the "bit string" routines.
*/
-static file_t zfile; /* output gzip file */
+static int zfile; /* output gzip file */
static unsigned short bi_buf;
/* ===========================================================================
* Initialize the bit string routines.
*/
-static void bi_init(file_t zipfile)
+static void bi_init(int zipfile)
{
zfile = zipfile;
bi_buf = 0;
static uint32_t crc; /* crc on uncompressed file data */
-static long header_bytes; /* number of bytes in gzip header */
static void put_long(ulg n)
{
put_byte((uch) deflate_flags); /* extra flags */
put_byte(OS_CODE); /* OS identifier */
- header_bytes = (long) outcnt;
-
(void) deflate();
/* Write the crc and uncompressed size */
put_long(crc);
put_long(isize);
- header_bytes += 2 * sizeof(long);
flush_outbuf();
return OK;