summaryrefslogtreecommitdiffstats
path: root/sqwebmail/ispell.h
diff options
context:
space:
mode:
authorSam Varshavchik2013-08-19 16:39:41 -0400
committerSam Varshavchik2013-08-25 14:43:51 -0400
commit9c45d9ad13fdf439d44d7443ae75da15ea0223ed (patch)
tree7a81a04cb51efb078ee350859a64be2ebc6b8813 /sqwebmail/ispell.h
parenta9520698b770168d1f33d6301463bb70a19655ec (diff)
downloadcourier-libs-9c45d9ad13fdf439d44d7443ae75da15ea0223ed.tar.bz2
Initial checkin
Imported from subversion report, converted to git. Updated all paths in scripts and makefiles, reflecting the new directory hierarchy.
Diffstat (limited to 'sqwebmail/ispell.h')
-rw-r--r--sqwebmail/ispell.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/sqwebmail/ispell.h b/sqwebmail/ispell.h
new file mode 100644
index 0000000..2b06cbe
--- /dev/null
+++ b/sqwebmail/ispell.h
@@ -0,0 +1,33 @@
+#ifndef ispell_h
+#define ispell_h
+/*
+*/
+
+/*
+** C interface to ispell. Gimme a line of text, and I'll return a link
+** list of mispelled words, plus their suggested derivations.
+*/
+
+struct ispell_misspelled;
+struct ispell_suggestion;
+
+struct ispell {
+ char *ispell_buf;
+ struct ispell_misspelled *first_misspelled;
+} ;
+
+struct ispell_misspelled {
+ struct ispell_misspelled *next;
+ const char *misspelled_word;
+ int word_pos;
+ struct ispell_suggestion *first_suggestion;
+} ;
+
+struct ispell_suggestion {
+ struct ispell_suggestion *next;
+ const char *suggested_word;
+} ;
+
+struct ispell *ispell_run(const char *dictionary, const char *line);
+void ispell_free(struct ispell *);
+#endif