aboutsummaryrefslogtreecommitdiff
path: root/huffman.c
diff options
context:
space:
mode:
Diffstat (limited to 'huffman.c')
-rw-r--r--huffman.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/huffman.c b/huffman.c
index bb2a6cc..9b446c4 100644
--- a/huffman.c
+++ b/huffman.c
@@ -8,7 +8,7 @@
8 This file is a part of bzip2 and/or libbzip2, a program and 8 This file is a part of bzip2 and/or libbzip2, a program and
9 library for lossless, block-sorting data compression. 9 library for lossless, block-sorting data compression.
10 10
11 Copyright (C) 1996-1999 Julian R Seward. All rights reserved. 11 Copyright (C) 1996-2000 Julian R Seward. All rights reserved.
12 12
13 Redistribution and use in source and binary forms, with or without 13 Redistribution and use in source and binary forms, with or without
14 modification, are permitted provided that the following conditions 14 modification, are permitted provided that the following conditions
@@ -43,7 +43,7 @@
43 43
44 Julian Seward, Cambridge, UK. 44 Julian Seward, Cambridge, UK.
45 jseward@acm.org 45 jseward@acm.org
46 bzip2/libbzip2 version 0.9.5 of 24 May 1999 46 bzip2/libbzip2 version 1.0 of 21 March 2000
47 47
48 This program is based on (at least) the work of: 48 This program is based on (at least) the work of:
49 Mike Burrows 49 Mike Burrows
@@ -100,10 +100,10 @@
100 100
101 101
102/*---------------------------------------------------*/ 102/*---------------------------------------------------*/
103void hbMakeCodeLengths ( UChar *len, 103void BZ2_hbMakeCodeLengths ( UChar *len,
104 Int32 *freq, 104 Int32 *freq,
105 Int32 alphaSize, 105 Int32 alphaSize,
106 Int32 maxLen ) 106 Int32 maxLen )
107{ 107{
108 /*-- 108 /*--
109 Nodes and heap entries run from 1. Entry 0 109 Nodes and heap entries run from 1. Entry 0
@@ -172,11 +172,11 @@ void hbMakeCodeLengths ( UChar *len,
172 172
173 173
174/*---------------------------------------------------*/ 174/*---------------------------------------------------*/
175void hbAssignCodes ( Int32 *code, 175void BZ2_hbAssignCodes ( Int32 *code,
176 UChar *length, 176 UChar *length,
177 Int32 minLen, 177 Int32 minLen,
178 Int32 maxLen, 178 Int32 maxLen,
179 Int32 alphaSize ) 179 Int32 alphaSize )
180{ 180{
181 Int32 n, vec, i; 181 Int32 n, vec, i;
182 182
@@ -190,13 +190,13 @@ void hbAssignCodes ( Int32 *code,
190 190
191 191
192/*---------------------------------------------------*/ 192/*---------------------------------------------------*/
193void hbCreateDecodeTables ( Int32 *limit, 193void BZ2_hbCreateDecodeTables ( Int32 *limit,
194 Int32 *base, 194 Int32 *base,
195 Int32 *perm, 195 Int32 *perm,
196 UChar *length, 196 UChar *length,
197 Int32 minLen, 197 Int32 minLen,
198 Int32 maxLen, 198 Int32 maxLen,
199 Int32 alphaSize ) 199 Int32 alphaSize )
200{ 200{
201 Int32 pp, i, j, vec; 201 Int32 pp, i, j, vec;
202 202