summaryrefslogtreecommitdiff
path: root/zlib-1.1.4/maketree.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-04-08 14:30:52 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-04-08 14:30:52 +0000
commitaed02e6ca85b85b6b8462539f63e6927167cc715 (patch)
tree02a3d2b5f3c3d1c7a98b7789c0770bbd7e7e3aea /zlib-1.1.4/maketree.c
parent1c57cb25fc5944fb58ac8aa807102a9fac8c4960 (diff)
2011-04-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* bit: zlib is now integrated into RTEMS cpukit and is at a much newer version. * RTEMS_Makefiles/Makefile.zlib, zlib-1.1.4/ChangeLog, zlib-1.1.4/FAQ, zlib-1.1.4/INDEX, zlib-1.1.4/Make_vms.com, zlib-1.1.4/Makefile, zlib-1.1.4/Makefile.in, zlib-1.1.4/Makefile.riscos, zlib-1.1.4/README, zlib-1.1.4/adler32.c, zlib-1.1.4/algorithm.txt, zlib-1.1.4/compress.c, zlib-1.1.4/configure, zlib-1.1.4/crc32.c, zlib-1.1.4/deflate.c, zlib-1.1.4/deflate.h, zlib-1.1.4/descrip.mms, zlib-1.1.4/example.c, zlib-1.1.4/gzio.c, zlib-1.1.4/infblock.c, zlib-1.1.4/infblock.h, zlib-1.1.4/infcodes.c, zlib-1.1.4/infcodes.h, zlib-1.1.4/inffast.c, zlib-1.1.4/inffast.h, zlib-1.1.4/inffixed.h, zlib-1.1.4/inflate.c, zlib-1.1.4/inftrees.c, zlib-1.1.4/inftrees.h, zlib-1.1.4/infutil.c, zlib-1.1.4/infutil.h, zlib-1.1.4/maketree.c, zlib-1.1.4/minigzip.c, zlib-1.1.4/trees.c, zlib-1.1.4/trees.h, zlib-1.1.4/uncompr.c, zlib-1.1.4/zconf.h, zlib-1.1.4/zlib.3, zlib-1.1.4/zlib.h, zlib-1.1.4/zlib.html, zlib-1.1.4/zutil.c, zlib-1.1.4/zutil.h, zlib-1.1.4/amiga/Makefile.pup, zlib-1.1.4/amiga/Makefile.sas, zlib-1.1.4/contrib/README.contrib, zlib-1.1.4/contrib/visual-basic.txt, zlib-1.1.4/contrib/asm386/gvmat32.asm, zlib-1.1.4/contrib/asm386/gvmat32c.c, zlib-1.1.4/contrib/asm386/mkgvmt32.bat, zlib-1.1.4/contrib/asm386/zlibvc.def, zlib-1.1.4/contrib/asm386/zlibvc.dsp, zlib-1.1.4/contrib/asm386/zlibvc.dsw, zlib-1.1.4/contrib/asm586/README.586, zlib-1.1.4/contrib/asm586/match.S, zlib-1.1.4/contrib/asm686/README.686, zlib-1.1.4/contrib/asm686/match.S, zlib-1.1.4/contrib/delphi/zlib.mak, zlib-1.1.4/contrib/delphi/zlibdef.pas, zlib-1.1.4/contrib/delphi2/d_zlib.bpr, zlib-1.1.4/contrib/delphi2/d_zlib.cpp, zlib-1.1.4/contrib/delphi2/readme.txt, zlib-1.1.4/contrib/delphi2/zlib.bpg, zlib-1.1.4/contrib/delphi2/zlib.bpr, zlib-1.1.4/contrib/delphi2/zlib.cpp, zlib-1.1.4/contrib/delphi2/zlib.pas, zlib-1.1.4/contrib/delphi2/zlib32.bpr, zlib-1.1.4/contrib/delphi2/zlib32.cpp, zlib-1.1.4/contrib/iostream/test.cpp, zlib-1.1.4/contrib/iostream/zfstream.cpp, zlib-1.1.4/contrib/iostream/zfstream.h, zlib-1.1.4/contrib/iostream2/zstream.h, zlib-1.1.4/contrib/iostream2/zstream_test.cpp, zlib-1.1.4/contrib/minizip/ChangeLogUnzip, zlib-1.1.4/contrib/minizip/Makefile, zlib-1.1.4/contrib/minizip/miniunz.c, zlib-1.1.4/contrib/minizip/minizip.c, zlib-1.1.4/contrib/minizip/readme.txt, zlib-1.1.4/contrib/minizip/unzip.c, zlib-1.1.4/contrib/minizip/unzip.def, zlib-1.1.4/contrib/minizip/unzip.h, zlib-1.1.4/contrib/minizip/zip.c, zlib-1.1.4/contrib/minizip/zip.def, zlib-1.1.4/contrib/minizip/zip.h, zlib-1.1.4/contrib/minizip/zlibvc.def, zlib-1.1.4/contrib/minizip/zlibvc.dsp, zlib-1.1.4/contrib/minizip/zlibvc.dsw, zlib-1.1.4/contrib/untgz/Makefile, zlib-1.1.4/contrib/untgz/makefile.w32, zlib-1.1.4/contrib/untgz/untgz.c, zlib-1.1.4/msdos/Makefile.b32, zlib-1.1.4/msdos/Makefile.bor, zlib-1.1.4/msdos/Makefile.dj2, zlib-1.1.4/msdos/Makefile.emx, zlib-1.1.4/msdos/Makefile.msc, zlib-1.1.4/msdos/Makefile.tc, zlib-1.1.4/msdos/Makefile.w32, zlib-1.1.4/msdos/Makefile.wat, zlib-1.1.4/msdos/zlib.def, zlib-1.1.4/msdos/zlib.rc, zlib-1.1.4/nt/Makefile.emx, zlib-1.1.4/nt/Makefile.gcc, zlib-1.1.4/nt/Makefile.nt, zlib-1.1.4/nt/zlib.dnt, zlib-1.1.4/os2/Makefile.os2, zlib-1.1.4/os2/zlib.def: Removed.
Diffstat (limited to 'zlib-1.1.4/maketree.c')
-rw-r--r--zlib-1.1.4/maketree.c85
1 files changed, 0 insertions, 85 deletions
diff --git a/zlib-1.1.4/maketree.c b/zlib-1.1.4/maketree.c
deleted file mode 100644
index a16d4b1..0000000
--- a/zlib-1.1.4/maketree.c
+++ /dev/null
@@ -1,85 +0,0 @@
-/* maketree.c -- make inffixed.h table for decoding fixed codes
- * Copyright (C) 1995-2002 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.
- */
-
-/* This program is included in the distribution for completeness.
- You do not need to compile or run this program since inffixed.h
- is already included in the distribution. To use this program
- you need to compile zlib with BUILDFIXED defined and then compile
- and link this program with the zlib library. Then the output of
- this program can be piped to inffixed.h. */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include "zutil.h"
-#include "inftrees.h"
-
-/* simplify the use of the inflate_huft type with some defines */
-#define exop word.what.Exop
-#define bits word.what.Bits
-
-/* generate initialization table for an inflate_huft structure array */
-void maketree(uInt b, inflate_huft *t)
-{
- int i, e;
-
- i = 0;
- while (1)
- {
- e = t[i].exop;
- if (e && (e & (16+64)) == 0) /* table pointer */
- {
- fprintf(stderr, "maketree: cannot initialize sub-tables!\n");
- exit(1);
- }
- if (i % 4 == 0)
- printf("\n ");
- printf(" {{{%u,%u}},%u}", t[i].exop, t[i].bits, t[i].base);
- if (++i == (1<<b))
- break;
- putchar(',');
- }
- puts("");
-}
-
-/* create the fixed tables in C initialization syntax */
-void main(void)
-{
- int r;
- uInt bl, bd;
- inflate_huft *tl, *td;
- z_stream z;
-
- z.zalloc = zcalloc;
- z.opaque = (voidpf)0;
- z.zfree = zcfree;
- r = inflate_trees_fixed(&bl, &bd, &tl, &td, &z);
- if (r)
- {
- fprintf(stderr, "inflate_trees_fixed error %d\n", r);
- return;
- }
- puts("/* inffixed.h -- table for decoding fixed codes");
- puts(" * Generated automatically by the maketree.c program");
- puts(" */");
- puts("");
- puts("/* WARNING: this file should *not* be used by applications. It is");
- puts(" part of the implementation of the compression library and is");
- puts(" subject to change. Applications should only use zlib.h.");
- puts(" */");
- puts("");
- printf("local uInt fixed_bl = %d;\n", bl);
- printf("local uInt fixed_bd = %d;\n", bd);
- printf("local inflate_huft fixed_tl[] = {");
- maketree(bl, tl);
- puts(" };");
- printf("local inflate_huft fixed_td[] = {");
- maketree(bd, td);
- puts(" };");
-}