author | viric@llimona |
Tue, 28 Aug 2007 08:40:49 +0200 | |
changeset 13 | f71e89074c62 |
parent 10 | 188a0e3b3fb4 |
child 14 | a961bb8806b9 |
permissions | -rw-r--r-- |
10 | 1 |
enum { |
2 |
MAXWORD=200 |
|
3 |
}; |
|
4 |
||
0 | 5 |
struct Words |
6 |
{ |
|
7 |
struct Word *first; |
|
8 |
int length; |
|
9 |
}; |
|
10 |
||
11 |
struct Word |
|
12 |
{ |
|
13 |
char *w; |
|
14 |
int def; |
|
15 |
}; |
|
16 |
||
17 |
struct Def |
|
18 |
{ |
|
19 |
char *d; |
|
20 |
int offset; |
|
21 |
int length; |
|
22 |
}; |
|
23 |
||
24 |
/* write.c */ |
|
25 |
void write_dictionary(const char *name); |
|
26 |
||
27 |
/* dict.c */ |
|
28 |
char * get_word(FILE *index); |
|
29 |
int get_int(FILE *index); |
|
30 |
char * get_def(FILE *fdefs, int offset, int length); |
|
8
09ec33061ff3
Added 'ia5' binary, and fixed the ia5 functions.
viric@llimona
parents:
5
diff
changeset
|
31 |
int str2int(const char *str); |
09ec33061ff3
Added 'ia5' binary, and fixed the ia5 functions.
viric@llimona
parents:
5
diff
changeset
|
32 |
int num_to_ia5(char *dest, int n); |
0 | 33 |
|
34 |
/* filter.c */ |
|
35 |
void filter_all(const char *filter_par); |
|
36 |
||
37 |
/* sort.c */ |
|
38 |
int sort_words(); |
|
39 |
/* load.c */ |
|
40 |
void load_init(); |
|
41 |
void load_dictionary(FILE *index, FILE *fdefs); |
|
42 |
void print_words(); |
|
2 | 43 |
|
44 |
/* fastmalloc */ |
|
45 |
void * fastmalloc(int newsize); |
|
5 | 46 |
|
47 |
/* repeated.c */ |
|
48 |
void new_hashdef(struct Def *ptr, int index); |
|
49 |
int def_repeated(struct Def *ptr); |
|
50 |
void init_repeated(); |
|
51 |
void remove_def(int i); |
|
10 | 52 |
|
53 |
||
54 |
/* FOR ZPROCESS */ |
|
55 |
/* zdefs.c */ |
|
56 |
void zprocess_def(const char *root, char *def); |
|
57 |
||
58 |
||
59 |
/* zhash.c */ |
|
60 |
void insert_word(const char *word, const char *unflexed); |
|
61 |
void init_wordlist(); |
|
62 |
void dump_wordlist(); |
|
63 |
||
64 |
/* zrus.c */ |
|
65 |
char * mix_accents(char *a, const char *b); |
|
66 |
void remove_accent(unsigned char *dest, const unsigned char *from); |