summaryrefslogtreecommitdiff
path: root/src/compression/bwlzh.c
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-10-09 13:29:22 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-10-09 15:14:32 (GMT)
commit5efad15b0254e6b2dc213865e88d8a1ea7419454 (patch)
tree7abca9d59e2c243d4897f942be4f0c831c2d07df /src/compression/bwlzh.c
parentea37cbf48b84b75a9ec535af679d6104757e4271 (diff)
Fix build issues.
Diffstat (limited to 'src/compression/bwlzh.c')
-rw-r--r--src/compression/bwlzh.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/compression/bwlzh.c b/src/compression/bwlzh.c
index e5eb499..88bee37 100644
--- a/src/compression/bwlzh.c
+++ b/src/compression/bwlzh.c
@@ -81,9 +81,6 @@ static void bwlzh_compress_gen(unsigned int *vals, int nvals,
int huffdatalen;
int nhufflen[N_HUFFMAN_ALGO];
int huffalgo;
-#ifndef PARTIAL_MTF
- int ndict;
-#endif
int bwt_index;
unsigned int *bwt=NULL;
#ifdef PARTIAL_MTF3
@@ -213,6 +210,7 @@ static void bwlzh_compress_gen(unsigned int *vals, int nvals,
#ifdef PARTIAL_MTF
Ptngc_comp_conv_to_mtf_partial(bwt,nvals16,mtf);
#else
+ int ndict;
Ptngc_comp_canonical_dict(dict,&ndict);
Ptngc_comp_conv_to_mtf(bwt,nvals16,
dict,ndict,mtf);
@@ -496,9 +494,6 @@ static void bwlzh_decompress_gen(unsigned char *input, int nvals,
{
unsigned int *vals16;
int nvals16;
-#ifndef PARTIAL_MTF
- int ndict;
-#endif
int bwt_index;
unsigned int *bwt=NULL;
unsigned int *mtf=NULL;
@@ -748,6 +743,7 @@ static void bwlzh_decompress_gen(unsigned char *input, int nvals,
#ifdef PARTIAL_MTF
Ptngc_comp_conv_from_mtf_partial(mtf,nvals16,bwt);
#else
+ int ndict;
Ptngc_comp_canonical_dict(dict,&ndict);
Ptngc_comp_conv_from_mtf(mtf,nvals16,dict,ndict,bwt);
#endif
contact: Jan Huwald // Impressum