source: main/trunk/greenstone2/common-src/indexers/mg/src/text/comp_dict.h@ 25147

Last change on this file since 25147 was 25147, checked in by kjdon, 12 years ago

merged 64_bit_Greenstone branch into trunk, rev 25139

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1/**************************************************************************
2 *
3 * comp_dict.h -- Functions for loading the compression dictionary
4 * Copyright (C) 1994 Neil Sharman
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 *
20 * $Id: comp_dict.h 25147 2012-02-28 00:59:00Z kjdon $
21 *
22 **************************************************************************/
23
24
25
26
27#define HASH_RATIO 2
28
29
30
31
32typedef struct dict_hash_table
33 {
34 mg_u_long size;
35 huff_data *hd;
36 mg_u_long *codes;
37 u_char **words;
38 u_char **table[1];
39 }
40dict_hash_table;
41
42
43
44
45extern compression_dict_header cdh;
46extern compressed_text_header cth;
47extern comp_frags_header cfh[2];
48
49extern dict_hash_table *ht[2];
50
51extern huff_data char_huff[2];
52extern huff_data lens_huff[2];
53extern mg_u_long *char_codes[2], *lens_codes[2];
54extern mg_u_long Words_disk;
55extern mg_u_long Chars_disk;
56
57
58
59int LoadCompressionDictionary (char *dict_file_name);
Note: See TracBrowser for help on using the repository browser.