|
LMMS
|
#include "inflate.h"Macros | |
| #define | PKZIP_BUG_WORKAROUND /* PKZIP 1.93a problem--live with it */ |
| #define | __INFLATE_C /* identifies this source module */ |
| #define | INFMOD /* tell inflate.h to include code to be compiled */ |
| #define | INVALID_CODE 99 |
| #define | IS_INVALID_CODE(c) |
| #define | UINT_D64 unsigned |
| #define | wsize WSIZE /* wsize is a constant */ |
| #define | MAXLITLENS 288 |
| #define | MAXDISTS 32 |
| #define | CHECK_EOF /* default as of 5.13/5.2 */ |
| #define | NEEDBITS(n) |
| #define | DUMPBITS(n) |
| #define | BMAX 16 /* maximum bit length of any code (16 for explode) */ |
| #define | N_MAX 288 /* maximum number of codes in any set */ |
Functions | |
| int inflate_codes | OF ((__GPRO__ struct huft *tl, struct huft *td, unsigned bl, unsigned bd)) |
| static int inflate_stored | OF ((__GPRO)) |
| static int inflate_block | OF ((__GPRO__ int *e)) |
| int | inflate_codes (__G__ tl, td, bl, bd) __GDEF struct huft *tl |
| while (1) | |
| static int | inflate_stored (__G) |
| static int | inflate_fixed (__G) |
| static int | inflate_dynamic (__G) |
| static int | inflate_block (__G__ e) __GDEF int *e |
| if (t==2) | |
| int | inflate_free (__G) |
| int | huft_build (__G__ b, n, s, d, e, t, m) __GDEF ZCONST unsigned *b |
| memzero ((char *) c, sizeof(c)) | |
| while (--i) | |
| if (c[0]==n) | |
| for (k=j=1;j<=BMAX;j++) | |
| memzero ((char *) v, sizeof(v)) | |
| while (++i< n) | |
| for (;k<=g;k++) | |
| int | huft_free (struct huft *t) |
Variables | |
| static ZCONST unsigned | border [] |
| static ZCONST ush | cplens64 [] |
| static ZCONST ush | cplens32 [] |
| static ZCONST uch | cplext64 [] |
| static ZCONST uch | cplext32 [] |
| static ZCONST ush | cpdist [] |
| static ZCONST uch | cpdext64 [] |
| static ZCONST uch | cpdext32 [] |
| static ZCONST unsigned | lbits = 9 |
| static ZCONST unsigned | dbits = 6 |
| int * | td |
| unsigned | bl |
| unsigned | bd |
| unsigned | d |
| UINT_D64 | n = x[g] |
| UINT_D64 | w = G.wp |
| struct huft * | t = (unsigned)b & 3 |
| unsigned | ml = mask_bits[bl] |
| unsigned | md = mask_bits[bd] |
| register ulg | b = G.bb |
| register unsigned | k = G.bk |
| int | retval = 0 |
| cleanup_decode | __pad0__ |
| G | bb = b |
| G | bk = k |
| cleanup_and_exit | __pad1__ |
| * | e = (int)b & 1 |
| unsigned | s |
| unsigned * | m = l[0] |
| unsigned | c [BMAX+1] |
| unsigned | el = n > 256 ? b[256] : BMAX |
| unsigned | f |
| int | g |
| int | h = -1 |
| register unsigned | i = n |
| register unsigned | j |
| int | lx [BMAX+1] |
| int * | l = lx+1 |
| register unsigned * | p = (unsigned *)b |
| register struct huft * | q = (struct huft *)NULL |
| struct huft | r |
| struct huft * | u [BMAX] = (struct huft *)NULL |
| unsigned | v [N_MAX] |
| unsigned | x [BMAX+1] = i = 0 |
| unsigned * | xp |
| int | y = 0 && g != 1 |
| unsigned | z = 0 |
| do | |
| #define __INFLATE_C /* identifies this source module */ |
| #define CHECK_EOF /* default as of 5.13/5.2 */ |
| #define DUMPBITS | ( | n | ) |
| #define INVALID_CODE 99 |
| #define IS_INVALID_CODE | ( | c | ) |
| #define MAXDISTS 32 |
| #define MAXLITLENS 288 |
| #define N_MAX 288 /* maximum number of codes in any set */ |
| #define NEEDBITS | ( | n | ) |
| #define PKZIP_BUG_WORKAROUND /* PKZIP 1.93a problem--live with it */ |
| #define UINT_D64 unsigned |
| if | ( | t | = = 2 | ) |
| memzero | ( | (char *) | c, |
| sizeof(c) | ) |
| memzero | ( | (char *) | v, |
| sizeof(v) | ) |
|
static |
|
static |
| while | ( | ) |
| while | ( | -- | i | ) |
| while | ( | 1 | ) |
| cleanup_decode __pad0__ |
| cleanup_and_exit __pad1__ |
| b = G.bb |
| unsigned bd |
| unsigned bl |
|
static |
|
static |
| unsigned f |
| int g |
| h = -1 |
| i = n |
| register unsigned j |
|
static |
| * m = l[0] |
| p = (unsigned *)b |
| struct huft r |
| int retval = 0 |
| unsigned s |
| int * td |
| unsigned v[N_MAX] |
| w = G.wp |
| x[0] = i = 0 |
| unsigned* xp |
| z = 0 |