From bcf78a20978d76f64b7cd46d1a4d7a79a578c77b Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Fri, 9 Sep 2011 22:36:31 -0700 Subject: zlib 0.71 --- inflate.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 inflate.h (limited to 'inflate.h') diff --git a/inflate.h b/inflate.h new file mode 100644 index 0000000..843224f --- /dev/null +++ b/inflate.h @@ -0,0 +1,22 @@ +/* temporary kludge assuming single pass decompression */ + +/* $Id: inflate.h,v 1.2 1995/04/11 14:47:32 jloup Exp $ */ + +#include + +#define NEXTBYTE \ + (istrm->total_in++, istrm->avail_in-- == 0 ? \ + (z_error("too small"), 0) : *istrm->next_in++) + +#define FLUSH(n) { \ + if (istrm->avail_out < n) z_error("too big"); \ + istrm->avail_out -= n; \ + memcpy(istrm->next_out, slide, n); \ + istrm->next_out += n; \ + istrm->total_out += n; \ +} +#define WSIZE istrm->state->w_size +#define slide istrm->state->window +#define memzero(a,s) memset((a),0,(s)) +#define inflate z_inflate +#define qflag 1 -- cgit v1.2.3-55-g6feb