diff options
author | maximius <none@none> | 2009-10-17 15:51:44 -0700 |
---|---|---|
committer | maximius <none@none> | 2009-10-17 15:51:44 -0700 |
commit | e585187b248f48b3c6e9247b49fa07c6565d65e5 (patch) | |
tree | 637c5b7ddacf41040bef4ea4f75a97da64c6a9bc /dep/src/zlib/inflate.h | |
parent | 26b5e033ffde3d161382fc9addbfa99738379641 (diff) |
*Backed out changeset 3be01fb200a5
--HG--
branch : trunk
Diffstat (limited to 'dep/src/zlib/inflate.h')
-rw-r--r-- | dep/src/zlib/inflate.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dep/src/zlib/inflate.h b/dep/src/zlib/inflate.h index 8cc93dbcbf2..7c05e08fcba 100644 --- a/dep/src/zlib/inflate.h +++ b/dep/src/zlib/inflate.h @@ -2,10 +2,12 @@ * Copyright (C) 1995-2004 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. */ + /* define NO_GZIP when compiling if you want to disable gzip header and trailer decoding by inflate(). NO_GZIP would be used to avoid linking in the crc code when it is not needed. For shared libraries, gzip decoding @@ -13,6 +15,7 @@ #ifndef NO_GZIP # define GUNZIP #endif + /* Possible inflate modes between inflate() calls */ typedef enum { HEAD, /* i: waiting for magic header */ @@ -46,9 +49,12 @@ typedef enum { MEM, /* got an inflate() memory error -- remain here until reset */ SYNC /* looking for synchronization bytes to restart inflate() */ } inflate_mode; + /* State transitions between above modes - + (most modes can go to the BAD or MEM mode -- not shown for clarity) + Process header: HEAD -> (gzip) or (zlib) (gzip) -> FLAGS -> TIME -> OS -> EXLEN -> EXTRA -> NAME @@ -66,6 +72,7 @@ typedef enum { Process trailer: CHECK -> LENGTH -> DONE */ + /* state maintained between inflate() calls. Approximately 7K bytes. */ struct inflate_state { inflate_mode mode; /* current inflate mode */ |