Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
decompress.c File Reference
#include "bzlib_private.h"

Macros

#define RETURN(rrr)
 
#define GET_BITS(lll, vvv, nnn)
 
#define GET_UCHAR(lll, uuu)
 
#define GET_BIT(lll, uuu)
 
#define GET_MTF_VAL(label1, label2, lval)
 

Functions

Int32 BZ2_decompress (DState *s)
 

Macro Definition Documentation

◆ GET_BIT

#define GET_BIT ( lll,
uuu )
Value:
GET_BITS(lll,uuu,1)
#define GET_BITS(lll, vvv, nnn)
Definition decompress.c:43

◆ GET_BITS

#define GET_BITS ( lll,
vvv,
nnn )
Value:
case lll: s->state = lll; \
while (True) { \
if (s->bsLive >= nnn) { \
UInt32 v; \
v = (s->bsBuff >> \
(s->bsLive-nnn)) & ((1 << nnn)-1); \
s->bsLive -= nnn; \
vvv = v; \
break; \
} \
if (s->strm->avail_in == 0) RETURN(BZ_OK); \
s->bsBuff \
= (s->bsBuff << 8) | \
((UInt32) \
(*((UChar*)(s->strm->next_in)))); \
s->bsLive += 8; \
s->strm->next_in++; \
s->strm->avail_in--; \
s->strm->total_in_lo32++; \
if (s->strm->total_in_lo32 == 0) \
s->strm->total_in_hi32++; \
}
#define BZ_OK
Definition bzlib.h:33
unsigned int UInt32
Definition bzlib_private.h:45
unsigned char UChar
Definition bzlib_private.h:43
#define True
Definition bzlib_private.h:49
#define RETURN(rrr)
Definition decompress.c:40
if(BZ_OK !=ret)
Definition zlib_interface.c:31

◆ GET_MTF_VAL

#define GET_MTF_VAL ( label1,
label2,
lval )
Value:
{ \
if (groupPos == 0) { \
groupNo++; \
if (groupNo >= nSelectors) \
RETURN(BZ_DATA_ERROR); \
groupPos = BZ_G_SIZE; \
gSel = s->selector[groupNo]; \
gMinlen = s->minLens[gSel]; \
gLimit = &(s->limit[gSel][0]); \
gPerm = &(s->perm[gSel][0]); \
gBase = &(s->base[gSel][0]); \
} \
groupPos--; \
zn = gMinlen; \
GET_BITS(label1, zvec, zn); \
while (1) { \
if (zn > 20 /* the longest code */) \
RETURN(BZ_DATA_ERROR); \
if (zvec <= gLimit[zn]) break; \
zn++; \
GET_BIT(label2, zj); \
zvec = (zvec << 1) | zj; \
}; \
if (zvec - gBase[zn] < 0 \
|| zvec - gBase[zn] >= BZ_MAX_ALPHA_SIZE) \
RETURN(BZ_DATA_ERROR); \
lval = gPerm[zvec - gBase[zn]]; \
}
#define BZ_DATA_ERROR
Definition bzlib.h:41
#define BZ_G_SIZE
Definition bzlib_private.h:122
#define BZ_MAX_ALPHA_SIZE
Definition bzlib_private.h:115

◆ GET_UCHAR

#define GET_UCHAR ( lll,
uuu )
Value:
GET_BITS(lll,uuu,8)

◆ RETURN

#define RETURN ( rrr)
Value:
{ retVal = rrr; goto save_state_and_return; };

Function Documentation

◆ BZ2_decompress()

Int32 BZ2_decompress ( DState * s)