0
|
1 |
struct Words
|
|
2 |
{
|
|
3 |
struct Word *first;
|
|
4 |
int length;
|
|
5 |
};
|
|
6 |
|
|
7 |
struct Word
|
|
8 |
{
|
|
9 |
char *w;
|
|
10 |
int def;
|
|
11 |
};
|
|
12 |
|
|
13 |
struct Def
|
|
14 |
{
|
|
15 |
char *d;
|
|
16 |
int offset;
|
|
17 |
int length;
|
|
18 |
};
|
|
19 |
|
|
20 |
/* write.c */
|
|
21 |
void write_dictionary(const char *name);
|
|
22 |
|
|
23 |
/* dict.c */
|
|
24 |
char * get_word(FILE *index);
|
|
25 |
int get_int(FILE *index);
|
|
26 |
char * get_def(FILE *fdefs, int offset, int length);
|
|
27 |
|
|
28 |
/* filter.c */
|
|
29 |
void filter_all(const char *filter_par);
|
|
30 |
|
|
31 |
/* sort.c */
|
|
32 |
int sort_words();
|
|
33 |
/* load.c */
|
|
34 |
void load_init();
|
|
35 |
void load_dictionary(FILE *index, FILE *fdefs);
|
|
36 |
void print_words();
|
2
|
37 |
|
|
38 |
/* fastmalloc */
|
|
39 |
void * fastmalloc(int newsize);
|
5
|
40 |
|
|
41 |
/* repeated.c */
|
|
42 |
void new_hashdef(struct Def *ptr, int index);
|
|
43 |
int def_repeated(struct Def *ptr);
|
|
44 |
void init_repeated();
|
|
45 |
void remove_def(int i);
|