diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-04-08 14:30:52 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-04-08 14:30:52 +0000 |
commit | aed02e6ca85b85b6b8462539f63e6927167cc715 (patch) | |
tree | 02a3d2b5f3c3d1c7a98b7789c0770bbd7e7e3aea /zlib-1.1.4/infutil.h | |
parent | 2009-11-13 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-addon-packages-aed02e6ca85b85b6b8462539f63e6927167cc715.tar.bz2 |
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/infutil.h')
-rw-r--r-- | zlib-1.1.4/infutil.h | 98 |
1 files changed, 0 insertions, 98 deletions
diff --git a/zlib-1.1.4/infutil.h b/zlib-1.1.4/infutil.h deleted file mode 100644 index 4401df8..0000000 --- a/zlib-1.1.4/infutil.h +++ /dev/null @@ -1,98 +0,0 @@ -/* infutil.h -- types and macros common to blocks and 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. - */ - -#ifndef _INFUTIL_H -#define _INFUTIL_H - -typedef enum { - TYPE, /* get type bits (3, including end bit) */ - LENS, /* get lengths for stored */ - STORED, /* processing stored block */ - TABLE, /* get table lengths */ - BTREE, /* get bit lengths tree for a dynamic block */ - DTREE, /* get length, distance trees for a dynamic block */ - CODES, /* processing fixed or dynamic block */ - DRY, /* output remaining window bytes */ - DONE, /* finished last block, done */ - BAD} /* got a data error--stuck here */ -inflate_block_mode; - -/* inflate blocks semi-private state */ -struct inflate_blocks_state { - - /* mode */ - inflate_block_mode mode; /* current inflate_block mode */ - - /* mode dependent information */ - union { - uInt left; /* if STORED, bytes left to copy */ - struct { - uInt table; /* table lengths (14 bits) */ - uInt index; /* index into blens (or border) */ - uIntf *blens; /* bit lengths of codes */ - uInt bb; /* bit length tree depth */ - inflate_huft *tb; /* bit length decoding tree */ - } trees; /* if DTREE, decoding info for trees */ - struct { - inflate_codes_statef - *codes; - } decode; /* if CODES, current state */ - } sub; /* submode */ - uInt last; /* true if this block is the last block */ - - /* mode independent information */ - uInt bitk; /* bits in bit buffer */ - uLong bitb; /* bit buffer */ - inflate_huft *hufts; /* single malloc for tree space */ - Bytef *window; /* sliding window */ - Bytef *end; /* one byte after sliding window */ - Bytef *read; /* window read pointer */ - Bytef *write; /* window write pointer */ - check_func checkfn; /* check function */ - uLong check; /* check on output */ - -}; - - -/* defines for inflate input/output */ -/* update pointers and return */ -#define UPDBITS {s->bitb=b;s->bitk=k;} -#define UPDIN {z->avail_in=n;z->total_in+=p-z->next_in;z->next_in=p;} -#define UPDOUT {s->write=q;} -#define UPDATE {UPDBITS UPDIN UPDOUT} -#define LEAVE {UPDATE return inflate_flush(s,z,r);} -/* get bytes and bits */ -#define LOADIN {p=z->next_in;n=z->avail_in;b=s->bitb;k=s->bitk;} -#define NEEDBYTE {if(n)r=Z_OK;else LEAVE} -#define NEXTBYTE (n--,*p++) -#define NEEDBITS(j) {while(k<(j)){NEEDBYTE;b|=((uLong)NEXTBYTE)<<k;k+=8;}} -#define DUMPBITS(j) {b>>=(j);k-=(j);} -/* output bytes */ -#define WAVAIL (uInt)(q<s->read?s->read-q-1:s->end-q) -#define LOADOUT {q=s->write;m=(uInt)WAVAIL;} -#define WRAP {if(q==s->end&&s->read!=s->window){q=s->window;m=(uInt)WAVAIL;}} -#define FLUSH {UPDOUT r=inflate_flush(s,z,r); LOADOUT} -#define NEEDOUT {if(m==0){WRAP if(m==0){FLUSH WRAP if(m==0) LEAVE}}r=Z_OK;} -#define OUTBYTE(a) {*q++=(Byte)(a);m--;} -/* load local pointers */ -#define LOAD {LOADIN LOADOUT} - -/* masks for lower bits (size given to avoid silly warnings with Visual C++) */ -extern uInt inflate_mask[17]; - -/* copy as much as possible from the sliding window to the output area */ -extern int inflate_flush OF(( - inflate_blocks_statef *, - z_streamp , - int)); - -struct internal_state {int dummy;}; /* for buggy compilers */ - -#endif |