ReactOS 0.4.16-dev-306-g647d351
mszip.h File Reference
#include "fdi.h"
Include dependency graph for mszip.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  FDI_Int
 
struct  Ziphuft
 
struct  ZIPstate
 
struct  fdi_cds_fwd
 

Macros

#define PFDI_INT(hfdi)   ((PFDI_Int)(hfdi))
 
#define PFDI_ALLOC(hfdi, size)   ((*PFDI_INT(hfdi)->pfnalloc) (size))
 
#define PFDI_FREE(hfdi, ptr)   ((*PFDI_INT(hfdi)->pfnfree) (ptr))
 
#define ZIPWSIZE   0x8000 /* window size */
 
#define ZIPLBITS   9 /* bits in base literal/length lookup table */
 
#define ZIPDBITS   6 /* bits in base distance lookup table */
 
#define ZIPBMAX   16 /* maximum bit length of any code */
 
#define ZIPN_MAX   288 /* maximum number of codes in any set */
 
#define CAB(x)   (decomp_state->x)
 
#define ZIP(x)   (decomp_state->methods.zip.x)
 
#define DECR_OK   (0)
 
#define DECR_DATAFORMAT   (1)
 
#define DECR_ILLEGALDATA   (2)
 
#define DECR_NOMEMORY   (3)
 
#define DECR_CHECKSUM   (4)
 
#define DECR_INPUT   (5)
 
#define DECR_OUTPUT   (6)
 
#define DECR_USERABORT   (7)
 
#define ZIPNEEDBITS(n)
 
#define ZIPDUMPBITS(n)   {b>>=(n);k-=(n);}
 
#define CAB_BLOCKMAX   (32768)
 
#define CAB_INPUTMAX   (CAB_BLOCKMAX+6144)
 
#define THOSE_ZIP_CONSTS
 

Typedefs

typedef unsigned char cab_UBYTE
 
typedef UINT16 cab_UWORD
 
typedef UINT32 cab_ULONG
 
typedef INT32 cab_LONG
 
typedef struct FDI_IntPFDI_Int
 
typedef struct fdi_cds_fwd fdi_decomp_state
 

Macro Definition Documentation

◆ CAB

#define CAB (   x)    (decomp_state->x)

Definition at line 77 of file mszip.h.

◆ CAB_BLOCKMAX

#define CAB_BLOCKMAX   (32768)

Definition at line 97 of file mszip.h.

◆ CAB_INPUTMAX

#define CAB_INPUTMAX   (CAB_BLOCKMAX+6144)

Definition at line 98 of file mszip.h.

◆ DECR_CHECKSUM

#define DECR_CHECKSUM   (4)

Definition at line 83 of file mszip.h.

◆ DECR_DATAFORMAT

#define DECR_DATAFORMAT   (1)

Definition at line 80 of file mszip.h.

◆ DECR_ILLEGALDATA

#define DECR_ILLEGALDATA   (2)

Definition at line 81 of file mszip.h.

◆ DECR_INPUT

#define DECR_INPUT   (5)

Definition at line 84 of file mszip.h.

◆ DECR_NOMEMORY

#define DECR_NOMEMORY   (3)

Definition at line 82 of file mszip.h.

◆ DECR_OK

#define DECR_OK   (0)

Definition at line 79 of file mszip.h.

◆ DECR_OUTPUT

#define DECR_OUTPUT   (6)

Definition at line 85 of file mszip.h.

◆ DECR_USERABORT

#define DECR_USERABORT   (7)

Definition at line 86 of file mszip.h.

◆ PFDI_ALLOC

#define PFDI_ALLOC (   hfdi,
  size 
)    ((*PFDI_INT(hfdi)->pfnalloc) (size))

Definition at line 45 of file mszip.h.

◆ PFDI_FREE

#define PFDI_FREE (   hfdi,
  ptr 
)    ((*PFDI_INT(hfdi)->pfnfree) (ptr))

Definition at line 46 of file mszip.h.

◆ PFDI_INT

#define PFDI_INT (   hfdi)    ((PFDI_Int)(hfdi))

Definition at line 43 of file mszip.h.

◆ THOSE_ZIP_CONSTS

#define THOSE_ZIP_CONSTS
Value:
static const cab_UBYTE Zipborder[] = /* Order of the bit length code lengths */ \
{ 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15}; \
static const cab_UWORD Zipcplens[] = /* Copy lengths for literal codes 257..285 */ \
{ 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, \
59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0}; \
static const cab_UWORD Zipcplext[] = /* Extra bits for literal codes 257..285 */ \
{ 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, \
4, 5, 5, 5, 5, 0, 99, 99}; /* 99==invalid */ \
static const cab_UWORD Zipcpdist[] = /* Copy offsets for distance codes 0..29 */ \
{ 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, \
513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577}; \
static const cab_UWORD Zipcpdext[] = /* Extra bits for distance codes */ \
{ 0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, \
10, 11, 11, 12, 12, 13, 13}; \
/* And'ing with Zipmask[n] masks the lower n bits */ \
static const cab_UWORD Zipmask[17] = { \
0x0000, 0x0001, 0x0003, 0x0007, 0x000f, 0x001f, 0x003f, 0x007f, 0x00ff, \
0x01ff, 0x03ff, 0x07ff, 0x0fff, 0x1fff, 0x3fff, 0x7fff, 0xffff \
}
UINT16 cab_UWORD
Definition: mszip.h:26
unsigned char cab_UBYTE
Definition: mszip.h:25

Definition at line 111 of file mszip.h.

◆ ZIP

#define ZIP (   x)    (decomp_state->methods.zip.x)

Definition at line 78 of file mszip.h.

◆ ZIPBMAX

#define ZIPBMAX   16 /* maximum bit length of any code */

Definition at line 52 of file mszip.h.

◆ ZIPDBITS

#define ZIPDBITS   6 /* bits in base distance lookup table */

Definition at line 51 of file mszip.h.

◆ ZIPDUMPBITS

#define ZIPDUMPBITS (   n)    {b>>=(n);k-=(n);}

Definition at line 90 of file mszip.h.

◆ ZIPLBITS

#define ZIPLBITS   9 /* bits in base literal/length lookup table */

Definition at line 50 of file mszip.h.

◆ ZIPN_MAX

#define ZIPN_MAX   288 /* maximum number of codes in any set */

Definition at line 53 of file mszip.h.

◆ ZIPNEEDBITS

#define ZIPNEEDBITS (   n)
Value:
{while(k<(n)){cab_LONG c=*(ZIP(inpos)++);\
b|=((cab_ULONG)c)<<k;k+=8;}}
INT32 cab_LONG
Definition: mszip.h:28
#define ZIP(x)
Definition: mszip.h:78
UINT32 cab_ULONG
Definition: mszip.h:27
GLdouble n
Definition: glext.h:7729
const GLubyte * c
Definition: glext.h:8905
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
int k
Definition: mpi.c:3369

Definition at line 88 of file mszip.h.

◆ ZIPWSIZE

#define ZIPWSIZE   0x8000 /* window size */

Definition at line 49 of file mszip.h.

Typedef Documentation

◆ cab_LONG

typedef INT32 cab_LONG

Definition at line 28 of file mszip.h.

◆ cab_UBYTE

Definition at line 25 of file mszip.h.

◆ cab_ULONG

typedef UINT32 cab_ULONG

Definition at line 27 of file mszip.h.

◆ cab_UWORD

typedef UINT16 cab_UWORD

Definition at line 26 of file mszip.h.

◆ fdi_decomp_state

◆ PFDI_Int

typedef struct FDI_Int * PFDI_Int