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 | * $Id: build.h 856 2000-01-14 02:26:25Z sjboddie $
|
---|
22 | *
|
---|
23 | **************************************************************************/
|
---|
24 |
|
---|
25 |
|
---|
26 | #ifndef H_BUILD
|
---|
27 | #define H_BUILD
|
---|
28 |
|
---|
29 | #include "longlong.h"
|
---|
30 |
|
---|
31 | #include "TextEl.h"
|
---|
32 | #include "TagInfo.h"
|
---|
33 |
|
---|
34 |
|
---|
35 | int init_special (const TagInfo &tagInfo, char *file_name);
|
---|
36 | int init_text_1 (const TagInfo &tagInfo, char *file_name);
|
---|
37 | int init_text_2 (const TagInfo &tagInfo, char *file_name);
|
---|
38 | int init_ivf_1 (const TagInfo &tagInfo, char *file_name);
|
---|
39 | int init_ivf_2 (const TagInfo &tagInfo, char *file_name);
|
---|
40 | /*
|
---|
41 | * file_name IN The name of the dictionary file
|
---|
42 | *
|
---|
43 | * returns COMPALLOK for all ok,
|
---|
44 | * COMPERROR for any error. e.g. cannot read file
|
---|
45 | */
|
---|
46 |
|
---|
47 |
|
---|
48 |
|
---|
49 |
|
---|
50 |
|
---|
51 | int process_special (const TagInfo &tagInfo, const TextElArray &doc);
|
---|
52 | int process_text_1 (const TagInfo &tagInfo, const TextElArray &doc);
|
---|
53 | int process_text_2 (const TagInfo &tagInfo, const TextElArray &doc);
|
---|
54 | int process_ivf_1 (const TagInfo &tagInfo, const TextElArray &doc);
|
---|
55 | int process_ivf_2 (const TagInfo &tagInfo, const TextElArray &doc);
|
---|
56 | /*
|
---|
57 | * returns COMPALLOK for all ok,
|
---|
58 | * COMPERROR for any error. e.g. cannot read file
|
---|
59 | *
|
---|
60 | * The calling routine is responsible for ensuring that s_out is long
|
---|
61 | * enough.
|
---|
62 | */
|
---|
63 |
|
---|
64 |
|
---|
65 |
|
---|
66 |
|
---|
67 |
|
---|
68 | int done_special (const TagInfo &tagInfo, char *filename);
|
---|
69 | int done_text_1 (const TagInfo &tagInfo, char *filename);
|
---|
70 | int done_text_2 (const TagInfo &tagInfo, char *filename);
|
---|
71 | int done_ivf_1 (const TagInfo &tagInfo, char *filename);
|
---|
72 | int done_ivf_2 (const TagInfo &tagInfo, char *filename);
|
---|
73 | /*
|
---|
74 | * returns COMPALLOK for all ok,
|
---|
75 | * COMPERROR for any error. e.g. cannot write file
|
---|
76 | */
|
---|
77 |
|
---|
78 |
|
---|
79 |
|
---|
80 |
|
---|
81 | extern unsigned long invf_buffer_size;
|
---|
82 | /*
|
---|
83 | * The amount of memory to allocate to the invertion buffer.
|
---|
84 | */
|
---|
85 |
|
---|
86 |
|
---|
87 |
|
---|
88 | #endif
|
---|