Use true instead of TRUE
[TortoiseGit.git] / ext / hunspell / hunspell.h
blob3cf237b1ad2873c45c3c44cca648835b4f82e0ff
1 #ifndef _MYSPELLMGR_H_
2 #define _MYSPELLMGR_H_
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
8 typedef struct Hunhandle Hunhandle;
10 Hunhandle *Hunspell_create(const char * affpath, const char * dpath);
11 void Hunspell_destroy(Hunhandle *pHunspell);
13 /* spell(word) - spellcheck word
14 * output: 0 = bad word, not 0 = good word
16 int Hunspell_spell(Hunhandle *pHunspell, const char *);
18 char *Hunspell_get_dic_encoding(Hunhandle *pHunspell);
20 /* suggest(suggestions, word) - search suggestions
21 * input: pointer to an array of strings pointer and the (bad) word
22 * array of strings pointer (here *slst) may not be initialized
23 * output: number of suggestions in string array, and suggestions in
24 * a newly allocated array of strings (*slts will be NULL when number
25 * of suggestion equals 0.)
27 int Hunspell_suggest(Hunhandle *pHunspell, char*** slst, const char * word);
29 #ifdef __cplusplus
31 #endif
33 #endif