summaryrefslogtreecommitdiff
path: root/support/spelchek/library.h
blob: 751f9ff90ec609a14009a4d6064e78c3f343634f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef LIBRARYHEADER
#define LIBRARYHEADER
#include<stdio.h>

#ifndef LIBRARYIMPLEMENTATION
typedef struct {unsigned char VAXDUMMY;} library;
#endif
	
library *library_create( long blocksize );
void library_delete( library *lib );
int library_read( library *lib, FILE *libfile ); /* reads library */
int library_enter_entry( library *lib, const unsigned char *string, long occurrences_so_far );
int library_find_entry( library *lib, const unsigned char *string );
int library_write( library *lib, FILE *libfile );
void library_fill_hist( library *lib,long tree_hist[],long weight_hist[],long histlenght,long *deepest_branch);
int library_reorganize(library *lib);
#endif