diff options
author | steve <steve@FreeBSD.org> | 1998-02-28 06:04:26 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1998-02-28 06:04:26 +0000 |
commit | 9f86c0bf8cf1224d46bbefe1d308f2cc8186a79b (patch) | |
tree | f03de58d136ec48f008735e374079754bdfee40f /lib/libz/inftrees.h | |
parent | 5372e3085661ee9071da924c16a5cfdc12f7590d (diff) | |
download | FreeBSD-src-9f86c0bf8cf1224d46bbefe1d308f2cc8186a79b.zip FreeBSD-src-9f86c0bf8cf1224d46bbefe1d308f2cc8186a79b.tar.gz |
Initial import of zlib-1.1.1
PR: 5869
Reviewed by: jdp
Diffstat (limited to 'lib/libz/inftrees.h')
-rw-r--r-- | lib/libz/inftrees.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/lib/libz/inftrees.h b/lib/libz/inftrees.h index b06613d..c2513d1 100644 --- a/lib/libz/inftrees.h +++ b/lib/libz/inftrees.h @@ -1,5 +1,5 @@ /* inftrees.h -- header to use inftrees.c - * Copyright (C) 1995-1996 Mark Adler + * Copyright (C) 1995-1998 Mark Adler * For conditions of distribution and use, see copyright notice in zlib.h */ @@ -27,15 +27,19 @@ struct inflate_huft_s { } more; }; -#ifdef DEBUG - extern uInt inflate_hufts; -#endif +/* Maximum size of dynamic tree. The maximum found in a long but non- + exhaustive search was 1041 huft structures (875 for length/literals + and 166 for distances, the latter actually the result of an + exhaustive search). The actual maximum is not known, but the + value below is more than safe. */ +#define MANY 1440 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 */ + inflate_huft *, /* space for trees */ + z_streamp)); /* for messages */ extern int inflate_trees_dynamic OF(( uInt, /* number of literal/length codes */ @@ -45,15 +49,12 @@ extern int inflate_trees_dynamic OF(( 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 */ + inflate_huft *, /* space for trees */ + z_streamp)); /* for messages */ 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 */ - + inflate_huft * FAR *, /* distance tree result */ + z_streamp)); /* for memory allocation */ |