summaryrefslogtreecommitdiffstats
path: root/sqwebmail/ispell.h
diff options
context:
space:
mode:
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