From 423eb40306489f9c88f7dba32c2f69179166730b Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Fri, 9 Sep 2011 23:14:39 -0700 Subject: zlib 1.0.1 --- deflate.h | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'deflate.h') diff --git a/deflate.h b/deflate.h index 834563b..95ca0c2 100644 --- a/deflate.h +++ b/deflate.h @@ -1,5 +1,5 @@ /* deflate.h -- internal compression state - * Copyright (C) 1995 Jean-loup Gailly + * Copyright (C) 1995-1996 Jean-loup Gailly * For conditions of distribution and use, see copyright notice in zlib.h */ @@ -8,7 +8,10 @@ subject to change. Applications should only use zlib.h. */ -/* $Id: deflate.h,v 1.5 1995/05/03 17:27:09 jloup Exp $ */ +/* $Id: deflate.h,v 1.9 1996/01/30 21:59:13 me Exp $ */ + +#ifndef _DEFLATE_H +#define _DEFLATE_H #include "zutil.h" @@ -16,11 +19,6 @@ * Internal compression state. */ -/* Data type */ -#define BINARY 0 -#define ASCII 1 -#define UNKNOWN 2 - #define LENGTH_CODES 29 /* number of length codes, not counting the special END_BLOCK code */ @@ -87,7 +85,6 @@ typedef struct internal_state { Bytef *pending_buf; /* output still pending */ Bytef *pending_out; /* next pending byte to output to the stream */ int pending; /* nb of bytes in the pending buffer */ - uLong adler; /* adler32 of uncompressed data */ int noheader; /* suppress zlib header and adler32 */ Byte data_type; /* UNKNOWN, BINARY or ASCII */ Byte method; /* STORED (for zip only) or DEFLATED */ @@ -268,9 +265,11 @@ typedef struct internal_state { */ /* in trees.c */ -void tr_init OF((deflate_state *s)); -int tr_tally OF((deflate_state *s, int dist, int lc)); -ulg tr_flush_block OF((deflate_state *s, charf *buf, ulg stored_len, int eof)); -void tr_align OF((deflate_state *s)); -void tr_stored_block OF((deflate_state *s, charf *buf, ulg stored_len, - int eof)); +void _tr_init OF((deflate_state *s)); +int _tr_tally OF((deflate_state *s, unsigned dist, unsigned lc)); +ulg _tr_flush_block OF((deflate_state *s, charf *buf, ulg stored_len, + int eof)); +void _tr_align OF((deflate_state *s)); +void _tr_stored_block OF((deflate_state *s, charf *buf, ulg stored_len, + int eof)); +#endif -- cgit v1.2.3-55-g6feb