source: trunk/mgpp/text/build.h@ 3365

Last change on this file since 3365 was 3365, checked in by kjdon, 22 years ago

Initial revision

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 KB
Line 
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
33int init_special (const TagInfo &tagInfo, char *file_name);
34int init_text_1 (const TagInfo &tagInfo, char *file_name);
35int init_text_2 (const TagInfo &tagInfo, char *file_name);
36int init_ivf_1 (const TagInfo &tagInfo, char *file_name);
37int 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
49int process_special (const TagInfo &tagInfo, const TextElArray &doc);
50int process_text_1 (const TagInfo &tagInfo, const TextElArray &doc);
51int process_text_2 (const TagInfo &tagInfo, const TextElArray &doc);
52int process_ivf_1 (const TagInfo &tagInfo, const TextElArray &doc);
53int 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
66int done_special (const TagInfo &tagInfo, char *filename);
67int done_text_1 (const TagInfo &tagInfo, char *filename);
68int done_text_2 (const TagInfo &tagInfo, char *filename);
69int done_ivf_1 (const TagInfo &tagInfo, char *filename);
70int 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
79extern unsigned long invf_buffer_size;
80/*
81 * The amount of memory to allocate to the invertion buffer.
82 */
83
84
85
86#endif
Note: See TracBrowser for help on using the repository browser.