X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;ds=sidebyside;f=inflate.h;h=a46cce6b6d05ef994d2a386257cf09068f0aa298;hb=a3622937453f517285f851817a7505f54f4f19aa;hp=ed434e5e88da5ce6b106ea0218ce763ddd0469bb;hpb=33a7aff45da511c3fc181071394ad9a01d5e8d61;p=zlib.git diff --git a/inflate.h b/inflate.h index ed434e5..a46cce6 100644 --- a/inflate.h +++ b/inflate.h @@ -1,5 +1,5 @@ /* inflate.h -- internal inflate state definition - * Copyright (C) 1995-2009 Mark Adler + * Copyright (C) 1995-2016 Mark Adler * For conditions of distribution and use, see copyright notice in zlib.h */ @@ -18,7 +18,7 @@ /* Possible inflate modes between inflate() calls */ typedef enum { - HEAD, /* i: waiting for magic header */ + HEAD = 16180, /* i: waiting for magic header */ FLAGS, /* i: waiting for method and flags (gzip) */ TIME, /* i: waiting for modification time (gzip) */ OS, /* i: waiting for extra flags and operating system (gzip) */ @@ -80,6 +80,7 @@ typedef enum { /* State maintained between inflate() calls -- approximately 7K bytes, not including the allocated sliding window, which is up to 32K bytes. */ struct inflate_state { + z_streamp strm; /* pointer back to this zlib stream */ inflate_mode mode; /* current inflate mode */ int last; /* true if processing last block */ int wrap; /* bit 0 true for zlib, bit 1 true for gzip,