1 | /**************************************************************************
|
---|
2 | *
|
---|
3 | * build.h -- Global information for the passes of mg_passes
|
---|
4 | * Copyright (C) 1994 Neil Sharman, Alistair Moffat and Lachlan Andrew
|
---|
5 | * Copyright (C) 1999 Rodger McNab
|
---|
6 | *
|
---|
7 | * This program is free software; you can redistribute it and/or modify
|
---|
8 | * it under the terms of the GNU General Public License as published by
|
---|
9 | * the Free Software Foundation; either version 2 of the License, or
|
---|
10 | * (at your option) any later version.
|
---|
11 | *
|
---|
12 | * This program is distributed in the hope that it will be useful,
|
---|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
15 | * GNU General Public License for more details.
|
---|
16 | *
|
---|
17 | * You should have received a copy of the GNU General Public License
|
---|
18 | * along with this program; if not, write to the Free Software
|
---|
19 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
---|
20 | *
|
---|
21 | **************************************************************************/
|
---|
22 |
|
---|
23 |
|
---|
24 | #ifndef H_BUILD
|
---|
25 | #define H_BUILD
|
---|
26 |
|
---|
27 | #include "longlong.h"
|
---|
28 |
|
---|
29 | #include "TextEl.h"
|
---|
30 | #include "TagInfo.h"
|
---|
31 |
|
---|
32 |
|
---|
33 | int init_special (const TagInfo &tagInfo, char *file_name);
|
---|
34 | int init_text_1 (const TagInfo &tagInfo, char *file_name);
|
---|
35 | int init_text_2 (const TagInfo &tagInfo, char *file_name);
|
---|
36 | int init_ivf_1 (const TagInfo &tagInfo, char *file_name);
|
---|
37 | int init_ivf_2 (const TagInfo &tagInfo, char *file_name);
|
---|
38 | /*
|
---|
39 | * file_name IN The name of the dictionary file
|
---|
40 | *
|
---|
41 | * returns COMPALLOK for all ok,
|
---|
42 | * COMPERROR for any error. e.g. cannot read file
|
---|
43 | */
|
---|
44 |
|
---|
45 |
|
---|
46 |
|
---|
47 |
|
---|
48 |
|
---|
49 | int process_special (const TagInfo &tagInfo, const TextElArray &doc);
|
---|
50 | int process_text_1 (const TagInfo &tagInfo, const TextElArray &doc);
|
---|
51 | int process_text_2 (const TagInfo &tagInfo, const TextElArray &doc);
|
---|
52 | int process_ivf_1 (const TagInfo &tagInfo, const TextElArray &doc);
|
---|
53 | int process_ivf_2 (const TagInfo &tagInfo, const TextElArray &doc);
|
---|
54 | /*
|
---|
55 | * returns COMPALLOK for all ok,
|
---|
56 | * COMPERROR for any error. e.g. cannot read file
|
---|
57 | *
|
---|
58 | * The calling routine is responsible for ensuring that s_out is long
|
---|
59 | * enough.
|
---|
60 | */
|
---|
61 |
|
---|
62 |
|
---|
63 |
|
---|
64 |
|
---|
65 |
|
---|
66 | int done_special (const TagInfo &tagInfo, char *filename);
|
---|
67 | int done_text_1 (const TagInfo &tagInfo, char *filename);
|
---|
68 | int done_text_2 (const TagInfo &tagInfo, char *filename);
|
---|
69 | int done_ivf_1 (const TagInfo &tagInfo, char *filename);
|
---|
70 | int done_ivf_2 (const TagInfo &tagInfo, char *filename);
|
---|
71 | /*
|
---|
72 | * returns COMPALLOK for all ok,
|
---|
73 | * COMPERROR for any error. e.g. cannot write file
|
---|
74 | */
|
---|
75 |
|
---|
76 |
|
---|
77 |
|
---|
78 |
|
---|
79 | extern unsigned long invf_buffer_size;
|
---|
80 | /*
|
---|
81 | * The amount of memory to allocate to the invertion buffer.
|
---|
82 | */
|
---|
83 |
|
---|
84 |
|
---|
85 |
|
---|
86 | #endif
|
---|