diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 22:36:31 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 22:36:31 -0700 |
commit | bcf78a20978d76f64b7cd46d1a4d7a79a578c77b (patch) | |
tree | 1929db4ad12c15efc15ac123264a8a9046903a7a /inflate.h | |
download | zlib-bcf78a20978d76f64b7cd46d1a4d7a79a578c77b.tar.gz |
zlib 0.71v0.71
Diffstat (limited to 'inflate.h')
-rw-r--r-- | inflate.h | 22 |
1 files changed, 22 insertions, 0 deletions
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 <stdio.h> + +#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 |