diff options
author | 1996-07-27 02:39:40 +0000 | |
---|---|---|
committer | 1996-07-27 02:39:40 +0000 | |
commit | 2af503bc8697d1175a3669054523b1f824f40892 (patch) | |
tree | 4fa1fac4e62c29ea75e4eaf7557bf6cf39ffba4a /lib/libz/inftrees.h | |
parent | syslogd: -s goes away, becomes default. -u becomes insecure mode (diff) | |
download | wireguard-openbsd-2af503bc8697d1175a3669054523b1f824f40892.tar.xz wireguard-openbsd-2af503bc8697d1175a3669054523b1f824f40892.zip |
Integrate zlib v1.0.3
Diffstat (limited to 'lib/libz/inftrees.h')
-rw-r--r-- | lib/libz/inftrees.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/lib/libz/inftrees.h b/lib/libz/inftrees.h new file mode 100644 index 00000000000..b06613ddd3f --- /dev/null +++ b/lib/libz/inftrees.h @@ -0,0 +1,59 @@ +/* inftrees.h -- header to use inftrees.c + * Copyright (C) 1995-1996 Mark Adler + * For conditions of distribution and use, see copyright notice in zlib.h + */ + +/* WARNING: this file should *not* be used by applications. It is + part of the implementation of the compression library and is + subject to change. Applications should only use zlib.h. + */ + +/* Huffman code lookup table entry--this entry is four bytes for machines + that have 16-bit pointers (e.g. PC's in the small or medium model). */ + +typedef struct inflate_huft_s FAR inflate_huft; + +struct inflate_huft_s { + union { + struct { + Byte Exop; /* number of extra bits or operation */ + Byte Bits; /* number of bits in this code or subcode */ + } what; + Bytef *pad; /* pad structure to a power of 2 (4 bytes for */ + } word; /* 16-bit, 8 bytes for 32-bit machines) */ + union { + uInt Base; /* literal, length base, or distance base */ + inflate_huft *Next; /* pointer to next level of table */ + } more; +}; + +#ifdef DEBUG + extern uInt inflate_hufts; +#endif + +extern int inflate_trees_bits OF(( + uIntf *, /* 19 code lengths */ + uIntf *, /* bits tree desired/actual depth */ + inflate_huft * FAR *, /* bits tree result */ + z_streamp )); /* for zalloc, zfree functions */ + +extern int inflate_trees_dynamic OF(( + uInt, /* number of literal/length codes */ + uInt, /* number of distance codes */ + uIntf *, /* that many (total) code lengths */ + uIntf *, /* literal desired/actual bit depth */ + uIntf *, /* distance desired/actual bit depth */ + inflate_huft * FAR *, /* literal/length tree result */ + inflate_huft * FAR *, /* distance tree result */ + z_streamp )); /* for zalloc, zfree functions */ + +extern int inflate_trees_fixed OF(( + uIntf *, /* literal desired/actual bit depth */ + uIntf *, /* distance desired/actual bit depth */ + inflate_huft * FAR *, /* literal/length tree result */ + inflate_huft * FAR *)); /* distance tree result */ + +extern int inflate_trees_free OF(( + inflate_huft *, /* tables to free */ + z_streamp )); /* for zfree function */ + |