dictre.h
author viric@llimona
Sat, 11 Aug 2007 14:09:03 +0200
changeset 1 5af08d964c9e
parent 0 7f37716d4f1e
child 2 57a1fcb0c75c
permissions -rw-r--r--
Better memory use.

struct Words
{
    struct Word *first;
    int length;
};

struct Word
{
    char *w;
    int def;
};

struct Def
{
    char *d;
    int offset;
    int length;
};

/* write.c */
void write_dictionary(const char *name);

/* dict.c */
char * get_word(FILE *index);
int get_int(FILE *index);
char * get_def(FILE *fdefs, int offset, int length);

/* filter.c */
void filter_all(const char *filter_par);

/* sort.c */
int sort_words();

/* load.c */
void load_init();
void load_dictionary(FILE *index, FILE *fdefs);
void print_words();