diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/spelchek/library.h |
Initial commit
Diffstat (limited to 'support/spelchek/library.h')
-rw-r--r-- | support/spelchek/library.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/support/spelchek/library.h b/support/spelchek/library.h new file mode 100644 index 0000000000..751f9ff90e --- /dev/null +++ b/support/spelchek/library.h @@ -0,0 +1,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
+
+
|