aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libz/inftrees.h
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1998-02-28 06:04:26 +0000
committerSteve Price <steve@FreeBSD.org>1998-02-28 06:04:26 +0000
commitbd957a8d6c05c2b26507f0c310c269d02f187632 (patch)
treef03de58d136ec48f008735e374079754bdfee40f /lib/libz/inftrees.h
parente97dbe1e300c9da64012ba8b5f48c524c645d429 (diff)
downloadsrc-bd957a8d6c05c2b26507f0c310c269d02f187632.tar.gz
src-bd957a8d6c05c2b26507f0c310c269d02f187632.zip
Initial import of zlib-1.1.1
PR: 5869 Reviewed by: jdp
Notes
Notes: svn path=/vendor/libz/dist/; revision=33904
Diffstat (limited to 'lib/libz/inftrees.h')
-rw-r--r--lib/libz/inftrees.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/lib/libz/inftrees.h b/lib/libz/inftrees.h
index b06613ddd3f6..c2513d194927 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 */