summaryrefslogtreecommitdiff
path: root/lib/bzip2/bzlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bzip2/bzlib.c')
-rw-r--r--lib/bzip2/bzlib.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/lib/bzip2/bzlib.c b/lib/bzip2/bzlib.c
index f7318b7886e..39a480e25f9 100644
--- a/lib/bzip2/bzlib.c
+++ b/lib/bzip2/bzlib.c
@@ -87,7 +87,6 @@
/*--- Compression stuff ---*/
/*---------------------------------------------------*/
-
/*---------------------------------------------------*/
#ifndef BZ_NO_STDIO
void BZ2_bz__AssertH__fail ( int errcode )
@@ -137,7 +136,6 @@ void BZ2_bz__AssertH__fail ( int errcode )
}
#endif
-
/*---------------------------------------------------*/
static
int bz_config_ok ( void )
@@ -148,7 +146,6 @@ int bz_config_ok ( void )
return 1;
}
-
/*---------------------------------------------------*/
static
void* default_bzalloc ( void* opaque, Int32 items, Int32 size )
@@ -177,7 +174,6 @@ void prepare_new_block ( EState* s )
s->blockNo++;
}
-
/*---------------------------------------------------*/
static
void init_RL ( EState* s )
@@ -186,7 +182,6 @@ void init_RL ( EState* s )
s->state_in_len = 0;
}
-
static
Bool isempty_RL ( EState* s )
{
@@ -261,7 +256,6 @@ int BZ_API(BZ2_bzCompressInit)
return BZ_OK;
}
-
/*---------------------------------------------------*/
static
void add_pair_to_block ( EState* s )
@@ -297,7 +291,6 @@ void add_pair_to_block ( EState* s )
}
}
-
/*---------------------------------------------------*/
static
void flush_RL ( EState* s )
@@ -306,7 +299,6 @@ void flush_RL ( EState* s )
init_RL ( s );
}
-
/*---------------------------------------------------*/
#define ADD_CHAR_TO_BLOCK(zs,zchh0) \
{ \
@@ -334,7 +326,6 @@ void flush_RL ( EState* s )
} \
}
-
/*---------------------------------------------------*/
static
Bool copy_input_until_stop ( EState* s )
@@ -379,7 +370,6 @@ Bool copy_input_until_stop ( EState* s )
return progress_in;
}
-
/*---------------------------------------------------*/
static
Bool copy_output_until_stop ( EState* s )
@@ -406,7 +396,6 @@ Bool copy_output_until_stop ( EState* s )
return progress_out;
}
-
/*---------------------------------------------------*/
static
Bool handle_compress ( bz_stream* strm )
@@ -453,7 +442,6 @@ Bool handle_compress ( bz_stream* strm )
return progress_in || progress_out;
}
-
/*---------------------------------------------------*/
int BZ_API(BZ2_bzCompress) ( bz_stream *strm, int action )
{
@@ -514,7 +502,6 @@ int BZ_API(BZ2_bzCompress) ( bz_stream *strm, int action )
return BZ_OK; /*--not reached--*/
}
-
/*---------------------------------------------------*/
int BZ_API(BZ2_bzCompressEnd) ( bz_stream *strm )
{
@@ -578,7 +565,6 @@ int BZ_API(BZ2_bzDecompressInit)
return BZ_OK;
}
-
/*---------------------------------------------------*/
static
void unRLE_obuf_to_output_FAST ( DState* s )
@@ -604,7 +590,6 @@ void unRLE_obuf_to_output_FAST ( DState* s )
/* can a new run be started? */
if (s->nblock_used == s->save_nblock+1) return;
-
s->state_out_len = 1;
s->state_out_ch = s->k0;
BZ_GET_FAST(k1); BZ_RAND_UPD_MASK;
@@ -720,7 +705,6 @@ void unRLE_obuf_to_output_FAST ( DState* s )
}
}
-
/*---------------------------------------------------*/
__inline__ Int32 BZ2_indexIntoF ( Int32 indx, Int32 *cftab )
{
@@ -735,7 +719,6 @@ __inline__ Int32 BZ2_indexIntoF ( Int32 indx, Int32 *cftab )
return nb;
}
-
/*---------------------------------------------------*/
static
void unRLE_obuf_to_output_SMALL ( DState* s )
@@ -761,7 +744,6 @@ void unRLE_obuf_to_output_SMALL ( DState* s )
/* can a new run be started? */
if (s->nblock_used == s->save_nblock+1) return;
-
s->state_out_len = 1;
s->state_out_ch = s->k0;
BZ_GET_SMALL(k1); BZ_RAND_UPD_MASK;
@@ -831,7 +813,6 @@ void unRLE_obuf_to_output_SMALL ( DState* s )
}
}
-
/*---------------------------------------------------*/
int BZ_API(BZ2_bzDecompress) ( bz_stream *strm )
{
@@ -886,7 +867,6 @@ int BZ_API(BZ2_bzDecompress) ( bz_stream *strm )
return 0; /*NOTREACHED*/
}
-
/*---------------------------------------------------*/
int BZ_API(BZ2_bzDecompressEnd) ( bz_stream *strm )
{
@@ -906,7 +886,6 @@ int BZ_API(BZ2_bzDecompressEnd) ( bz_stream *strm )
return BZ_OK;
}
-
#ifndef BZ_NO_STDIO
/*---------------------------------------------------*/
/*--- File I/O stuff ---*/
@@ -930,7 +909,6 @@ typedef
}
bzFile;
-
/*---------------------------------------------*/
static Bool myfeof ( FILE* f )
{
@@ -940,7 +918,6 @@ static Bool myfeof ( FILE* f )
return False;
}
-
/*---------------------------------------------------*/
BZFILE* BZ_API(BZ2_bzWriteOpen)
( int* bzerror,
@@ -987,7 +964,6 @@ BZFILE* BZ_API(BZ2_bzWriteOpen)
return bzf;
}
-
/*---------------------------------------------------*/
void BZ_API(BZ2_bzWrite)
( int* bzerror,
@@ -1032,7 +1008,6 @@ void BZ_API(BZ2_bzWrite)
}
}
-
/*---------------------------------------------------*/
void BZ_API(BZ2_bzWriteClose)
( int* bzerror,
@@ -1045,7 +1020,6 @@ void BZ_API(BZ2_bzWriteClose)
nbytes_in, NULL, nbytes_out, NULL );
}
-
void BZ_API(BZ2_bzWriteClose64)
( int* bzerror,
BZFILE* b,
@@ -1110,7 +1084,6 @@ void BZ_API(BZ2_bzWriteClose64)
free ( bzf );
}
-
/*---------------------------------------------------*/
BZFILE* BZ_API(BZ2_bzReadOpen)
( int* bzerror,
@@ -1166,7 +1139,6 @@ BZFILE* BZ_API(BZ2_bzReadOpen)
return bzf;
}
-
/*---------------------------------------------------*/
void BZ_API(BZ2_bzReadClose) ( int *bzerror, BZFILE *b )
{
@@ -1184,7 +1156,6 @@ void BZ_API(BZ2_bzReadClose) ( int *bzerror, BZFILE *b )
free ( bzf );
}
-
/*---------------------------------------------------*/
int BZ_API(BZ2_bzRead)
( int* bzerror,
@@ -1244,7 +1215,6 @@ int BZ_API(BZ2_bzRead)
return 0; /*not reached*/
}
-
/*---------------------------------------------------*/
void BZ_API(BZ2_bzReadGetUnused)
( int* bzerror,
@@ -1266,7 +1236,6 @@ void BZ_API(BZ2_bzReadGetUnused)
}
#endif
-
/*---------------------------------------------------*/
/*--- Misc convenience stuff ---*/
/*---------------------------------------------------*/
@@ -1372,7 +1341,6 @@ int BZ_API(BZ2_bzBuffToBuffDecompress)
return ret;
}
-
/*---------------------------------------------------*/
/*--
Code contributed by Yoshioka Tsuneo
@@ -1394,7 +1362,6 @@ const char * BZ_API(BZ2_bzlibVersion)(void)
return BZ_VERSION;
}
-
#ifndef BZ_NO_STDIO
/*---------------------------------------------------*/
@@ -1476,7 +1443,6 @@ BZFILE * bzopen_or_bzdopen
return bzfp;
}
-
/*---------------------------------------------------*/
/*--
open file for read or write.
@@ -1490,7 +1456,6 @@ BZFILE * BZ_API(BZ2_bzopen)
return bzopen_or_bzdopen(path,-1,mode,/*bzopen*/0);
}
-
/*---------------------------------------------------*/
BZFILE * BZ_API(BZ2_bzdopen)
( int fd,
@@ -1499,7 +1464,6 @@ BZFILE * BZ_API(BZ2_bzdopen)
return bzopen_or_bzdopen(NULL,fd,mode,/*bzdopen*/1);
}
-
/*---------------------------------------------------*/
int BZ_API(BZ2_bzread) (BZFILE* b, void* buf, int len )
{
@@ -1513,7 +1477,6 @@ int BZ_API(BZ2_bzread) (BZFILE* b, void* buf, int len )
}
}
-
/*---------------------------------------------------*/
int BZ_API(BZ2_bzwrite) (BZFILE* b, void* buf, int len )
{
@@ -1527,7 +1490,6 @@ int BZ_API(BZ2_bzwrite) (BZFILE* b, void* buf, int len )
}
}
-
/*---------------------------------------------------*/
int BZ_API(BZ2_bzflush) (BZFILE *b)
{
@@ -1535,7 +1497,6 @@ int BZ_API(BZ2_bzflush) (BZFILE *b)
return 0;
}
-
/*---------------------------------------------------*/
void BZ_API(BZ2_bzclose) (BZFILE* b)
{
@@ -1556,7 +1517,6 @@ void BZ_API(BZ2_bzclose) (BZFILE* b)
}
}
-
/*---------------------------------------------------*/
/*--
return last error code
@@ -1580,7 +1540,6 @@ static char *bzerrorstrings[] = {
,"???" /* for future */
};
-
const char * BZ_API(BZ2_bzerror) (BZFILE *b, int *errnum)
{
int err = ((bzFile *)b)->lastErr;