author | viric@llimona |
Sun, 19 Aug 2007 11:23:57 +0200 | |
changeset 9 | 225d6c820d23 |
parent 8 | 09ec33061ff3 |
child 10 | 188a0e3b3fb4 |
permissions | -rw-r--r-- |
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); |
|
8
09ec33061ff3
Added 'ia5' binary, and fixed the ia5 functions.
viric@llimona
parents:
5
diff
changeset
|
27 |
int str2int(const char *str); |
09ec33061ff3
Added 'ia5' binary, and fixed the ia5 functions.
viric@llimona
parents:
5
diff
changeset
|
28 |
int num_to_ia5(char *dest, int n); |
0 | 29 |
|
30 |
/* filter.c */ |
|
31 |
void filter_all(const char *filter_par); |
|
32 |
||
33 |
/* sort.c */ |
|
34 |
int sort_words(); |
|
35 |
/* load.c */ |
|
36 |
void load_init(); |
|
37 |
void load_dictionary(FILE *index, FILE *fdefs); |
|
38 |
void print_words(); |
|
2 | 39 |
|
40 |
/* fastmalloc */ |
|
41 |
void * fastmalloc(int newsize); |
|
5 | 42 |
|
43 |
/* repeated.c */ |
|
44 |
void new_hashdef(struct Def *ptr, int index); |
|
45 |
int def_repeated(struct Def *ptr); |
|
46 |
void init_repeated(); |
|
47 |
void remove_def(int i); |